function prepare($args) { parent::prepare($args); $this->oauth_token = $this->arg('oauth_token'); $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1; return true; }
/** * For initializing members of the class. * * @param array $argarray misc. arguments * * @return boolean true */ function prepare($argarray) { if (!common_config('oldschool', 'enabled')) { throw new ClientException("Old-school settings not enabled."); } parent::prepare($argarray); return true; }
/** * For initializing members of the class. * * @param array $argarray misc. arguments * * @return boolean true */ function prepare($args) { parent::prepare($args); $this->facebook = new Facebook(array('appId' => common_config('facebook', 'appid'), 'secret' => common_config('facebook', 'secret'), 'cookie' => true)); $this->user = common_current_user(); $this->flink = Foreign_link::getByUserID($this->user->id, FACEBOOK_SERVICE); return true; }
function prepare($args) { parent::prepare($args); // TODO: Instantiating a new object here causes interface issues. // Find out how I can access variables from the other class // when this action runs. For now, deal with the UI issue. $this->flbp = new FetLifeBridgePluginHelper(); $this->flbp->initialize(); return true; }
function prepare($args) { parent::prepare($args); $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1; if (!common_logged_in()) { $this->clientError(_('You must be logged in to list your applications.')); return false; } return true; }
function prepare($args) { parent::prepare($args); $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1; if (!common_logged_in()) { // TRANS: Message displayed to an anonymous user trying to view OAuth application list. $this->clientError(_('You must be logged in to list your applications.')); } return true; }
function showScripts() { parent::showScripts(); $this->autofocus('openid_url'); }
function showScripts() { parent::showScripts(); $this->autofocus('sms'); }
function showScripts() { parent::showScripts(); $this->autofocus('nickname'); }
function showScripts() { parent::showScripts(); $this->autofocus('oldpassword'); }
/** * Add the jCrop scripts * * @return void */ function showScripts() { parent::showScripts(); if ($this->mode == 'crop') { $this->script('jcrop/jquery.Jcrop.min.js'); $this->script('jcrop/jquery.Jcrop.go.js'); } $this->autofocus('avatarfile'); }
function showScripts() { parent::showScripts(); $this->autofocus('urlshorteningservice'); }
function showStylesheets() { parent::showStylesheets(); $this->cssLink('plugins/SubMirror/css/mirrorsettings.css'); }
function showScripts() { parent::showScripts(); $this->script('emailsettings.js'); $this->autofocus('email'); }