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