- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_PageLayout.php
r21481 r21514 47 47 * @return void 48 48 */ 49 function sfGetPageLayout(&$objPage, $preview = false, $url = "", $device_type_id = DEVICE_TYPE_PC) {49 function sfGetPageLayout(&$objPage, $preview = false, $url = '', $device_type_id = DEVICE_TYPE_PC) { 50 50 51 51 // URLを元にページ情報を取得 … … 59 59 } 60 60 61 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) . $arrPageData[0]['filename'] . ".tpl";61 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) . $arrPageData[0]['filename'] . '.tpl'; 62 62 $objPage->arrPageLayout =& $arrPageData[0]; 63 63 … … 82 82 } else { 83 83 $error = "ブロックが見つかりません\n" 84 . "tpl_path: ". $arrBloc['tpl_path'] . "\n"85 . "php_path: ". $arrBloc['php_path'];84 . 'tpl_path: ' . $arrBloc['tpl_path'] . "\n" 85 . 'php_path: ' . $arrBloc['php_path']; 86 86 GC_Utils_Ex::gfPrintLog($error); 87 87 } … … 159 159 AND bloc.device_type_id = pos.device_type_id 160 160 __EOF__; 161 $where = "bloc.device_type_id = ? AND (anywhere = 1 OR pos.page_id = ?)";161 $where = 'bloc.device_type_id = ? AND (anywhere = 1 OR pos.page_id = ?)'; 162 162 $objQuery->setOrder('target_id, bloc_row'); 163 $arrBlocs = $objQuery->select( "*", $table, $where,163 $arrBlocs = $objQuery->select('*', $table, $where, 164 164 array($device_type_id, $page_id)); 165 165 if ($has_realpath) { … … 186 186 if ($page_id != '') { 187 187 $arrPageData = $this->getPageProperties($device_type_id, $page_id); 188 $ret = $objQuery->delete('dtb_pagelayout', "page_id = ? AND device_type_id = ?", array($page_id, $device_type_id));188 $ret = $objQuery->delete('dtb_pagelayout', 'page_id = ? AND device_type_id = ?', array($page_id, $device_type_id)); 189 189 // ファイルの削除 190 190 $this->lfDelFile($arrPageData[0]['filename'], $device_type_id); … … 255 255 */ 256 256 function getTemplatePath($device_type_id = DEVICE_TYPE_PC, $isUser = false) { 257 $templateName = "";257 $templateName = ''; 258 258 switch ($device_type_id) { 259 259 case DEVICE_TYPE_MOBILE: … … 274 274 $userPath = USER_REALDIR; 275 275 if ($isUser) { 276 $dir = $userPath . USER_PACKAGE_DIR . $templateName . "/";276 $dir = $userPath . USER_PACKAGE_DIR . $templateName . '/'; 277 277 } 278 278 return $dir; … … 306 306 $userDir = ROOT_URLPATH . USER_DIR; 307 307 if ($hasPackage) { 308 return $userDir . USER_PACKAGE_DIR . $templateName . "/";308 return $userDir . USER_PACKAGE_DIR . $templateName . '/'; 309 309 } 310 310 return $userDir;
Note: See TracChangeset
for help on using the changeset viewer.