ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE3/plugins/opIntroFriendPlugin/trunk/apps/mobile_frontend/modules/introfriend/actions/components.class.php @ 10047

Last change on this file since 10047 was 10047, checked in by nagasawa, 14 years ago

#3358:fixed forgot 'return true'

File size: 753 bytes
Line 
1<?php
2/**
3 * introfriend components.
4 *
5 * @package    OpenPNE
6 * @subpackage introfriend
7 * @author     Masato Nagasawa <nagasawa@tejimaya.com>
8 */
9class introfriendComponents extends sfComponents
10{
11  public function executeIntroFriendLink($request)
12  {
13    $this->isFriend = true;
14    $relation = MemberRelationshipPeer::retrieveByFromAndTo($this->getUser()->getMemberId(), $request->getParameter('id'));
15    if ($relation == null)
16    {
17      $this->isFriend = false;
18    }
19    else
20    {
21      if(!$relation->getIsFriend())
22      {
23        $this->ifFriend = false;
24      }
25    }
26  }
27
28  public function executeIntroFriendManage($request)
29  {
30    $this->introFriend = IntroFriendPeer::getByFromAndTo($this->getUser()->GetMemberId(), $this->id);
31  }
32}
Note: See TracBrowser for help on using the repository browser.