- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/api/operations/ItemSearch.php
r22567 r22796 31 31 require_once CLASS_EX_REALDIR . 'api_extends/SC_Api_Abstract_Ex.php'; 32 32 33 class API_ItemSearch extends SC_Api_Abstract_Ex 34 { 33 class API_ItemSearch extends SC_Api_Abstract_Ex { 35 34 36 35 protected $operation_name = 'ItemSearch'; … … 41 40 protected $default_sub_data = ''; 42 41 43 public function doAction($arrParam) 44 { 42 public function doAction($arrParam) { 45 43 $arrRequest = $this->doInitParam($arrParam); 46 44 if (!$this->isParamError()) { … … 70 68 if (!SC_Utils_Ex::isBlank($arrProducts)) { 71 69 $arrProducts = $this->setStatusDataTo($arrProducts, $arrSTATUS, $arrSTATUS_IMAGE); 72 SC_Product_Ex::setPriceTaxTo($arrProducts);70 $arrProducts = $objProduct->setPriceTaxTo($arrProducts); 73 71 foreach ($arrProducts as $key=>$val) { 74 72 $arrProducts[$key]['main_list_image'] = SC_Utils_Ex::sfNoImageMainList($val['main_list_image']); … … 94 92 } 95 93 96 protected function lfInitParam(&$objFormParam) 97 { 94 protected function lfInitParam(&$objFormParam) { 98 95 $objFormParam->addParam('カテゴリID', 'BrowseNode', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 99 96 $objFormParam->addParam('キーワード', 'Keywords', STEXT_LEN, 'a', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); … … 103 100 } 104 101 105 public function getResponseGroupName() 106 { 102 public function getResponseGroupName() { 107 103 return 'Items'; 108 104 } … … 115 111 * TODO: LC_Page_Products_List::lfGetProductsList() と共通化 116 112 */ 117 protected function getProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) 118 { 113 protected function getProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) { 119 114 120 115 $arrOrderVal = array(); … … 190 185 * TODO: LC_Page_Products_List:;lfGetSearchCondition() と共通化 191 186 */ 192 protected function getSearchCondition($arrSearchData) 193 { 187 protected function getSearchCondition($arrSearchData) { 194 188 $searchCondition = array( 195 189 'where' => '', … … 260 254 * @return Array $arrProducts 商品一覧情報 261 255 */ 262 protected function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) 263 { 256 protected function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) { 264 257 265 258 foreach ($arrProducts['productStatus'] as $product_id => $arrValues) {
Note: See TracChangeset
for help on using the changeset viewer.
