Ignore:
Timestamp:
2013/06/08 16:35:27 (11 years ago)
Author:
Seasoft
Message:

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

  • 主に空白・空白行の調整。もう少し整えたいが、一旦現状コミット。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/helper/SC_Helper_DB.php

    r22841 r22856  
    3131class SC_Helper_DB 
    3232{ 
    33  
    34     // {{{ properties 
    35  
    3633    /** ルートカテゴリ取得フラグ */ 
    3734    var $g_root_on; 
     
    4643    var $g_category_id; 
    4744 
    48     // }}} 
    49     // {{{ functions 
    5045 
    5146    /** 
     
    8984            return $this->sfColumnAdd($tableName, $colName, $colType); 
    9085        } 
     86 
    9187        return false; 
    9288    } 
     
    9490    function sfColumnAdd($tableName, $colName, $colType) { 
    9591        $objQuery =& SC_Query_Ex::getSingletonInstance($dsn); 
     92 
    9693        return $objQuery->query("ALTER TABLE $tableName ADD $colName $colType "); 
    9794    } 
     
    239236    function sfGetRootId() 
    240237    { 
    241  
    242238        if (!$this->g_root_on) { 
    243239            $this->g_root_on = true; 
     
    262258            $this->g_root_id = $root_id; 
    263259        } 
     260 
    264261        return $this->g_root_id; 
    265262    } 
     
    297294            $point = ''; 
    298295        } 
     296 
    299297        return array($point, $rollback_point); 
    300298    } 
     
    509507            $arrList[$id] = str_repeat($head, $arrRet[$cnt]['level']) . $name; 
    510508        } 
     509 
    511510        return $arrList; 
    512511    } 
     
    588587            $category_id = array(); 
    589588        } 
     589 
    590590        return $category_id; 
    591591    } 
     
    679679        // 登録するカテゴリ情報と比較 
    680680        foreach ($arrCurrentCat as $category_id) { 
    681  
    682681            // 登録しないカテゴリを削除 
    683682            if (!in_array($category_id, $arrCategory_id)) { 
     
    882881    { 
    883882        $arrRet = $this->sfGetChildrenArray($table, $pid_name, $id_name, $id); 
     883 
    884884        return $arrRet; 
    885885    } 
     
    940940    { 
    941941        $arrRet = SC_Helper_DB_Ex::sfGetParentsArray($table, $pid_name, $id_name, $id); 
     942 
    942943        return $arrRet; 
    943944    } 
     
    978979        } 
    979980        $parent = $objQuery->get($pid_name, $table, "$id_name = ?", $child); 
     981 
    980982        return $parent; 
    981983    } 
     
    10211023            $arrRet[$key] = $val; 
    10221024        } 
     1025 
    10231026        return $arrRet; 
    10241027    } 
     
    11851188     */ 
    11861189    function getNewRank($position, $maxRank) { 
    1187  
    11881190        if ($position > $maxRank) { 
    11891191            $newRank = 1; 
     
    11931195            $newRank = $maxRank - $position + 1; 
    11941196        } 
     1197 
    11951198        return $newRank; 
    11961199    } 
     
    12061209     */ 
    12071210    function moveOtherItemRank($newRank, $oldRank, &$objQuery, $tableName, $addWhere) { 
    1208  
    12091211        $sqlval = array(); 
    12101212        $arrRawSql = array(); 
     
    12301232    } 
    12311233 
    1232  
    12331234    /** 
    12341235     * ランクを含むレコードを削除する. 
     
    13091310        $objQuery->setOrder('level'); 
    13101311        $arrRet = $objQuery->select($col, $table, $where, $arrId); 
     1312 
    13111313        return $arrRet; 
    13121314    } 
     
    13911393            return true; 
    13921394        } 
     1395 
    13931396        return false; 
    13941397    } 
     
    14481451            } 
    14491452        } 
     1453 
    14501454        return $this->g_maker_id; 
    14511455    } 
     
    14891493            $arrList[$id] = $name; 
    14901494        } 
     1495 
    14911496        return $arrList; 
    14921497    } 
     
    16221627        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    16231628        $col = 'COUNT(*)'; 
     1629 
    16241630        return $objQuery->get($col, $table, $where, $arrval); 
    16251631    } 
Note: See TracChangeset for help on using the changeset viewer.