本文整理匯總了PHP中sfRequest::isSmartphone方法的典型用法代碼示例。如果您正苦於以下問題:PHP sfRequest::isSmartphone方法的具體用法?PHP sfRequest::isSmartphone怎麽用?PHP sfRequest::isSmartphone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sfRequest
的用法示例。
在下文中一共展示了sfRequest::isSmartphone方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: execute
/**
* Executes this action
*
* @param sfRequest $request A request object
*/
public function execute($request)
{
if ($request->isSmartphone()) {
$this->setLayout('smtLayoutSns');
$this->setTemplate('smtUserAgreement');
}
}
示例2: executeMemberList
/**
* Executes memberList action
*
* @param sfRequest $request A request object
*/
public function executeMemberList($request)
{
$this->forward404Unless($this->acl->isAllowed($this->getUser()->getMemberId(), null, 'view'));
$this->forwardIf($request->isSmartphone(), 'communityEvent', 'smtMemberList');
if (!$this->size) {
$this->size = 20;
}
$this->pager = Doctrine::getTable('CommunityEvent')->getEventMemberListPager($this->communityEvent->getId(), $request->getParameter('page', 1), $this->size);
if (!$this->pager->getNbResults()) {
return sfView::ERROR;
}
}
示例3: executeEdit
/**
* Executes edit action
*
* @param sfRequest $request A request object
*/
public function executeEdit($request)
{
$this->forwardIf($request->isSmartphone(), 'communityTopic', 'smtEdit');
$this->form = new CommunityTopicForm($this->communityTopic);
return sfView::SUCCESS;
}