Changeset 17156 for branches/comu-ver2/data/class/helper/SC_Helper_CSV.php
- Timestamp:
- 2008/03/14 17:26:04 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_CSV.php
r17155 r17156 184 184 // 各項目をCSV出力用に変換する。 185 185 $data .= $this->lfMakeTrackbackCSV($list_data[$i]); 186 } 187 return $data; 188 } 189 190 // CSV出力データを作成する。(カテゴリ) 191 function lfGetCategoryCSV($where, $option, $arrval, $arrOutputCols) { 192 $objDb = new SC_Helper_DB_Ex(); 193 194 $from = "dtb_category"; 195 $cols = SC_Utils_Ex::sfGetCommaList($arrOutputCols); 196 197 $objQuery = new SC_Query(); 198 $objQuery->setoption($option); 199 200 $list_data = $objQuery->select($cols, $from, $where, $arrval); 201 $max = count($list_data); 202 203 if (!isset($data)) $data = ""; 204 for($i = 0; $i < $max; $i++) { 205 // 各項目をCSV出力用に変換する。 206 $data .= $this->lfMakeCSV($list_data[$i]); 186 207 } 187 208 return $data; … … 334 355 2 => 'customer', 335 356 3 => 'order', 336 4 => 'campaign' 357 4 => 'campaign', 358 5 => 'category' 337 359 ); 338 360 … … 341 363 2 => '顧客管理', 342 364 3 => '受注管理', 343 4 => 'キャンペーン' 365 4 => 'キャンペーン', 366 5 => 'カテゴリ' 344 367 ); 345 368
Note: See TracChangeset
for help on using the changeset viewer.