Changeset 22567 for branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.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_ProductClass.php
r22298 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Products_ProductClass extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Products_ProductClass 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_class.tpl'; … … 60 62 * @return void 61 63 */ 62 function process() { 64 function process() 65 { 63 66 $this->action(); 64 67 $this->sendResponse(); … … 70 73 * @return void 71 74 */ 72 function action() { 75 function action() 76 { 73 77 74 78 // 商品マスターの検索条件パラメーターを初期化 … … 165 169 * @return void 166 170 */ 167 function destroy() { 171 function destroy() 172 { 168 173 parent::destroy(); 169 174 } … … 175 180 * @return void 176 181 */ 177 function initParam(&$objFormParam) { 182 function initParam(&$objFormParam) 183 { 178 184 // 商品マスター検索パラメーター引き継ぎ 179 185 $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); … … 225 231 * @param integer $product_id 登録を行う商品ID 226 232 */ 227 function registerProductClass($arrList, $product_id, $total) { 233 function registerProductClass($arrList, $product_id, $total) 234 { 228 235 $objQuery =& SC_Query_Ex::getSingletonInstance(); 229 236 $objDb = new SC_Helper_DB_Ex(); … … 308 315 * @return array エラーの配列 309 316 */ 310 function lfCheckSelectClass() { 317 function lfCheckSelectClass() 318 { 311 319 $objErr = new SC_CheckError_Ex(); 312 320 $objErr->doFunc(array('規格1', 'class_id1'), array('EXIST_CHECK')); … … 322 330 * @return array エラー結果の配列 323 331 */ 324 function lfCheckProductsClass(&$objFormParam) { 332 function lfCheckProductsClass(&$objFormParam) 333 { 325 334 $arrValues = $objFormParam->getHashArray(); 326 335 $arrErr = $objFormParam->checkError(); … … 395 404 * @return void 396 405 */ 397 function doDisp(&$objFormParam) { 406 function doDisp(&$objFormParam) 407 { 398 408 $product_id = $objFormParam->getValue('product_id'); 399 409 $class_id1 = $objFormParam->getValue('class_id1'); … … 431 441 * @return void 432 442 */ 433 function initDispParam(&$objFormParam) { 443 function initDispParam(&$objFormParam) 444 { 434 445 // 登録チェックボックス初期化(すべてチェックを外す) 435 446 $objFormParam->setValue('check', ''); … … 449 460 * @param bool $usepostValue 450 461 */ 451 function doPreEdit(&$objFormParam) { 462 function doPreEdit(&$objFormParam) 463 { 452 464 $product_id = $objFormParam->getValue('product_id'); 453 465 $objProduct = new SC_Product_Ex(); … … 526 538 * @return void 527 539 */ 528 function doDelete($product_id) { 540 function doDelete($product_id) 541 { 529 542 $objQuery =& SC_Query_Ex::getSingletonInstance(); 530 543 … … 563 576 * @return void 564 577 */ 565 function doFileUpload(&$objFormParam) { 578 function doFileUpload(&$objFormParam) 579 { 566 580 $index = $objFormParam->getValue('upload_index'); 567 581 $arrDownRealFiles = $objFormParam->getValue('down_realfilename'); … … 625 639 * @return void 626 640 */ 627 function doFileDelete(&$objFormParam) { 641 function doFileDelete(&$objFormParam) 642 { 628 643 $objImage = new SC_Image_Ex(DOWN_TEMP_REALDIR); 629 644 $arrRealFileName = $objFormParam->getValue('down_realfilename'); … … 640 655 * @return void 641 656 */ 642 function doUploadComplete(&$objFormParam) { 657 function doUploadComplete(&$objFormParam) 658 { 643 659 $objImage = new SC_Image_Ex(DOWN_TEMP_REALDIR); 644 660 $arrRealFileName = $objFormParam->getValue('down_realfilename'); … … 657 673 * @return array 規格と規格分類の配列 658 674 */ 659 function getAllClassCategory($class_id1, $class_id2 = null) { 675 function getAllClassCategory($class_id1, $class_id2 = null) 676 { 660 677 $objQuery =& SC_Query_Ex::getSingletonInstance(); 661 678 … … 697 714 * @return string 商品名の文字列 698 715 */ 699 function getProductName($product_id) { 716 function getProductName($product_id) 717 { 700 718 $objQuery =& SC_Query_Ex::getSingletonInstance(); 701 719 return $objQuery->get('name', 'dtb_products', 'product_id = ?', array($product_id)); … … 708 726 * @return array 規格分類の登録された, すべての規格 709 727 */ 710 function getAllClass() { 728 function getAllClass() 729 { 711 730 $arrClass = SC_Helper_DB_Ex::sfGetIDValueList('dtb_class', 'class_id', 'name'); 712 731 … … 733 752 * @return array 商品規格の配列 734 753 */ 735 function getProductsClass($product_id) { 754 function getProductsClass($product_id) 755 { 736 756 $objQuery =& SC_Query_Ex::getSingletonInstance(); 737 757 $col = 'product_code, price01, price02, stock, stock_unlimited, sale_limit, deliv_fee, point_rate'; … … 751 771 * @return void 752 772 */ 753 function fillCheckboxesValue($key, $size) { 773 function fillCheckboxesValue($key, $size) 774 { 754 775 if (empty($_POST[$key])) { 755 776 $_POST[$key] = array_pad(array(), $size, '');
Note: See TracChangeset
for help on using the changeset viewer.