當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sfWebRequest::isSmartphone方法代碼示例

本文整理匯總了PHP中sfWebRequest::isSmartphone方法的典型用法代碼示例。如果您正苦於以下問題:PHP sfWebRequest::isSmartphone方法的具體用法?PHP sfWebRequest::isSmartphone怎麽用?PHP sfWebRequest::isSmartphone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在sfWebRequest的用法示例。


在下文中一共展示了sfWebRequest::isSmartphone方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: executeMemberList

 public function executeMemberList(sfWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'like', 'smtMemberList');
     $this->forward('default', 'error');
 }
開發者ID:te-koyama,項目名稱:openpne,代碼行數:5,代碼來源:actions.class.php

示例2: executeEdit

 public function executeEdit(sfWebRequest $request)
 {
     $this->forward404Unless($this->isDiaryAuthor());
     $this->forwardIf($request->isSmartphone(), 'diary', 'smtEdit');
     $this->form = new DiaryForm($this->diary);
 }
開發者ID:te-koyama,項目名稱:openpne,代碼行數:6,代碼來源:opDiaryPluginDiaryActions.class.php

示例3: executeReply

 /**
  * Executes replyMessage action
  * 
  * @param sfWebRequest $request A request object
  */
 public function executeReply(sfWebRequest $request)
 {
     $this->forwardIf($request->isSmartphone(), 'message', 'smtList');
     $message = Doctrine::getTable('SendMessageData')->find($request->getParameter('id'));
     $this->forward404unless($message && $message->getIsReceiver($this->getUser()->getMemberId()));
     $this->message = new SendMessageData();
     $this->message->setMessageTypeId($message->getMessageTypeId());
     $this->message->setReturnMessageId($message->getId());
     if ($message->getThreadMessageId() != 0) {
         $this->message->setThreadMessageId($message->getThreadMessageId());
     } else {
         $this->message->setThreadMessageId($message->getId());
     }
     $sendMemberId = $message->getMemberId();
     $this->form = new SendMessageForm($this->message, array('send_member_id' => $sendMemberId));
     $this->sendMember = Doctrine::getTable('Member')->find($sendMemberId);
     $this->forward404Unless($this->sendMember);
     $this->setTemplate('sendToFriend');
     return sfView::INPUT;
 }
開發者ID:te-koyama,項目名稱:openpne,代碼行數:25,代碼來源:opMessagePluginMessageActions.class.php


注:本文中的sfWebRequest::isSmartphone方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。