Ignore:
Timestamp:
2012/02/06 11:05:15 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
Location:
branches/version-2_12-dev/data/class/db
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/db/SC_DB_DBFactory.php

    r21420 r21441  
    6767     */ 
    6868    function getDSN($dsn = "") { 
    69         if(empty($dsn)) { 
    70             if(defined('DEFAULT_DSN')) { 
     69        if (empty($dsn)) { 
     70            if (defined('DEFAULT_DSN')) { 
    7171                $dsn = DEFAULT_DSN; 
    7272            } else { 
  • branches/version-2_12-dev/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php

    r21420 r21441  
    153153     */ 
    154154    function getOrderTotalDaysWhereSql($type) { 
    155         switch($type){ 
     155        switch ($type) { 
    156156        case 'month': 
    157157            $format = '%m'; 
     
    273273     */ 
    274274    function sfChangeArrayToString($sql){ 
    275         if(strpos(strtoupper($sql), 'ARRAY_TO_STRING') !== FALSE) { 
     275        if (strpos(strtoupper($sql), 'ARRAY_TO_STRING') !== FALSE) { 
    276276            preg_match_all('/ARRAY_TO_STRING.*?\(.*?ARRAY\(.*?SELECT (.+?) FROM (.+?) WHERE (.+?)\).*?\,.*?\'(.+?)\'.*?\)/is', $sql, $match, PREG_SET_ORDER); 
    277277 
    278             foreach($match as $item) { 
     278            foreach ($match as $item) { 
    279279                $replace = 'GROUP_CONCAT(' . $item[1] . ' SEPARATOR \'' . $item[4] . '\') FROM ' . $item[2] . ' WHERE ' . $item[3]; 
    280280                $sql = str_replace($item[0], $replace, $sql); 
     
    296296        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    297297        $arrTblInfo = $objQuery->getTableInfo($table); 
    298         foreach($arrTblInfo as $fieldInfo) { 
    299             if(array_key_exists($fieldInfo['name'], $definition['fields'])) { 
    300                 if($fieldInfo['nativetype'] == 'text') { 
     298        foreach ($arrTblInfo as $fieldInfo) { 
     299            if (array_key_exists($fieldInfo['name'], $definition['fields'])) { 
     300                if ($fieldInfo['nativetype'] == 'text') { 
    301301                    // TODO: text型フィールドの場合に255文字以内決めうちでインデックス列のサイズとして 
    302302                    //       指定して良いか確認は必要。 
  • branches/version-2_12-dev/data/class/db/dbfactory/SC_DB_DBFactory_PGSQL.php

    r21420 r21441  
    136136     */ 
    137137    function getOrderTotalDaysWhereSql($type) { 
    138         switch($type){ 
     138        switch ($type) { 
    139139        case 'month': 
    140140            $format = 'MM'; 
Note: See TracChangeset for help on using the changeset viewer.