Changeset 22567 for branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Products_ProductRank extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Products_ProductRank extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'products/product_rank.tpl'; … … 56 58 * @return void 57 59 */ 58 function process() { 60 function process() 61 { 59 62 $this->action(); 60 63 $this->sendResponse(); … … 66 69 * @return void 67 70 */ 68 function action() { 71 function action() 72 { 69 73 70 74 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 113 117 * @return void 114 118 */ 115 function destroy() { 119 function destroy() 120 { 116 121 parent::destroy(); 117 122 } 118 123 119 124 /* 商品読み込み */ 120 function lfGetProduct($category_id) { 125 function lfGetProduct($category_id) 126 { 121 127 // FIXME SC_Product クラスを使用した実装 122 128 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 151 157 * 商品の数値指定での並び替え実行 152 158 */ 153 function lfRenumber($parent_category_id) { 159 function lfRenumber($parent_category_id) 160 { 154 161 $objQuery =& SC_Query_Ex::getSingletonInstance(); 155 162 … … 176 183 } 177 184 178 function lfRankUp(&$objDb, $parent_category_id, $product_id) { 185 function lfRankUp(&$objDb, $parent_category_id, $product_id) 186 { 179 187 $where = 'category_id = ' . SC_Utils_Ex::sfQuoteSmart($parent_category_id); 180 188 $objDb->sfRankUp('dtb_product_categories', 'product_id', $product_id, $where); 181 189 } 182 190 183 function lfRankDown(&$objDb, $parent_category_id, $product_id) { 191 function lfRankDown(&$objDb, $parent_category_id, $product_id) 192 { 184 193 $where = 'category_id = ' . SC_Utils_Ex::sfQuoteSmart($parent_category_id); 185 194 $objDb->sfRankDown('dtb_product_categories', 'product_id', $product_id, $where); 186 195 } 187 196 188 function lfRankMove(&$objDb, $parent_category_id, $product_id) { 197 function lfRankMove(&$objDb, $parent_category_id, $product_id) 198 { 189 199 $key = 'pos-'.$product_id; 190 200 $input_pos = mb_convert_kana($_POST[$key], 'n');
Note: See TracChangeset
for help on using the changeset viewer.