当前位置: 首页>>代码示例>>PHP>>正文


PHP opToolkit::extractTargetDay方法代码示例

本文整理汇总了PHP中opToolkit::extractTargetDay方法的典型用法代码示例。如果您正苦于以下问题:PHP opToolkit::extractTargetDay方法的具体用法?PHP opToolkit::extractTargetDay怎么用?PHP opToolkit::extractTargetDay使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在opToolkit的用法示例。


在下文中一共展示了opToolkit::extractTargetDay方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: executeProfile

 /**
  * Executes profile action
  *
  * @param sfRequest $request A request object
  */
 public function executeProfile($request)
 {
     $this->redirectIf($this->relation->isAccessBlocked(), '@error');
     $id = $this->getRequestParameter('id', $this->getUser()->getMemberId());
     $this->member = Doctrine::getTable('Member')->find($id);
     $this->forward404Unless($this->member, 'Undefined member.');
     if (!$this->friendsSize) {
         $this->friendsSize = 9;
     }
     $this->friends = $this->member->getFriends($this->friendsSize, true);
     if (!$this->communitiesSize) {
         $this->communitiesSize = 9;
     }
     $this->communities = $this->member->getJoinCommunities($this->communitiesSize, true);
     $this->crownIds = Doctrine::getTable('CommunityMember')->getCommunityIdsOfAdminByMemberId($id);
     $birthday = Doctrine::getTable('MemberProfile')->getViewableProfileByMemberIdAndProfileName($id, 'op_preset_birthday');
     $this->targetDay = $birthday ? opToolkit::extractTargetDay((string) $birthday) : false;
     return sfView::SUCCESS;
 }
开发者ID:Kazuhiro-Murota,项目名称:OpenPNE3,代码行数:24,代码来源:sfOpenPNEMemberAction.class.php

示例2: executeBirthdayBox

 public function executeBirthdayBox(opWebRequest $request)
 {
     $id = $request->getParameter('id', $this->getUser()->getMemberId());
     $birthday = Doctrine::getTable('MemberProfile')->getViewableProfileByMemberIdAndProfileName($id, 'op_preset_birthday');
     $this->targetDay = $birthday ? opToolkit::extractTargetDay((string) $birthday) : false;
 }
开发者ID:te-koyama,项目名称:openpne,代码行数:6,代码来源:opMemberComponents.class.php

示例3: executeProfile

 /**
  * Executes profile action
  *
  * @param sfRequest $request A request object
  */
 public function executeProfile($request)
 {
     $id = $this->getRequestParameter('id', $this->getUser()->getMemberId());
     if ('member_profile_mine' === sfContext::getInstance()->getRouting()->getCurrentRouteName()) {
         $this->forward404Unless($id);
         $this->member = $this->getUser()->getMember();
     } else {
         $this->member = $this->getRoute()->getObject();
     }
     if (!$this->friendsSize) {
         $this->friendsSize = 9;
     }
     $this->friends = $this->member->getFriends($this->friendsSize, true);
     if (!$this->communitiesSize) {
         $this->communitiesSize = 9;
     }
     $this->communities = $this->member->getJoinCommunities($this->communitiesSize, true);
     $this->crownIds = Doctrine::getTable('CommunityMember')->getCommunityIdsOfAdminByMemberId($id);
     $birthday = Doctrine::getTable('MemberProfile')->getViewableProfileByMemberIdAndProfileName($id, 'op_preset_birthday');
     $this->targetDay = $birthday ? opToolkit::extractTargetDay((string) $birthday) : false;
     return sfView::SUCCESS;
 }
开发者ID:TadahiroKudo,项目名称:OpenPNE3,代码行数:27,代码来源:opMemberAction.class.php


注:本文中的opToolkit::extractTargetDay方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。