本文整理汇总了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;
}
示例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;
}
示例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;
}