[15342] | 1 | <?php |
---|
| 2 | /* |
---|
[16582] | 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
[20764] | 5 | * Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved. |
---|
[15342] | 6 | * |
---|
| 7 | * http://www.lockon.co.jp/ |
---|
[16582] | 8 | * |
---|
| 9 | * This program is free software; you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU General Public License |
---|
| 11 | * as published by the Free Software Foundation; either version 2 |
---|
| 12 | * of the License, or (at your option) any later version. |
---|
| 13 | * |
---|
| 14 | * This program is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this program; if not, write to the Free Software |
---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
[15342] | 22 | */ |
---|
| 23 | |
---|
| 24 | // {{{ requires |
---|
[20534] | 25 | require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php'; |
---|
[15342] | 26 | |
---|
| 27 | /** |
---|
| 28 | * 商品管理 のページクラス. |
---|
| 29 | * |
---|
| 30 | * @package Page |
---|
| 31 | * @author LOCKON CO.,LTD. |
---|
[20016] | 32 | * @version $Id$ |
---|
[15342] | 33 | */ |
---|
[20345] | 34 | class LC_Page_Admin_Products extends LC_Page_Admin_Ex { |
---|
[15342] | 35 | |
---|
| 36 | // }}} |
---|
| 37 | // {{{ functions |
---|
| 38 | |
---|
| 39 | /** |
---|
| 40 | * Page を初期化する. |
---|
| 41 | * |
---|
| 42 | * @return void |
---|
| 43 | */ |
---|
| 44 | function init() { |
---|
| 45 | parent::init(); |
---|
| 46 | $this->tpl_mainpage = 'products/index.tpl'; |
---|
| 47 | $this->tpl_mainno = 'products'; |
---|
| 48 | $this->tpl_subno = 'index'; |
---|
[20128] | 49 | $this->tpl_pager = 'pager.tpl'; |
---|
[20911] | 50 | $this->tpl_maintitle = '商品管理'; |
---|
[20970] | 51 | $this->tpl_subtitle = '商品マスター'; |
---|
[15342] | 52 | |
---|
| 53 | $masterData = new SC_DB_MasterData_Ex(); |
---|
| 54 | $this->arrPageMax = $masterData->getMasterData("mtb_page_max"); |
---|
| 55 | $this->arrDISP = $masterData->getMasterData("mtb_disp"); |
---|
| 56 | $this->arrSTATUS = $masterData->getMasterData("mtb_status"); |
---|
| 57 | $this->arrPRODUCTSTATUS_COLOR = $masterData->getMasterData("mtb_product_status_color"); |
---|
[20535] | 58 | |
---|
| 59 | $objDate = new SC_Date(); |
---|
| 60 | // 登録・更新検索開始年 |
---|
| 61 | $objDate->setStartYear(RELEASE_YEAR); |
---|
| 62 | $objDate->setEndYear(DATE("Y")); |
---|
| 63 | $this->arrStartYear = $objDate->getYear(); |
---|
| 64 | $this->arrStartMonth = $objDate->getMonth(); |
---|
| 65 | $this->arrStartDay = $objDate->getDay(); |
---|
| 66 | // 登録・更新検索終了年 |
---|
| 67 | $objDate->setStartYear(RELEASE_YEAR); |
---|
| 68 | $objDate->setEndYear(DATE("Y")); |
---|
| 69 | $this->arrEndYear = $objDate->getYear(); |
---|
| 70 | $this->arrEndMonth = $objDate->getMonth(); |
---|
| 71 | $this->arrEndDay = $objDate->getDay(); |
---|
| 72 | |
---|
[15342] | 73 | } |
---|
| 74 | |
---|
| 75 | /** |
---|
| 76 | * Page のプロセス. |
---|
| 77 | * |
---|
| 78 | * @return void |
---|
| 79 | */ |
---|
| 80 | function process() { |
---|
[19661] | 81 | $this->action(); |
---|
| 82 | $this->sendResponse(); |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | /** |
---|
| 86 | * Page のアクション. |
---|
| 87 | * |
---|
| 88 | * @return void |
---|
| 89 | */ |
---|
| 90 | function action() { |
---|
[15350] | 91 | $objDb = new SC_Helper_DB_Ex(); |
---|
[21229] | 92 | $objFormParam = new SC_FormParam_Ex(); |
---|
| 93 | $objProduct = new SC_Product_Ex(); |
---|
| 94 | $objQuery =& SC_Query_Ex::getSingletonInstance(); |
---|
[15342] | 95 | |
---|
[20970] | 96 | // パラメーター情報の初期化 |
---|
[20200] | 97 | $this->lfInitParam($objFormParam); |
---|
| 98 | $objFormParam->setParam($_POST); |
---|
| 99 | $this->arrHidden = $objFormParam->getSearchArray(); |
---|
| 100 | $this->arrForm = $objFormParam->getFormParamList(); |
---|
[15342] | 101 | |
---|
[20044] | 102 | switch ($this->getMode()) { |
---|
| 103 | case 'delete': |
---|
[21118] | 104 | // 商品、子テーブル(商品規格)、顧客お気に入り商品の削除 |
---|
[20200] | 105 | $this->doDelete("product_id = ?", array($objFormParam->getValue('product_id'))); |
---|
[15342] | 106 | // 件数カウントバッチ実行 |
---|
[20032] | 107 | $objDb->sfCountCategory($objQuery); |
---|
| 108 | $objDb->sfCountMaker($objQuery); |
---|
[20200] | 109 | // 削除後に検索結果を表示するため breakしない |
---|
| 110 | |
---|
[20970] | 111 | // 検索パラメーター生成後に処理実行するため breakしない |
---|
[20044] | 112 | case 'csv': |
---|
| 113 | case 'delete_all': |
---|
[15342] | 114 | |
---|
[20200] | 115 | case 'search': |
---|
| 116 | $objFormParam->convParam(); |
---|
| 117 | $objFormParam->trimParam(); |
---|
| 118 | $this->arrErr = $this->lfCheckError($objFormParam); |
---|
| 119 | $arrParam = $objFormParam->getHashArray(); |
---|
[15342] | 120 | |
---|
| 121 | if (count($this->arrErr) == 0) { |
---|
[20200] | 122 | $where = "del_flg = 0"; |
---|
| 123 | foreach ($arrParam as $key => $val) { |
---|
[15342] | 124 | if($val == "") { |
---|
| 125 | continue; |
---|
| 126 | } |
---|
[20202] | 127 | $this->buildQuery($key, $where, $arrval, $objFormParam, $objDb); |
---|
[15342] | 128 | } |
---|
| 129 | |
---|
[20200] | 130 | $order = "update_date DESC"; |
---|
[15551] | 131 | |
---|
[20200] | 132 | /* ----------------------------------------------- |
---|
| 133 | * 処理を実行 |
---|
| 134 | * ----------------------------------------------- */ |
---|
| 135 | switch($this->getMode()) { |
---|
[20964] | 136 | // CSVを送信する。 |
---|
| 137 | case 'csv': |
---|
| 138 | require_once CLASS_EX_REALDIR . 'helper_extends/SC_Helper_CSV_Ex.php'; |
---|
[20276] | 139 | |
---|
[20964] | 140 | $objCSV = new SC_Helper_CSV_Ex(); |
---|
| 141 | // CSVを送信する。正常終了の場合、終了。 |
---|
| 142 | $objCSV->sfDownloadCsv(1, $where, $arrval, $order, true); |
---|
| 143 | exit; |
---|
[18327] | 144 | |
---|
[20964] | 145 | // 全件削除(ADMIN_MODE) |
---|
| 146 | case 'delete_all': |
---|
| 147 | $this->doDelete($where, $arrval); |
---|
| 148 | break; |
---|
[18327] | 149 | |
---|
[20964] | 150 | // 検索実行 |
---|
| 151 | default: |
---|
| 152 | // 行数の取得 |
---|
| 153 | $this->tpl_linemax = $this->getNumberOfLines($where, $arrval); |
---|
| 154 | // ページ送りの処理 |
---|
| 155 | $page_max = SC_Utils_Ex::sfGetSearchPageMax($objFormParam->getValue('search_page_max')); |
---|
| 156 | // ページ送りの取得 |
---|
| 157 | $objNavi = new SC_PageNavi_Ex($this->arrHidden['search_pageno'], |
---|
| 158 | $this->tpl_linemax, $page_max, |
---|
| 159 | 'fnNaviSearchPage', NAVI_PMAX); |
---|
| 160 | $this->arrPagenavi = $objNavi->arrPagenavi; |
---|
[20201] | 161 | |
---|
[20964] | 162 | // 検索結果の取得 |
---|
| 163 | $this->arrProducts = $this->findProducts($where, $arrval, |
---|
| 164 | $page_max, $objNavi->start_row, $order, $objProduct); |
---|
| 165 | |
---|
| 166 | // 各商品ごとのカテゴリIDを取得 |
---|
| 167 | if (count($this->arrProducts) > 0) { |
---|
| 168 | foreach ($this->arrProducts as $key => $val) { |
---|
| 169 | $this->arrProducts[$key]['categories'] = $objDb->sfGetCategoryId($val["product_id"], 0, true); |
---|
| 170 | $objDb->g_category_on = false; |
---|
| 171 | } |
---|
[17799] | 172 | } |
---|
[15342] | 173 | } |
---|
| 174 | } |
---|
[20044] | 175 | break; |
---|
[15342] | 176 | } |
---|
| 177 | |
---|
| 178 | // カテゴリの読込 |
---|
[17569] | 179 | list($this->arrCatKey, $this->arrCatVal) = $objDb->sfGetLevelCatList(false); |
---|
| 180 | $this->arrCatList = $this->lfGetIDName($this->arrCatKey, $this->arrCatVal); |
---|
[15342] | 181 | } |
---|
| 182 | |
---|
| 183 | /** |
---|
| 184 | * デストラクタ. |
---|
| 185 | * |
---|
| 186 | * @return void |
---|
| 187 | */ |
---|
| 188 | function destroy() { |
---|
| 189 | parent::destroy(); |
---|
| 190 | } |
---|
| 191 | |
---|
[20200] | 192 | /** |
---|
[20970] | 193 | * パラメーター情報の初期化を行う. |
---|
[20200] | 194 | * |
---|
| 195 | * @param SC_FormParam $objFormParam SC_FormParam インスタンス |
---|
| 196 | * @return void |
---|
| 197 | */ |
---|
| 198 | function lfInitParam(&$objFormParam) { |
---|
[20201] | 199 | |
---|
| 200 | // POSTされる値 |
---|
[21183] | 201 | $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); |
---|
| 202 | $objFormParam->addParam('カテゴリID', 'category_id', STEXT_LEN, 'n', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); |
---|
| 203 | $objFormParam->addParam('ページ送り番号','search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
| 204 | $objFormParam->addParam('表示件数', 'search_page_max', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
[20201] | 205 | |
---|
[20200] | 206 | // 検索条件 |
---|
[21183] | 207 | $objFormParam->addParam('商品ID', 'search_product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); |
---|
| 208 | $objFormParam->addParam('商品コード', 'search_product_code', STEXT_LEN, 'KVna', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); |
---|
| 209 | $objFormParam->addParam('商品名', 'search_name', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); |
---|
| 210 | $objFormParam->addParam('カテゴリ', 'search_category_id', STEXT_LEN, 'n', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); |
---|
| 211 | $objFormParam->addParam('種別', 'search_status', INT_LEN, 'n', array('MAX_LENGTH_CHECK')); |
---|
[20200] | 212 | // 登録・更新日 |
---|
[21183] | 213 | $objFormParam->addParam('開始年', 'search_startyear', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
| 214 | $objFormParam->addParam('開始月', 'search_startmonth', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
| 215 | $objFormParam->addParam('開始日', 'search_startday', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
| 216 | $objFormParam->addParam('終了年', 'search_endyear', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
| 217 | $objFormParam->addParam('終了月', 'search_endmonth', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
| 218 | $objFormParam->addParam('終了日', 'search_endday', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); |
---|
[15342] | 219 | |
---|
[21183] | 220 | $objFormParam->addParam('商品ステータス', 'search_product_statuses', INT_LEN, 'n', array('MAX_LENGTH_CHECK')); |
---|
[15342] | 221 | } |
---|
| 222 | |
---|
[20200] | 223 | /** |
---|
| 224 | * 入力内容のチェックを行う. |
---|
| 225 | * |
---|
| 226 | * @param SC_FormParam $objFormParam SC_FormParam インスタンス |
---|
| 227 | * @return void |
---|
| 228 | */ |
---|
| 229 | function lfCheckError(&$objFormParam) { |
---|
[20503] | 230 | $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); |
---|
[20200] | 231 | $objErr->arrErr = $objFormParam->checkError(); |
---|
| 232 | |
---|
[15342] | 233 | $objErr->doFunc(array("開始日", "終了日", "search_startyear", "search_startmonth", "search_startday", "search_endyear", "search_endmonth", "search_endday"), array("CHECK_SET_TERM")); |
---|
[20200] | 234 | |
---|
[15342] | 235 | return $objErr->arrErr; |
---|
| 236 | } |
---|
| 237 | |
---|
| 238 | // カテゴリIDをキー、カテゴリ名を値にする配列を返す。 |
---|
[17569] | 239 | function lfGetIDName($arrCatKey, $arrCatVal) { |
---|
| 240 | $max = count($arrCatKey); |
---|
[15342] | 241 | for ($cnt = 0; $cnt < $max; $cnt++ ) { |
---|
[17569] | 242 | $key = isset($arrCatKey[$cnt]) ? $arrCatKey[$cnt] : ""; |
---|
| 243 | $val = isset($arrCatVal[$cnt]) ? $arrCatVal[$cnt] : ""; |
---|
[15342] | 244 | $arrRet[$key] = $val; |
---|
| 245 | } |
---|
| 246 | return $arrRet; |
---|
| 247 | } |
---|
[20200] | 248 | |
---|
| 249 | /** |
---|
[20201] | 250 | * 商品、子テーブル(商品規格)、お気に入り商品の削除 |
---|
[20200] | 251 | * |
---|
| 252 | * @param string $where 削除対象の WHERE 句 |
---|
| 253 | * @param array $arrParam 削除対象の値 |
---|
| 254 | * @return void |
---|
| 255 | */ |
---|
| 256 | function doDelete($where, $arrParam = array()) { |
---|
[20507] | 257 | $objQuery =& SC_Query_Ex::getSingletonInstance(); |
---|
[20907] | 258 | $sqlval['del_flg'] = 1; |
---|
[21185] | 259 | $sqlval['update_date'] = 'CURRENT_TIMESTAMP'; |
---|
[20964] | 260 | $objQuery->begin(); |
---|
| 261 | $objQuery->update('dtb_products_class', $sqlval, "product_id IN (SELECT product_id FROM dtb_products WHERE $where)", $arrParam); |
---|
| 262 | $objQuery->delete('dtb_customer_favorite_products', "product_id IN (SELECT product_id FROM dtb_products WHERE $where)", $arrParam); |
---|
| 263 | $objQuery->update('dtb_products', $sqlval, $where, $arrParam); |
---|
| 264 | $objQuery->commit(); |
---|
[20200] | 265 | } |
---|
| 266 | |
---|
| 267 | /** |
---|
| 268 | * クエリを構築する. |
---|
| 269 | * |
---|
[20970] | 270 | * 検索条件のキーに応じた WHERE 句と, クエリパラメーターを構築する. |
---|
| 271 | * クエリパラメーターは, SC_FormParam の入力値から取得する. |
---|
[20200] | 272 | * |
---|
[20202] | 273 | * 構築内容は, 引数の $where 及び $arrValues にそれぞれ追加される. |
---|
[20200] | 274 | * |
---|
| 275 | * @param string $key 検索条件のキー |
---|
| 276 | * @param string $where 構築する WHERE 句 |
---|
[20970] | 277 | * @param array $arrValues 構築するクエリパラメーター |
---|
[20200] | 278 | * @param SC_FormParam $objFormParam SC_FormParam インスタンス |
---|
| 279 | * @param SC_FormParam $objDb SC_Helper_DB_Ex インスタンス |
---|
| 280 | * @return void |
---|
| 281 | */ |
---|
[20202] | 282 | function buildQuery($key, &$where, &$arrValues, &$objFormParam, &$objDb) { |
---|
[20484] | 283 | $dbFactory = SC_DB_DBFactory_Ex::getInstance(); |
---|
[20200] | 284 | switch ($key) { |
---|
| 285 | // 商品ID |
---|
| 286 | case 'search_product_id': |
---|
| 287 | $where .= " AND product_id = ?"; |
---|
| 288 | $arrValues[] = sprintf('%d', $objFormParam->getValue($key)); |
---|
| 289 | break; |
---|
| 290 | // 商品コード |
---|
| 291 | case 'search_product_code': |
---|
| 292 | $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)"; |
---|
| 293 | $arrValues[] = sprintf('%%%s%%', $objFormParam->getValue($key)); |
---|
| 294 | break; |
---|
| 295 | // 商品名 |
---|
| 296 | case 'search_name': |
---|
| 297 | $where .= " AND name LIKE ?"; |
---|
| 298 | $arrValues[] = sprintf('%%%s%%', $objFormParam->getValue($key)); |
---|
| 299 | break; |
---|
| 300 | // カテゴリ |
---|
| 301 | case 'search_category_id': |
---|
| 302 | list($tmp_where, $tmp_Values) = $objDb->sfGetCatWhere($objFormParam->getValue($key)); |
---|
| 303 | if($tmp_where != "") { |
---|
| 304 | $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; |
---|
| 305 | $arrValues = array_merge((array)$arrValues, (array)$tmp_Values); |
---|
| 306 | } |
---|
| 307 | break; |
---|
| 308 | // 種別 |
---|
| 309 | case 'search_status': |
---|
| 310 | $tmp_where = ""; |
---|
| 311 | foreach($objFormParam->getValue($key) as $element) { |
---|
| 312 | if($element != "") { |
---|
| 313 | if(SC_Utils_Ex::isBlank($tmp_where)) { |
---|
| 314 | $tmp_where .= " AND (status = ?"; |
---|
| 315 | } else { |
---|
| 316 | $tmp_where .= " OR status = ?"; |
---|
| 317 | } |
---|
| 318 | $arrValues[] = $element; |
---|
| 319 | } |
---|
| 320 | } |
---|
| 321 | |
---|
| 322 | if(!SC_Utils_Ex::isBlank($tmp_where)) { |
---|
| 323 | $tmp_where .= ")"; |
---|
| 324 | $where .= " $tmp_where "; |
---|
| 325 | } |
---|
| 326 | break; |
---|
| 327 | // 登録・更新日(開始) |
---|
| 328 | case 'search_startyear': |
---|
| 329 | $date = SC_Utils_Ex::sfGetTimestamp($objFormParam->getValue('search_startyear'), |
---|
| 330 | $objFormParam->getValue('search_startmonth'), |
---|
| 331 | $objFormParam->getValue('search_startday')); |
---|
| 332 | $where.= " AND update_date >= ?"; |
---|
| 333 | $arrValues[] = $date; |
---|
| 334 | break; |
---|
| 335 | // 登録・更新日(終了) |
---|
| 336 | case 'search_endyear': |
---|
| 337 | $date = SC_Utils_Ex::sfGetTimestamp($objFormParam->getValue('search_endyear'), |
---|
| 338 | $objFormParam->getValue('search_endmonth'), |
---|
| 339 | $objFormParam->getValue('search_endday'), true); |
---|
| 340 | $where.= " AND update_date <= ?"; |
---|
| 341 | $arrValues[] = $date; |
---|
| 342 | break; |
---|
[21182] | 343 | // 商品ステータス |
---|
[21183] | 344 | case 'search_product_statuses': |
---|
[20200] | 345 | if(count($objFormParam->getValue($key)) > 0) { |
---|
| 346 | $where .= " AND product_id IN (SELECT product_id FROM dtb_product_status WHERE product_status_id IN ("; |
---|
| 347 | foreach($objFormParam->getValue($key) as $param) { |
---|
| 348 | $where .= "?,"; |
---|
| 349 | $arrValues[] = $param; |
---|
| 350 | } |
---|
| 351 | $where = preg_replace("/,$/", "))", $where); |
---|
| 352 | } |
---|
| 353 | break; |
---|
| 354 | } |
---|
| 355 | } |
---|
| 356 | |
---|
| 357 | /** |
---|
| 358 | * 検索結果の行数を取得する. |
---|
| 359 | * |
---|
| 360 | * @param string $where 検索条件の WHERE 句 |
---|
[20970] | 361 | * @param array $arrValues 検索条件のパラメーター |
---|
[20200] | 362 | * @return integer 検索結果の行数 |
---|
| 363 | */ |
---|
| 364 | function getNumberOfLines($where, $arrValues) { |
---|
[20507] | 365 | $objQuery =& SC_Query_Ex::getSingletonInstance(); |
---|
[20200] | 366 | return $objQuery->count('dtb_products', $where, $arrValues); |
---|
| 367 | } |
---|
| 368 | |
---|
| 369 | /** |
---|
| 370 | * 商品を検索する. |
---|
| 371 | * |
---|
| 372 | * @param string $where 検索条件の WHERE 句 |
---|
[20970] | 373 | * @param array $arrValues 検索条件のパラメーター |
---|
[20200] | 374 | * @param integer $limit 表示件数 |
---|
| 375 | * @param integer $offset 開始件数 |
---|
| 376 | * @param string $order 検索結果の並び順 |
---|
| 377 | * @param SC_Product $objProduct SC_Product インスタンス |
---|
| 378 | * @return array 商品の検索結果 |
---|
| 379 | */ |
---|
| 380 | function findProducts($where, $arrValues, $limit, $offset, $order, &$objProduct) { |
---|
[20507] | 381 | $objQuery =& SC_Query_Ex::getSingletonInstance(); |
---|
[20200] | 382 | |
---|
| 383 | // 読み込む列とテーブルの指定 |
---|
| 384 | $col = "product_id, name, main_list_image, status, product_code_min, product_code_max, price02_min, price02_max, stock_min, stock_max, stock_unlimited_min, stock_unlimited_max, update_date"; |
---|
[20595] | 385 | $from = $objProduct->alldtlSQL('del_flg = 0'); |
---|
[20200] | 386 | |
---|
| 387 | $objQuery->setLimitOffset($limit, $offset); |
---|
| 388 | $objQuery->setOrder($order); |
---|
| 389 | |
---|
| 390 | return $objQuery->select($col, $from, $where, $arrValues); |
---|
| 391 | } |
---|
[15342] | 392 | } |
---|
[20380] | 393 | ?> |
---|