public function executeSmtShow($request)
 {
     $this->id = $request['id'];
     $this->isCommentCreatable = $this->communityTopic->isCreatableCommunityTopicComment($this->getUser()->getMember()->getId());
     opSmartphoneLayoutUtil::setLayoutParameters(array('community' => $this->community));
     return sfView::SUCCESS;
 }
 public function executeSmtCommunity(opWebRequest $request)
 {
     $this->communityId = (int) $request->getParameter('id');
     $this->community = Doctrine::getTable('Community')->find($this->communityId);
     opSmartphoneLayoutUtil::setLayoutParameters(array('community' => $this->community));
     $this->setTemplate('smtCommunity');
     return sfView::SUCCESS;
 }
Example #3
0
 /**
  * Executes smtJoin action
  *
  * @param opWebRequest $request A request object
  */
 public function executeSmtQuit(opWebRequest $request)
 {
     $result = parent::executeQuit($request);
     opSmartphoneLayoutUtil::setLayoutParameters(array('community' => $this->community));
     return $result;
 }
 public static function setLayoutParameters($parameters)
 {
     self::$parameters = $parameters;
     sfContext::getInstance()->getEventDispatcher()->connect('template.filter_parameters', array(__CLASS__, 'filterTemplateParameters'));
 }
Example #5
0
 /**
  * Executes smtProfile action
  *
  * @param opWebRequest $request A request object
  */
 public function executeSmtProfile(opWebRequest $request)
 {
     $gadgets = Doctrine::getTable('Gadget')->retrieveGadgetsByTypesName('smartphoneProfile');
     $this->contentsGadgets = $gadgets['smartphoneProfileContents'];
     $result = parent::executeProfile($request);
     opSmartphoneLayoutUtil::setLayoutParameters(array('member' => $this->member));
     return $result;
 }
 public function executeSmtShow(sfWebRequest $request)
 {
     if ($this->diary->getMemberId() !== $this->getUser()->getMemberId()) {
         $this->member = $this->diary->getMember();
     } else {
         $this->member = $this->getUser()->getMember();
     }
     opSmartphoneLayoutUtil::setLayoutParameters(array('member' => $this->member));
     $this->id = $request['id'];
     return sfView::SUCCESS;
 }
Example #7
0
 public function executeSmtLink(opWebRequest $request)
 {
     $result = parent::executeLink($request);
     opSmartphoneLayoutUtil::setLayoutParameters(array('member' => $this->member));
     return $result;
 }
 public function executeSmtMemberList($request)
 {
     opSmartphoneLayoutUtil::setLayoutParameters(array('community' => $this->community));
     return sfView::SUCCESS;
 }