Revision 16476,
1.1 KB
checked in by nanasess, 15 years ago
(diff) |
デストラクタ修正
|
-
Property svn:keywords set to
Id
-
Property svn:mime-type set to
text/x-httpd-php; charset=UTF-8
|
Line | |
---|
1 | <?php |
---|
2 | // {{{ requires |
---|
3 | require_once("###require###"); |
---|
4 | require_once(CLASS_PATH . "pages/LC_Page.php"); |
---|
5 | |
---|
6 | /** |
---|
7 | * ユーザーカスタマイズ用のページクラス |
---|
8 | * |
---|
9 | * 管理画面から自動生成される |
---|
10 | * |
---|
11 | * @package Page |
---|
12 | */ |
---|
13 | class LC_Page_User extends LC_Page { |
---|
14 | |
---|
15 | // }}} |
---|
16 | // {{{ functions |
---|
17 | |
---|
18 | /** |
---|
19 | * Page を初期化する. |
---|
20 | * |
---|
21 | * @return void |
---|
22 | */ |
---|
23 | function init() { |
---|
24 | parent::init(); |
---|
25 | $this->tpl_column_num = 3; |
---|
26 | } |
---|
27 | |
---|
28 | /** |
---|
29 | * Page のプロセス. |
---|
30 | * |
---|
31 | * @return void |
---|
32 | */ |
---|
33 | function process() { |
---|
34 | $objView = new SC_SiteView(); |
---|
35 | $objLayout = new SC_Helper_PageLayout_Ex(); |
---|
36 | |
---|
37 | // レイアウトデザインを取得 |
---|
38 | $objLayout->sfGetPageLayout($this); |
---|
39 | |
---|
40 | // 画面の表示 |
---|
41 | $objView->assignobj($this); |
---|
42 | $objView->display(SITE_FRAME); |
---|
43 | } |
---|
44 | |
---|
45 | /** |
---|
46 | * デストラクタ. |
---|
47 | * |
---|
48 | * @return void |
---|
49 | */ |
---|
50 | function destroy() { |
---|
51 | parent::destroy(); |
---|
52 | } |
---|
53 | } |
---|
54 | |
---|
55 | |
---|
56 | // }}} |
---|
57 | // {{{ generate page |
---|
58 | |
---|
59 | $objPage = new LC_Page_User(); |
---|
60 | register_shutdown_function(array($objPage, "destroy")); |
---|
61 | $objPage->init(); |
---|
62 | $objPage->process(); |
---|
63 | |
---|
64 | |
---|
65 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.