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

Revision 15403, 1.6 KB checked in by nanasess, 17 years ago (diff)

PHP4 & PHP5 対応

  • 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    // }}}
21    // {{{ functions
22
23    /**
24     * Page を初期化する.
25     *
26     * @return void
27     */
28    function init() {
29        parent::init();
30        $this->tpl_mainpage = HTML_PATH . "user_data/templates/top.tpl";
31        $this->tpl_css = URL_DIR . 'css/layout/index.css';
32    }
33
34    /**
35     * モバイルページを初期化する.
36     *
37     * @return void
38     */
39    function mobileInit() {
40        $this->tpl_mainpage = 'top.tpl';
41    }
42
43    /**
44     * Page のプロセス.
45     *
46     * @return void
47     */
48    function process() {
49
50        $objView = new SC_SiteView();
51
52        // レイアウトデザインを取得
53        $layout = new SC_Helper_PageLayout_Ex();
54        $layout->sfGetPageLayout($this, false, "index.php");
55
56        $objView->assignobj($this);
57        $objView->display(SITE_FRAME);
58    }
59
60    /**
61     * Page のプロセス(モバイル).
62     *
63     * @return void
64     */
65    function mobileProcess() {
66        $conn = new SC_DBConn();
67        $objCustomer = new SC_Customer();
68
69        $objView = new SC_MobileView();
70        $objView->assign("isLogin", $objCustomer->isLoginSuccess());
71        $objView->assignobj($this);
72        $objView->display(SITE_FRAME);
73    }
74
75    /**
76     * デストラクタ.
77     *
78     * @return void
79     */
80    function destroy() {
81        parent::destroy();
82    }
83}
84?>
Note: See TracBrowser for help on using the repository browser.