source: branches/version-2_13-dev/templates/templates.xml @ 22567

Revision 22567, 4.7 KB checked in by shutta, 14 years ago (diff)

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

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