Changeset 18758 for trunk/data/class/helper/SC_Helper_CSV.php
- Timestamp:
- 2010/07/20 13:25:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/class/helper/SC_Helper_CSV.php
r18562 r18758 1 1 <?php 2 2 /* 3 * Copyright(c) 2000-20 07LOCKON CO.,LTD. All Rights Reserved.3 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 4 4 * 5 5 * http://www.lockon.co.jp/ … … 94 94 $sql .= " "; 95 95 96 $ret = $objQuery->get all($sql, $arrData);96 $ret = $objQuery->getAll($sql, $arrData); 97 97 98 98 return $ret; … … 108 108 109 109 $objQuery = new SC_Query(); 110 $objQuery->set order($order);110 $objQuery->setOrder($order); 111 111 112 112 $dataRows = $objQuery->select( 113 SC_Utils_Ex::sfGetCommaList($arrOutputCols , true, array('category_id'))113 SC_Utils_Ex::sfGetCommaList($arrOutputCols) 114 114 ,'vw_product_class AS prdcls' 115 115 ,$where … … 165 165 166 166 $objQuery = new SC_Query(); 167 $objQuery->set option($option);167 $objQuery->setOption($option); 168 168 169 169 $list_data = $objQuery->select($cols, $from, $where, $arrval); … … 184 184 185 185 $objQuery = new SC_Query(); 186 $objQuery->set option($option);186 $objQuery->setOption($option); 187 187 188 188 $list_data = $objQuery->select($cols, $from, $where, $arrval); … … 206 206 207 207 $objQuery = new SC_Query(); 208 $objQuery->set order('rank DESC');208 $objQuery->setOrder('rank DESC'); 209 209 210 210 $dataRows = $objQuery->select( … … 237 237 238 238 $objQuery = new SC_Query(); 239 $objQuery->set option($option);239 $objQuery->setOption($option); 240 240 241 241 $list_data = $objQuery->select($cols, $from, $where, $arrval); … … 266 266 break; 267 267 } 268 269 $tmp = ereg_replace("[\",]", " ", $tmp); 268 $tmp = ereg_replace("\"", "\"\"", $tmp); 270 269 $line .= "\"".$tmp."\","; 271 270 } … … 297 296 } 298 297 299 $tmp = ereg_replace(" [\",]", "", $tmp);298 $tmp = ereg_replace("\"", "\"\"", $tmp); 300 299 $line .= "\"".$tmp."\","; 301 300 } … … 320 319 } 321 320 322 $tmp = ereg_replace(" [\",]", "", $tmp);321 $tmp = ereg_replace("\"", "\"\"", $tmp); 323 322 $line .= "\"".$tmp."\","; 324 323 }
Note: See TracChangeset
for help on using the changeset viewer.