public function executeList(opWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'diary', 'smtList');
     $publicFlag = $this->getUser()->isSNSMember() ? DiaryTable::PUBLIC_FLAG_SNS : DiaryTable::PUBLIC_FLAG_OPEN;
     $this->isSearchEnable = Doctrine::getTable('SnsConfig')->get('op_diary_plugin_search_enable', '1');
     $this->pager = Doctrine::getTable('Diary')->getDiaryPager($request['page'], 20, $publicFlag);
 }
 /**
  * Executes error action
  *
  * @param opWebRequest $request A request object
  */
 public function execute($request)
 {
     if ($request->isSmartphone()) {
         $this->setLayout('smtLayoutSns');
         $this->setTemplate('smtError');
     }
 }
 public function executeShow(opWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'timeline', 'smtShow');
     $this->getResponse()->addStyleSheet('/opTimelinePlugin/css/jquery.colorbox.css');
     $this->getResponse()->addJavascript('/opTimelinePlugin/js/jquery.colorbox.js', 'last');
     $activityId = (int) $request['id'];
     $this->activity = Doctrine::getTable('ActivityData')->find($activityId);
     if (!$this->activity) {
         return sfView::ERROR;
     }
     $this->comment = Doctrine_Query::create()->from('ActivityData ad')->where('ad.in_reply_to_activity_id = ?', $activityId)->execute();
     return sfView::SUCCESS;
 }
Beispiel #4
0
 /**
  * Executes search action
  *
  * @param opWebRequest $request A request object
  */
 public function executeSearch(opWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'community', 'smtSearch');
     return parent::executeSearch($request);
 }
Beispiel #5
0
 /**
  * Executes editProfile action
  *
  * @param opWebRequest $request a request object
  */
 public function executeEditProfile(opWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'member', 'smtEditProfile');
     return parent::executeEditProfile($request);
 }
Beispiel #6
0
 public function executeSns(opWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'timeline', 'smtSns');
     $this->forward('default', 'error');
     return sfView::SUCCESS;
 }
Beispiel #7
0
 public function executeLink(opWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'friend', 'smtLink');
     return parent::executeLink($request);
 }