[Svn-src-all:1384] [version-2_5-dev 20274] ぶった斬りポイント消したりコメント入れたり。
miningbrownie
admin @ mail.ec-cube.net
2011年 2月 20日 (日) 22:48:15 JST
Subversion committed to /home/svn/open 20274
http://svn.ec-cube.net/open_trac/changeset/20274
┌────────────────────────────┐
│更新者 : miningbrownie │
│更新日時: 2011-02-20 22:48:14 +0900 (日, 20 2月 2011)│
└────────────────────────────┘
Log:
--------------------------------------------------------
ぶった斬りポイント消したりコメント入れたり。
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
変更: branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php 2011-02-20 13:43:01 UTC (rev 20273)
+++ branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php 2011-02-20 13:48:14 UTC (rev 20274)
@@ -104,20 +104,13 @@
$objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnNaviSearchOnlyPage", NAVI_PMAX);
$this->tpl_strnavi = $objNavi->strnavi; // 表示文字列
$startno = $objNavi->start_row;
- //ぶった斬りポイント==================================================================
$arrProduct_id = $this->getProducts($wheres, $objProduct);
- //ぶった斬りポイント==================================================================
$productList = $this->getProductList($arrProduct_id,$objProduct);
- //ぶった斬りポイント==================================================================
//取得している並び順で並び替え
$this->arrProducts = $this->sortProducts($arrProduct_id,$productList);
- //ぶった斬りポイント==================================================================
$objProduct->setProductsClassByProductIds($arrProduct_id);
- //ぶった斬りポイント==================================================================
$this->tpl_javascript .= $this->getTplJavascript($objProduct);
- //ぶった斬りポイント==================================================================
$js_fnOnLoad = $this->getFnOnload($this->arrProducts);
- //ぶった斬りポイント==================================================================
$this->tpl_javascript .= 'function fnOnLoad(){' . $js_fnOnLoad . '}';
$this->tpl_onload .= 'fnOnLoad(); ';
// 規格1クラス名
@@ -142,6 +135,12 @@
$this->setTemplate($this->tpl_mainpage);
}
+ /**
+ *
+ * 商品取得
+ * @param array $arrProduct_id
+ * @param SC_Product $objProduct
+ */
function getProductList($arrProduct_id,&$objProduct){
$where = "";
if (is_array($arrProduct_id) && !empty($arrProduct_id)) {
@@ -155,13 +154,20 @@
return $objProduct->lists($objQuery, $arrProduct_id);
}
-
+ /**
+ * ロード時に実行するJavascriptを生成
+ * @param array $arrProducts
+ */
function getFnOnload($arrProducts){
foreach ($arrProducts as $arrProduct) {
$js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});\n";
}
}
+ /**
+ * 規格クラス用JavaScript生成
+ * @param SC_Product $objProduct
+ */
function getTplJavascript(&$objProduct){
$objJson = new Services_JSON();
return 'productsClassCategories = ' . $objJson->encode($objProduct->classCategories) . '; ';
@@ -189,9 +195,9 @@
/**
*
- * Enter description here ...
- * @param unknown_type $whereAndBind
- * @param unknown_type $objProduct
+ * 検索結果対象となる商品の数を返す。
+ * @param array $whereAndBind
+ * @param SC_Product $objProduct
*/
function getLineCount($whereAndBind,&$objProduct){
$where = $whereAndBind['where'];
@@ -281,7 +287,6 @@
/**
* デストラクタ.
- *
* @return void
*/
function destroy() {
@@ -304,6 +309,7 @@
$arrConvList['search_product_code'] = "KVa";
return $arrConvList;
}
+
/**
* パラメータ情報の初期化
* @param SC_FormParam $objFormParam
Svn-src-all メーリングリストの案内