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

source: OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/action/opCommunityTopicPluginTopicComponents.class.php @ 13608

Last change on this file since 13608 was 13608, checked in by ebihara, 11 years ago

コミュニティ書き込み通知メールに対応した (refs #1368)

File size: 1.7 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 * opCommunityTopicPluginTopicComponents
13 *
14 * @package    OpenPNE
15 * @subpackage action
16 * @author     masabon
17 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
18 * @author     Rimpei Ogawa <ogawa@tejimaya.com>
19 * @author     Shogo Kawahara <kawahara@tejimaya.net>
20 */
21abstract class opCommunityTopicPluginTopicComponents extends sfComponents
22{
23  public function executeCommunityTopicList()
24  {
25    $publicFlag = Doctrine::getTable('CommunityConfig')->retrieveByNameAndCommunityId('public_flag', $this->community->getId());
26    $isBelong = $this->community->isPrivilegeBelong($this->getUser()->getMemberId());
27    $this->hasPermission = true;
28
29    if ($publicFlag && !$isBelong && $publicFlag->getValue() !== 'public')
30    {
31      $this->hasPermission = true;
32      return sfView::SUCCESS;
33    }
34
35    $this->communityTopics = Doctrine::getTable('CommunityTopic')->getTopics($this->community->getId());
36  }
37
38  public function executeTopicCommentListBox()
39  {
40    $this->communityTopic = Doctrine::getTable('CommunityTopic')->retrivesByMemberId($this->getUser()->getMember()->getId(), $this->gadget->getConfig('col'));
41  }
42
43  public function executeTopSearchForm()
44  {
45    $this->topicSearchCaption = sfContext::getInstance()->getI18N()->__('Topic');
46    $this->eventSearchCaption = sfContext::getInstance()->getI18N()->__('Event');
47  }
48
49  public function executeConfigNotificationMail($request)
50  {
51    $this->form = new opConfigCommunityTopicNotificationMailForm($request['id']);
52  }
53}
Note: See TracBrowser for help on using the repository browser.