Ignore:
Timestamp:
2013/03/06 23:09:54 (13 years ago)
Author:
pineray
Message:

#2176 pageクラスからdtb_blocテーブルを直接指定している箇所をなくす

File:
1 edited

Legend:

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

    r22567 r22610  
    138138    function getBlocs($device_type_id = DEVICE_TYPE_PC, $where = '', $arrParams = array(), $has_realpath = true) 
    139139    { 
    140         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    141         $where = 'device_type_id = ? ' . (SC_Utils_Ex::isBlank($where) ? $where : 'AND ' . $where); 
    142         $arrParams = array_merge(array($device_type_id), $arrParams); 
    143         $objQuery->setOrder('bloc_id'); 
    144         $arrBlocs = $objQuery->select('*', 'dtb_bloc', $where, $arrParams); 
     140        $objBloc = new SC_Helper_Bloc_Ex($device_type_id); 
     141        $arrBlocs = $objBloc->getWhere($where, $arrParams); 
    145142        if ($has_realpath) { 
    146143            $this->setBlocPathTo($device_type_id, $arrBlocs); 
Note: See TracChangeset for help on using the changeset viewer.