Beispiel #1
0
 public function preExecute()
 {
     parent::preExecute();
     //myUser.class.php内でApiキーのチェックが行われているので
     //preExecuteでユーザ情報を取得してチェックを走らせる
     $this->member = $this->getUser()->getMember();
 }
 public function preExecute()
 {
     parent::preExecute();
     $this->member = $this->getUser()->getMember();
     $this->diaryLimit = Doctrine::getTable('SnsConfig')->get('op_diary_plugin_diary_api_limit', 15);
     $this->commentLimit = Doctrine::getTable('SnsConfig')->get('op_diary_plugin_diary_comment_api_limit', 15);
 }
Beispiel #3
0
 public function preExecute()
 {
     parent::preExecute();
     $user = new opTimelineUser();
     $params = array();
     $params['image_size'] = $this->getRequestParameter('image_size', self::DEFAULT_IMAGE_SIZE);
     $request = sfContext::getInstance()->getRequest();
     $params['base_url'] = $request->getUriPrefix() . $request->getRelativeUrlRoot();
     $this->timeline = new opTimeline($user, $params);
     $this->loadHelperForUseOpJsonAPI();
     $this->memberId = $this->getUser()->getMemberId();
 }
Beispiel #4
0
 public function preExecute()
 {
     parent::preExecute();
     $this->member = $this->getUser()->getMember();
 }