OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / widgets / photo_main / include / container / photo_mainBaseWidgetContainer.php
1 <?php
2 /**
3  * index.php用コンテナクラス
4  *
5  * PHP versions 5
6  *
7  * LICENSE: This source file is licensed under the terms of the GNU General Public License.
8  *
9  * @package    Magic3 Framework
10  * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
11  * @copyright  Copyright 2006-2011 Magic3 Project.
12  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
13  * @version    SVN: $Id: photo_mainBaseWidgetContainer.php 4507 2011-12-19 05:56:33Z fishbone $
14  * @link       http://www.magic3.org
15  */
16 require_once($gEnvManager->getCurrentWidgetContainerPath() . '/photo_mainCommonDef.php');
17 require_once($gEnvManager->getContainerPath() . '/baseWidgetContainer.php');
18 require_once($gEnvManager->getCurrentWidgetDbPath() . '/photo_mainDb.php');
19
20 class photo_mainBaseWidgetContainer extends BaseWidgetContainer
21 {
22         protected static $_mainDb;                      // DB接続オブジェクト
23         protected static $_configArray;         // ブログ定義値
24         protected $_langId;                     // 現在の言語
25         protected $_userId;                     // 現在のユーザ
26                 
27         // 画面
28         const TASK_TOP                  = 'top';                        // トップ画面
29         const DEFAULT_TASK              = 'top';
30         
31         // カレンダー用スクリプト
32         const CALENDAR_SCRIPT_FILE = '/jscalendar-1.0/calendar.js';             // カレンダースクリプトファイル
33         const CALENDAR_LANG_FILE = '/jscalendar-1.0/lang/calendar-ja.js';       // カレンダー言語ファイル
34         const CALENDAR_SETUP_FILE = '/jscalendar-1.0/calendar-setup.js';        // カレンダーセットアップファイル
35         const CALENDAR_CSS_FILE = '/jscalendar-1.0/calendar-win2k-1.css';               // カレンダー用CSSファイル
36         
37         /**
38          * コンストラクタ
39          */
40         function __construct()
41         {
42                 // 親クラスを呼び出す
43                 parent::__construct();
44
45                 // DBオブジェクト作成
46                 if (!isset(self::$_mainDb)) self::$_mainDb = new photo_mainDb();
47                         
48                 // ブログ定義を読み込む
49                 if (!isset(self::$_configArray)) self::$_configArray = photo_mainCommonDef::loadConfig(self::$_mainDb);
50                 
51                 $this->_langId = $this->gEnv->getCurrentLanguage();
52                 $this->_userId = $this->gEnv->getCurrentUserId();
53         }
54         /**
55          * テンプレートにデータ埋め込む
56          *
57          * _setTemplate()で指定したテンプレートファイルにデータを埋め込む。
58          *
59          * @param RequestManager $request               HTTPリクエスト処理クラス
60          * @param object         $param                 任意使用パラメータ。_setTemplate()と共有。
61          * @return                                                              なし
62          */
63         function _postAssign($request, &$param)
64         {
65         }
66 }
67 ?>