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-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
16 require_once($gEnvManager->getCurrentWidgetContainerPath() . '/photo_mainCommonDef.php');
17 require_once($gEnvManager->getContainerPath() . '/baseWidgetContainer.php');
18 require_once($gEnvManager->getCurrentWidgetDbPath() . '/photo_mainDb.php');
20 class photo_mainBaseWidgetContainer extends BaseWidgetContainer
22 protected static $_mainDb; // DB接続オブジェクト
23 protected static $_configArray; // ブログ定義値
24 protected $_langId; // 現在の言語
25 protected $_userId; // 現在のユーザ
28 const TASK_TOP = 'top'; // トップ画面
29 const DEFAULT_TASK = 'top';
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ファイル
40 function __construct()
43 parent::__construct();
46 if (!isset(self::$_mainDb)) self::$_mainDb = new photo_mainDb();
49 if (!isset(self::$_configArray)) self::$_configArray = photo_mainCommonDef::loadConfig(self::$_mainDb);
51 $this->_langId = $this->gEnv->getCurrentLanguage();
52 $this->_userId = $this->gEnv->getCurrentUserId();
57 * _setTemplate()で指定したテンプレートファイルにデータを埋め込む。
59 * @param RequestManager $request HTTPリクエスト処理クラス
60 * @param object $param 任意使用パラメータ。_setTemplate()と共有。
63 function _postAssign($request, &$param)