OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / widgets / ec_main / include / container / ec_mainMembermenuWidgetContainer.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-2012 Magic3 Project.
12  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
13  * @version    SVN: $Id: ec_mainMembermenuWidgetContainer.php 5440 2012-12-08 09:37:39Z fishbone $
14  * @link       http://www.magic3.org
15  */
16 require_once($gEnvManager->getCurrentWidgetContainerPath() .    '/ec_mainBaseWidgetContainer.php');
17
18 class ec_mainMembermenuWidgetContainer extends ec_mainBaseWidgetContainer
19 {
20         /**
21          * コンストラクタ
22          */
23         function __construct()
24         {
25                 // 親クラスを呼び出す
26                 parent::__construct();
27         }
28         /**
29          * テンプレートファイルを設定
30          *
31          * _assign()でデータを埋め込むテンプレートファイルのファイル名を返す。
32          * 読み込むディレクトリは、「自ウィジェットディレクトリ/include/template」に固定。
33          *
34          * @param RequestManager $request               HTTPリクエスト処理クラス
35          * @param object         $param                 任意使用パラメータ。そのまま_assign()に渡る
36          * @return string                                               テンプレートファイル名。テンプレートライブラリを使用しない場合は空文字列「''」を返す。
37          */
38         function _setTemplate($request, &$param)
39         {       
40                 return 'membermenu.tmpl.html';
41         }
42         /**
43          * テンプレートにデータ埋め込む
44          *
45          * _setTemplate()で指定したテンプレートファイルにデータを埋め込む。
46          *
47          * @param RequestManager $request               HTTPリクエスト処理クラス
48          * @param object         $param                 任意使用パラメータ。_setTemplate()と共有。
49          * @param                                                               なし
50          */
51         function _assign($request, &$param)
52         {
53                 // パスワード変更画面へのリンク
54                 $this->tmpl->addVar("_widget", "changepwd_url", $this->getUrl($this->gEnv->createCurrentPageUrl() . '&task=changepwd', true));
55                 
56                 // 会員お知らせ画面へのリンク
57                 $this->tmpl->addVar("_widget", "member_notice_url", $this->getUrl($this->gEnv->createCurrentPageUrl() . '&task=membernotice', true));
58                 
59                 // 会員情報画面へのリンク
60                 $this->tmpl->addVar("_widget", "member_url", $this->getUrl($this->gEnv->createCurrentPageUrl() . '&task=memberinfo', true));
61                 
62                 // 購入履歴画面へのリンク
63                 $this->tmpl->addVar("_widget", "purchasehistory_url", $this->getUrl($this->gEnv->createCurrentPageUrl() . '&task=purchasehistory', true));
64                 
65                 // 購入画面へのリンク
66                 $this->tmpl->addVar("_widget", "order_url", $this->getUrl($this->gEnv->createCurrentPageUrl() . '&task=cart', true));           // カートから遷移する
67         }
68 }
69 ?>