Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * introfriend components. |
---|
4 | * |
---|
5 | * @package OpenPNE |
---|
6 | * @subpackage introfriend |
---|
7 | * @author Masato Nagasawa <nagasawa@tejimaya.com> |
---|
8 | */ |
---|
9 | class 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.