Ignore:
Timestamp:
2008/03/14 17:26:04 (16 years ago)
Author:
Yammy
Message:

http://svn.ec-cube.net/open_trac/ticket/252
カテゴリ情報CSVダウンロード
の内容をコミット

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/helper/SC_Helper_CSV.php

    r17155 r17156  
    184184            // 各項目をCSV出力用に変換する。 
    185185            $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]); 
    186207        } 
    187208        return $data; 
     
    334355                                  2 => 'customer', 
    335356                                  3 => 'order', 
    336                                   4 => 'campaign' 
     357                                  4 => 'campaign', 
     358                                  5 => 'category' 
    337359                                  ); 
    338360 
     
    341363                                      2 => '顧客管理', 
    342364                                      3 => '受注管理', 
    343                                       4 => 'キャンペーン' 
     365                                      4 => 'キャンペーン', 
     366                                      5 => 'カテゴリ' 
    344367                                      ); 
    345368 
Note: See TracChangeset for help on using the changeset viewer.