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;
 }
示例#2
0
 /**
  * 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;
 }
 /**
  * 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;
 }
 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;
 }
示例#5
0
 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;
 }