7 * LICENSE: This source file is licensed under the terms of the GNU General Public License.
9 * @package Magic3 Framework
10 * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
11 * @copyright Copyright 2006-2009 Magic3 Project.
12 * @license http://www.gnu.org/copyleft/gpl.html GPL License
13 * @version SVN: $Id: baseRssContainer.php 2631 2009-12-06 11:04:06Z fishbone $
14 * @link http://www.magic3.org
16 require_once($gEnvManager->getContainerPath() . '/baseWidgetContainer.php');
18 class BaseRssContainer extends BaseWidgetContainer
23 function __construct()
26 parent::__construct();
29 * 起動マネージャから呼ばれる唯一のメソッド
31 * @param RequestManager $request HTTPリクエスト処理クラス
34 function process($request)
37 if (method_exists($this, '_checkAccess')){
39 if (!$this->_checkAccess($request)) return;
43 if (method_exists($this, '_dispatch')){
45 if (!$this->_dispatch($request, $param)) return;
47 if (method_exists($this, '_setTemplate')){
50 $templateFile = $this->_setTemplate($request, $param);
52 // テンプレートファイル名が空文字列のときは、テンプレートライブラリを使用しない
53 if ($templateFile != ''){
55 $this->__setTemplate();
58 $this->tmpl->readTemplatesFromFile($templateFile);
63 // 各ウィジェットごとのテンプレート処理、テンプレートを使用しないときは出力処理(Ajax等)
64 if (method_exists($this, '_preAssign')) $this->_preAssign($request, $param);
66 // 各ウィジェットごとのテンプレート処理、テンプレートを使用しないときは出力処理(Ajax等)
67 if (method_exists($this, '_assign')){
68 $this->_assign($request, $param);
71 // 各ウィジェットごとのテンプレート処理、テンプレートを使用しないときは出力処理(Ajax等)
72 if (method_exists($this, '_postAssign')) $this->_postAssign($request, $param);
75 if (method_exists($this, '_setRssChannel')){
76 $rssData = $this->_setRssChannel($request, $param);
79 if (!empty($rssData)) $this->gPage->setRssChannel($rssData);
82 if ($templateFile != ''){
84 if ($this->displayMessage) $this->displayMsg();
87 if (!$this->parseCancel) $this->__parse();
89 } else { // メソッドが存在しないときはエラーメッセージを出力
90 echo 'method not found: BaseWidgetContainer::_setTemplate()';