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

source: OpenPNE3/trunk/apps/pc_frontend/modules/friend/actions/actions.class.php @ 10888

Last change on this file since 10888 was 10888, checked in by ShogoKawahara, 13 years ago

#3294:added ability to show the member's photos on the pc_frontend

File size: 1.0 KB
Line 
1<?php
2
3/**
4 * This file is part of the OpenPNE package.
5 * (c) OpenPNE Project (http://www.openpne.jp/)
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file and the NOTICE file that were distributed with this source code.
9 */
10
11/**
12 * friend actions.
13 *
14 * @package    OpenPNE
15 * @subpackage friend
16 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
17 * @author     Shogo Kawahara <kawahara@tejimaya.net>
18 */
19class friendActions extends sfOpenPNEFriendAction
20{
21  public function preExecute()
22  {
23    parent::preExecute();
24
25    if ($this->id == $this->getUser()->getMemberId())
26    {
27      sfConfig::set('sf_nav_type', 'default');
28    }
29  }
30
31  public function executeList(sfWebRequest $request)
32  {
33    $this->size = 50;
34
35    parent::executeList($request);
36  }
37
38  public function executeShowImage(sfWebRequest $request)
39  {
40    $this->forward404Unless($this->id);
41
42    $this->member = MemberPeer::retrieveByPk($this->id);
43    $this->forward404Unless($this->member, 'Undefined member.');
44
45    return sfView::SUCCESS;
46  }
47}
Note: See TracBrowser for help on using the repository browser.