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

source: OpenPNE3/trunk/apps/pc_frontend/modules/community/actions/components.class.php @ 11019

Last change on this file since 11019 was 11019, checked in by ShogoKawahara, 14 years ago

#3248:added ability to set register policy of the community

File size: 852 bytes
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
11class communityComponents extends sfOpenPNECommunityComponents
12{
13  public function executeJoinListBox()
14  {
15    $this->member = sfContext::getInstance()->getUser()->getMember();
16    $c = new Criteria();
17    $c->addAscendingOrderByColumn(Propel::getDB()->random(time()));
18    $this->row = $this->gadget->getConfig('row');
19    $this->col = $this->gadget->getConfig('col');
20    $this->crownIds = CommunityMemberPeer::getCommunityIdsOfAdminByMemberId($this->member->getId());
21    $this->communities = CommunityPeer::retrievesByMemberId($this->member->getId(), $this->row * $this->col, $c);
22  }
23}
Note: See TracBrowser for help on using the repository browser.