- Timestamp:
- 2011/02/16 14:12:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r20167 r20171 138 138 * 139 139 * @param boolean $force 強制的にDB取得するか 140 * @param string $col 取得カラムを指定する 140 141 * @return array 店舗基本情報の配列 141 142 */ 142 function sfGetBasisData($force = false ) {143 function sfGetBasisData($force = false, $col = "") { 143 144 static $data; 144 145 145 146 if ($force || !isset($data)) { 146 147 $objQuery =& SC_Query::getSingletonInstance(); 147 $arrRet = $objQuery->select('*', 'dtb_baseinfo'); 148 149 if ($col === "") { 150 $arrRet = $objQuery->select('*', 'dtb_baseinfo'); 151 } else { 152 $arrRet = $objQuery->select($col, "dtb_baseinfo"); 153 } 148 154 149 155 if (isset($arrRet[0])) { … … 153 159 } 154 160 } 155 156 161 return $data; 157 162 } 163 164 /** 165 * 基本情報の登録数を取得する 166 * 167 * @return int 168 */ 169 function sfGetBasisCount() { 170 $objQuery =& SC_Query::getSingletonInstance(); 171 172 return $objQuery->count("dtb_baseinfo"); 173 } 174 158 175 159 176 /* 選択中のアイテムのルートカテゴリIDを取得する */
Note: See TracChangeset
for help on using the changeset viewer.
