source: branches/version-2_4/templates/templates.xml @ 16582

Revision 16582, 4.6 KB checked in by nanasess, 16 years ago (diff)

ライセンス表記変更

Line 
1<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="newPhp" deleted="false" description="ページクラス" enabled="true" name="New PHP class file">&lt;?php
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23
24// {{{ requires
25require_once(CLASS_PATH . "pages/LC_Page.php");
26
27/**
28 * XXX のページクラス.
29 *
30 * @package Page
31 * @author LOCKON CO.,LTD.
32 * @version $$Id$$
33 */
34class LC_Page_XXX extends LC_Page {
35
36    // }}}
37    // {{{ functions
38
39    /**
40     * Page を初期化する.
41     *
42     * @return void
43     */
44    function init() {
45        parent::init();
46    }
47
48    /**
49     * Page のプロセス.
50     *
51     * @return void
52     */
53    function process() {
54    }
55
56    /**
57     * デストラクタ.
58     *
59     * @return void
60     */
61    function destroy() {
62        parent::destroy();
63    }
64}
65?&gt;
66</template><template autoinsert="true" context="newPhp" deleted="false" description="拡張版ページクラス" enabled="true" name="New PHP extend class file">&lt;?php
67/*
68 * This file is part of EC-CUBE
69 *
70 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
71 *
72 * http://www.lockon.co.jp/
73 *
74 * This program is free software; you can redistribute it and/or
75 * modify it under the terms of the GNU General Public License
76 * as published by the Free Software Foundation; either version 2
77 * of the License, or (at your option) any later version.
78 *
79 * This program is distributed in the hope that it will be useful,
80 * but WITHOUT ANY WARRANTY; without even the implied warranty of
81 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
82 * GNU General Public License for more details.
83 *
84 * You should have received a copy of the GNU General Public License
85 * along with this program; if not, write to the Free Software
86 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
87 */
88
89// {{{ requires
90require_once(CLASS_PATH . "pages/XXX/LC_Page_XXX.php");
91
92/**
93 * XXX のページクラス(拡張).
94 *
95 * LC_Page_XXX をカスタマイズする場合はこのクラスを編集する.
96 *
97 * @package Page
98 * @author LOCKON CO.,LTD.
99 * @version $$Id$$
100 */
101class LC_Page_XXX_Ex extends LC_Page_XXX {
102
103    // }}}
104    // {{{ functions
105
106    /**
107     * Page を初期化する.
108     *
109     * @return void
110     */
111    function init() {
112        parent::init();
113    }
114
115    /**
116     * Page のプロセス.
117     *
118     * @return void
119     */
120    function process() {
121        parent::process();
122    }
123
124    /**
125     * デストラクタ.
126     *
127     * @return void
128     */
129    function destroy() {
130        parent::destroy();
131    }
132}
133?&gt;
134</template><template autoinsert="true" context="newPhp" deleted="false" description="Web ページのテンプレート" enabled="true" name="New Plain PHP file">&lt;?php
135/*
136 * This file is part of EC-CUBE
137 *
138 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
139 *
140 * http://www.lockon.co.jp/
141 *
142 * This program is free software; you can redistribute it and/or
143 * modify it under the terms of the GNU General Public License
144 * as published by the Free Software Foundation; either version 2
145 * of the License, or (at your option) any later version.
146 *
147 * This program is distributed in the hope that it will be useful,
148 * but WITHOUT ANY WARRANTY; without even the implied warranty of
149 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
150 * GNU General Public License for more details.
151 *
152 * You should have received a copy of the GNU General Public License
153 * along with this program; if not, write to the Free Software
154 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
155 */
156 
157 // {{{ requires
158require_once("./require.php");
159require_once(CLASS_PATH . "page_extends/LC_Page_XXX_Ex.php");
160
161// }}}
162// {{{ generate page
163
164$$objPage = new LC_Page_XXX_Ex();
165$$objPage-&gt;init();
166$$objPage-&gt;process();
167register_shutdown_function(array($$objPage, "destroy"));
168?&gt;</template></templates>
Note: See TracBrowser for help on using the repository browser.