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

Changeset 8878


Ignore:
Timestamp:
Oct 29, 2008, 3:48:39 PM (11 years ago)
Author:
ebihara
Message:

#2885:added community/memberList for mobile phone

Location:
OpenPNE3/trunk/apps/mobile_frontend/modules/community
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/actions/actions.class.php

    r8877 r8878  
    105105    $this->redirect('community/home?id=' . $this->id);
    106106  }
     107
     108 /**
     109  * Executes memberList action
     110  *
     111  * @param sfRequest $request A request object
     112  */
     113  public function executeMemberList($request)
     114  {
     115    $this->community = CommunityPeer::retrieveByPk($this->id);
     116    $this->pager = CommunityPeer::getCommunityMemberListPager($this->id, $request->getParameter('page', 1));
     117
     118    if (!$this->pager->getNbResults()) {
     119      return sfView::ERROR;
     120    }
     121
     122    return sfView::SUCCESS;
     123  }
    107124}
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/homeSuccess.php

    r8848 r8878  
    4646  'border' => true,
    4747  'moreInfo' => array(
    48     link_to('<font color="#0c5f0f">⇒</font>もっと見る', 'community/memberList?id='.$member->getId()),
     48    link_to('<font color="#0c5f0f">⇒</font>もっと見る', 'community/memberList?id='.$community->getId()),
    4949  ),
    5050);
Note: See TracChangeset for help on using the changeset viewer.