Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_PageLayout.php

    r21481 r21514  
    4747     * @return void 
    4848     */ 
    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) { 
    5050 
    5151        // URLを元にページ情報を取得 
     
    5959        } 
    6060 
    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'; 
    6262        $objPage->arrPageLayout =& $arrPageData[0]; 
    6363 
     
    8282                } else { 
    8383                    $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']; 
    8686                    GC_Utils_Ex::gfPrintLog($error); 
    8787                } 
     
    159159        AND bloc.device_type_id = pos.device_type_id 
    160160__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 = ?)'; 
    162162        $objQuery->setOrder('target_id, bloc_row'); 
    163         $arrBlocs = $objQuery->select("*", $table, $where, 
     163        $arrBlocs = $objQuery->select('*', $table, $where, 
    164164                                      array($device_type_id, $page_id)); 
    165165        if ($has_realpath) { 
     
    186186        if ($page_id != '') { 
    187187            $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)); 
    189189            // ファイルの削除 
    190190            $this->lfDelFile($arrPageData[0]['filename'], $device_type_id); 
     
    255255     */ 
    256256    function getTemplatePath($device_type_id = DEVICE_TYPE_PC, $isUser = false) { 
    257         $templateName = ""; 
     257        $templateName = ''; 
    258258        switch ($device_type_id) { 
    259259        case DEVICE_TYPE_MOBILE: 
     
    274274        $userPath = USER_REALDIR; 
    275275        if ($isUser) { 
    276             $dir = $userPath . USER_PACKAGE_DIR . $templateName . "/"; 
     276            $dir = $userPath . USER_PACKAGE_DIR . $templateName . '/'; 
    277277        } 
    278278        return $dir; 
     
    306306        $userDir = ROOT_URLPATH . USER_DIR; 
    307307        if ($hasPackage) { 
    308             return $userDir . USER_PACKAGE_DIR . $templateName . "/"; 
     308            return $userDir . USER_PACKAGE_DIR . $templateName . '/'; 
    309309        } 
    310310        return $userDir; 
Note: See TracChangeset for help on using the changeset viewer.