Changeset 22567 for branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r22206 r22567 31 31 * @version $Id$ 32 32 */ 33 class LC_Page_Admin_Design_Template extends LC_Page_Admin_Ex { 33 class LC_Page_Admin_Design_Template extends LC_Page_Admin_Ex 34 { 34 35 35 36 // }}} … … 41 42 * @return void 42 43 */ 43 function init() { 44 function init() 45 { 44 46 parent::init(); 45 47 $this->tpl_mainpage = 'design/template.tpl'; … … 60 62 * @return void 61 63 */ 62 function process() { 64 function process() 65 { 63 66 $this->action(); 64 67 $this->sendResponse(); … … 70 73 * @return void 71 74 */ 72 function action() { 75 function action() 76 { 73 77 74 78 $objFormParam = new SC_FormParam_Ex(); … … 138 142 * @return void 139 143 */ 140 function destroy() { 144 function destroy() 145 { 141 146 parent::destroy(); 142 147 } … … 148 153 * @return void 149 154 */ 150 function lfInitParam(&$objFormParam) { 155 function lfInitParam(&$objFormParam) 156 { 151 157 $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 152 158 $objFormParam->addParam('template_code', 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK')); … … 162 168 * @return void 163 169 */ 164 function doUpdateMasterData($template_code, $device_type_id) { 170 function doUpdateMasterData($template_code, $device_type_id) 171 { 165 172 $masterData = new SC_DB_MasterData_Ex(); 166 173 … … 197 204 * @return void 198 205 */ 199 function updateBloc($filepath) { 206 function updateBloc($filepath) 207 { 200 208 $sql = file_get_contents($filepath); 201 209 if ($sql !== false) { … … 219 227 * @return boolean 成功した場合 true; 失敗した場合 false 220 228 */ 221 function doDelete($template_code, $device_type_id) { 229 function doDelete($template_code, $device_type_id) 230 { 222 231 if ($template_code == $this->getTemplateName($device_type_id) 223 232 || $template_code == $this->getTemplateName($device_type_id, true)) { … … 267 276 * @return boolean 成功した場合 true; 失敗した場合 false 268 277 */ 269 function doRegister($template_code, $device_type_id) { 278 function doRegister($template_code, $device_type_id) 279 { 270 280 271 281 $tpl_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; … … 297 307 * @return boolean 成功した場合 true; 失敗した場合 false 298 308 */ 299 function doDownload($template_code) { 309 function doDownload($template_code) 310 { 300 311 $from_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 301 312 $to_dir = SMARTY_TEMPLATES_REALDIR . $template_code . '/_packages/'; … … 318 329 * @return array テンプレート情報の配列 319 330 */ 320 function getAllTemplates($device_type_id) { 331 function getAllTemplates($device_type_id) 332 { 321 333 $objQuery =& SC_Query_Ex::getSingletonInstance(); 322 334 return $objQuery->select('*', 'dtb_templates', 'device_type_id = ?', array($device_type_id)); … … 330 342 * @return string テンプレート名 331 343 */ 332 function getTemplateName($device_type_id, $isDefault = false) { 344 function getTemplateName($device_type_id, $isDefault = false) 345 { 333 346 switch ($device_type_id) { 334 347 case DEVICE_TYPE_MOBILE:
Note: See TracChangeset
for help on using the changeset viewer.