OSDN Git Service

704d1541da389f0a11a0d5157225440dca224368
[magic3/magic3.git] / include / container / m_indexFrameContainer.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-2009 Magic3 Project.
12  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
13  * @version    SVN: $Id: m_indexFrameContainer.php 2358 2009-09-26 06:17:00Z fishbone $
14  * @link       http://www.magic3.org
15  */
16 require_once($gEnvManager->getContainerPath() . '/baseFrameContainer.php');
17
18 class m_indexFrameContainer extends BaseFrameContainer
19 {
20         /**
21          * コンストラクタ
22          */
23         function __construct()
24         {
25                 // 親クラスを呼び出す
26                 parent::__construct();
27         }
28         /**
29          * バッファリングの準備
30          *
31          * @param RequestManager $request               HTTPリクエスト処理クラス
32          */
33         function _prepareBuffer($request)
34         {
35                 // 携帯の機種に応じて出力エンコーディングを設定する
36                 //$encode = 'SJIS';
37                 //$this->gEnv->setMobileEncoding($encode);
38         }
39         /**
40          * ビュー作成の前処理
41          *
42          * @param RequestManager $request               HTTPリクエスト処理クラス
43          */
44         function _preBuffer($request)
45         {
46         }
47         /**
48          * ビュー作成の後処理
49          *
50          * @param RequestManager $request               HTTPリクエスト処理クラス
51          */
52         function _postBuffer($request)
53         {
54         }
55         /**
56          * テンプレートファイルを設定
57          *
58          * @param RequestManager $request               HTTPリクエスト処理クラス
59          * @return                                                              テンプレートを固定にしたい場合はテンプレート名を返す。
60          *                                                                              テンプレートが任意の場合(変更可能な場合)は空文字列を返す。
61          */
62         function _setTemplate($request)
63         {
64                 return '';
65         }
66         /**
67          * コンテンツを変換
68          *
69          * @param string $src                                   変換元コンテンツ
70          * @return                                                              変換後コンテンツ
71          */
72         function _convContents($src)
73         {
74                 // 絵文字変換を行う
75                 $this->gInstance->getTextConvManager()->convEmoji($src, $dest);
76                 return $dest;
77         }
78 }
79 ?>