Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

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

File:
1 edited

Legend:

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

    r22405 r22567  
    2929 * @version $Id:SC_Helper_PageLayout.php 15532 2007-08-31 14:39:46Z nanasess $ 
    3030 */ 
    31 class SC_Helper_PageLayout { 
     31class SC_Helper_PageLayout  
     32{ 
    3233 
    3334    // }}} 
     
    4748     * @return void 
    4849     */ 
    49     function sfGetPageLayout(&$objPage, $preview = false, $url = '', $device_type_id = DEVICE_TYPE_PC) { 
     50    function sfGetPageLayout(&$objPage, $preview = false, $url = '', $device_type_id = DEVICE_TYPE_PC) 
     51    { 
    5052 
    5153        // URLを元にページ情報を取得 
     
    109111     * @return array ページ属性の配列 
    110112     */ 
    111     function getPageProperties($device_type_id = DEVICE_TYPE_PC, $page_id = null, $where = '', $arrParams = array()) { 
     113    function getPageProperties($device_type_id = DEVICE_TYPE_PC, $page_id = null, $where = '', $arrParams = array()) 
     114    { 
    112115        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    113116        $where = 'device_type_id = ? ' . (SC_Utils_Ex::isBlank($where) ? $where : 'AND ' . $where); 
     
    133136     * @return array ブロック情報の配列 
    134137     */ 
    135     function getBlocs($device_type_id = DEVICE_TYPE_PC, $where = '', $arrParams = array(), $has_realpath = true) { 
     138    function getBlocs($device_type_id = DEVICE_TYPE_PC, $where = '', $arrParams = array(), $has_realpath = true) 
     139    { 
    136140        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    137141        $where = 'device_type_id = ? ' . (SC_Utils_Ex::isBlank($where) ? $where : 'AND ' . $where); 
     
    154158     * @return array 配置情報を含めたブロックの配列 
    155159     */ 
    156     function getBlocPositions($device_type_id, $page_id, $has_realpath = true) { 
     160    function getBlocPositions($device_type_id, $page_id, $has_realpath = true) 
     161    { 
    157162        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    158163        $table = <<< __EOF__ 
     
    193198     * @return integer 削除数 
    194199     */ 
    195     function lfDelPageData($page_id, $device_type_id = DEVICE_TYPE_PC) { 
     200    function lfDelPageData($page_id, $device_type_id = DEVICE_TYPE_PC) 
     201    { 
    196202        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    197203        // page_id が空でない場合にはdeleteを実行 
     
    215221     * @return void // TODO boolean にするべき? 
    216222     */ 
    217     function lfDelFile($filename, $device_type_id) { 
     223    function lfDelFile($filename, $device_type_id) 
     224    { 
    218225        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    219226 
     
    247254     * @return 編集可能ページの場合 true 
    248255     */ 
    249     function isEditablePage($device_type_id, $page_id) { 
     256    function isEditablePage($device_type_id, $page_id) 
     257    { 
    250258        if ($page_id == 0) { 
    251259            return false; 
     
    266274     * @return string テンプレートのパス 
    267275     */ 
    268     function getTemplatePath($device_type_id = DEVICE_TYPE_PC, $isUser = false) { 
     276    function getTemplatePath($device_type_id = DEVICE_TYPE_PC, $isUser = false) 
     277    { 
    269278        $templateName = ''; 
    270279        switch ($device_type_id) { 
     
    303312     * @return string 端末に応じた DocumentRoot から user_data までのパス 
    304313     */ 
    305     function getUserDir($device_type_id = DEVICE_TYPE_PC, $hasPackage = false) { 
     314    function getUserDir($device_type_id = DEVICE_TYPE_PC, $hasPackage = false) 
     315    { 
    306316        switch ($device_type_id) { 
    307317        case DEVICE_TYPE_MOBILE: 
     
    335345     * @return void 
    336346     */ 
    337     function setBlocPathTo($device_type_id = DEVICE_TYPE_PC, &$arrBlocs = array()) { 
     347    function setBlocPathTo($device_type_id = DEVICE_TYPE_PC, &$arrBlocs = array()) 
     348    { 
    338349        foreach ($arrBlocs as $key => $value) { 
    339350            $arrBloc =& $arrBlocs[$key]; 
     
    351362     * @return integer $col_num カラム数 
    352363     */ 
    353     function getColumnNum($arrPageLayout) { 
     364    function getColumnNum($arrPageLayout) 
     365    { 
    354366        // メインは確定 
    355367        $col_num = 1; 
Note: See TracChangeset for help on using the changeset viewer.