source: branches/feature-module-update/data/class/pages/LC_Page_Index.php @ 15282

Revision 15282, 1.8 KB checked in by nanasess, 17 years ago (diff)

モバイルページの関数追加

  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8// {{{ requires
9require_once(CLASS_PATH . "pages/LC_Page.php");
10
11/**
12 * Index のページクラス.
13 *
14 * @package Page
15 * @author LOCKON CO.,LTD.
16 * @version $Id$
17 */
18class LC_Page_Index extends LC_Page {
19
20    // {{{ properties
21
22    /**メインテンプレート */
23    var $tpl_mainpage;
24
25    /** CSS のパス */
26    var $tpl_css;
27
28    // }}}
29    // {{{ functions
30
31    /**
32     * Page を初期化する.
33     *
34     * @return void
35     */
36    function init() {
37        parent::init();
38        $this->tpl_mainpage = HTML_PATH . "user_data/templates/top.tpl";
39        $this->tpl_css = URL_DIR . 'css/layout/index.css';
40    }
41
42    /**
43     * モバイルページを初期化する.
44     *
45     * @return void
46     */
47    function mobileInit() {
48        $this->tpl_mainpage = 'top.tpl';
49    }
50
51    /**
52     * Page のプロセス.
53     *
54     * @return void
55     */
56    function process() {
57
58        $objView = new SC_SiteView();
59
60        // レイアウトデザインを取得
61        $layout = new SC_Helper_PageLayout_Ex();
62        $this = $layout->sfGetPageLayout($this, false, "index.php");
63
64        $objView->assignobj($this);
65        $objView->display(SITE_FRAME);
66    }
67
68    /**
69     * Page のプロセス(モバイル).
70     *
71     * @return void
72     */
73    function mobileProcess() {
74        $conn = new SC_DBConn();
75        $objCustomer = new SC_Customer();
76
77        $objView = new SC_MobileView();
78        $objView->assign("isLogin", $objCustomer->isLoginSuccess());
79        $objView->assignobj($this);
80        $objView->display(SITE_FRAME);
81    }
82
83    /**
84     * デストラクタ.
85     *
86     * @return void
87     */
88    function destroy() {
89        parent::destroy();
90    }
91}
92?>
Note: See TracBrowser for help on using the repository browser.