Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php

    r22578 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Products_Product extends LC_Page_Admin_Products_Ex  
    35 { 
     34class LC_Page_Admin_Products_Product extends LC_Page_Admin_Products_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_mainpage = 'products/product.tpl'; 
     
    5856        $this->arrSTATUS_IMAGE = $masterData->getMasterData('mtb_status_image'); 
    5957        $this->arrDELIVERYDATE = $masterData->getMasterData('mtb_delivery_date'); 
    60         $this->arrMaker = SC_Helper_Maker_Ex::getIDValueList(); 
     58        $this->arrMaker = SC_Helper_DB_Ex::sfGetIDValueList('dtb_maker', 'maker_id', 'name'); 
    6159        $this->arrAllowedTag = $masterData->getMasterData('mtb_allowed_tag'); 
    6260    } 
     
    6765     * @return void 
    6866     */ 
    69     function process() 
    70     { 
     67    function process() { 
    7168        $this->action(); 
    7269        $this->sendResponse(); 
     
    7875     * @return void 
    7976     */ 
    80     function action() 
    81     { 
     77    function action() { 
    8278 
    8379        $objFormParam = new SC_FormParam_Ex(); 
     
    298294     * @return void 
    299295     */ 
    300     function destroy() 
    301     { 
     296    function destroy() { 
    302297        parent::destroy(); 
    303298    } 
     
    311306     * @return void 
    312307     */ 
    313     function lfInitFormParam_PreEdit(&$objFormParam, $arrPost) 
    314     { 
     308    function lfInitFormParam_PreEdit(&$objFormParam, $arrPost) { 
    315309        $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    316310        $objFormParam->setParam($arrPost); 
     
    325319     * @return void 
    326320     */ 
    327     function lfInitFormParam(&$objFormParam, $arrPost) 
    328     { 
     321    function lfInitFormParam(&$objFormParam, $arrPost) { 
    329322        $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    330323        $objFormParam->addParam('商品名', 'name', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK')); 
     
    394387     * @return void 
    395388     */ 
    396     function lfInitFormParam_UploadImage(&$objFormParam) 
    397     { 
     389    function lfInitFormParam_UploadImage(&$objFormParam) { 
    398390        $objFormParam->addParam('image_key', 'image_key', '', '', array()); 
    399391    } 
     
    406398     * @return void 
    407399     */ 
    408     function lfInitFormParam_UploadDown(&$objFormParam) 
    409     { 
     400    function lfInitFormParam_UploadDown(&$objFormParam) { 
    410401        $objFormParam->addParam('down_key', 'down_key', '', '', array()); 
    411402    } 
     
    418409     * @return void 
    419410     */ 
    420     function lfInitFormParam_RecommendSelect(&$objFormParam) 
    421     { 
     411    function lfInitFormParam_RecommendSelect(&$objFormParam) { 
    422412        $objFormParam->addParam('anchor_key', 'anchor_key', '', '', array()); 
    423413        $objFormParam->addParam('select_recommend_no', 'select_recommend_no', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    431421     * @return void 
    432422     */ 
    433     function lfInitFile(&$objUpFile) 
    434     { 
     423    function lfInitFile(&$objUpFile) { 
    435424        $objUpFile->addFile('一覧-メイン画像', 'main_list_image', array('jpg', 'gif', 'png'),IMAGE_SIZE, false, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); 
    436425        $objUpFile->addFile('詳細-メイン画像', 'main_image', array('jpg', 'gif', 'png'), IMAGE_SIZE, false, NORMAL_IMAGE_WIDTH, NORMAL_IMAGE_HEIGHT); 
     
    449438     * @return void 
    450439     */ 
    451     function lfInitDownFile(&$objDownFile) 
    452     { 
     440    function lfInitDownFile(&$objDownFile) { 
    453441        $objDownFile->addFile('ダウンロード販売用ファイル', 'down_file', explode(',', DOWNLOAD_EXTENSION),DOWN_SIZE, true, 0, 0); 
    454442    } 
     
    463451     * @return array エラー情報を格納した連想配列 
    464452     */ 
    465     function lfCheckError_Edit(&$objFormParam, &$objUpFile, &$objDownFile, $arrForm) 
    466     { 
     453    function lfCheckError_Edit(&$objFormParam, &$objUpFile, &$objDownFile, $arrForm) { 
    467454        $objErr = new SC_CheckError_Ex($arrForm); 
    468455        $arrErr = array(); 
     
    506493     * @return void 
    507494     */ 
    508     function lfCheckError_RecommendSelect(&$arrForm, &$arrErr) 
    509     { 
     495    function lfCheckError_RecommendSelect(&$arrForm, &$arrErr) { 
    510496        $select_recommend_no = $arrForm['select_recommend_no']; 
    511497        $select_recommend_id = $arrForm['recommend_id' . $select_recommend_no]; 
     
    516502                    continue; 
    517503                } 
    518                 $delete_key = 'recommend_delete'.intval(str_replace('recommend_id','',$key)); 
    519                 if ($select_recommend_id == $arrForm[$key] && $arrForm[$delete_key] != 1) { 
     504 
     505                if ($select_recommend_id == $arrForm[$key]) { 
    520506                    // 重複した場合、選択されたデータをリセットする 
    521507                    $arrForm['recommend_id' . $select_recommend_no] = ''; 
     
    533519     * @return array 検索パラメーター配列 
    534520     */ 
    535     function lfGetSearchParam($arrPost) 
    536     { 
     521    function lfGetSearchParam($arrPost) { 
    537522        $arrSearchParam = array(); 
    538523        $objFormParam = new SC_FormParam_Ex(); 
     
    554539     * @return array フォームパラメーター配列 
    555540     */ 
    556     function lfGetFormParam_PreEdit(&$objUpFile, &$objDownFile, $product_id) 
    557     { 
     541    function lfGetFormParam_PreEdit(&$objUpFile, &$objDownFile, $product_id) { 
    558542        $arrForm = array(); 
    559543 
     
    575559     * @return array フォームパラメーター配列 
    576560     */ 
    577     function lfGetFormParam_Complete(&$objFormParam) 
    578     { 
     561    function lfGetFormParam_Complete(&$objFormParam) { 
    579562        $arrForm = $objFormParam->getHashArray(); 
    580563        $arrForm['category_id'] = unserialize($arrForm['category_id']); 
     
    593576     * @return array 表示用フォームパラメーター配列 
    594577     */ 
    595     function lfSetViewParam_InputPage(&$objUpFile, &$objDownFile, &$arrForm) 
    596     { 
     578    function lfSetViewParam_InputPage(&$objUpFile, &$objDownFile, &$arrForm) { 
    597579        // カテゴリマスターデータ取得 
    598580        $objDb = new SC_Helper_DB_Ex(); 
     
    636618     * @return array 表示用フォームパラメーター配列 
    637619     */ 
    638     function lfSetViewParam_ConfirmPage(&$objUpFile, &$objDownFile, &$arrForm) 
    639     { 
     620    function lfSetViewParam_ConfirmPage(&$objUpFile, &$objDownFile, &$arrForm) { 
    640621        // カテゴリ表示用 
    641622        $arrForm['arrCategoryId'] = $arrForm['category_id']; 
     
    657638     * @return void 
    658639     */ 
    659     function lfSetScaleImage(&$objUpFile, $image_key) 
    660     { 
     640    function lfSetScaleImage(&$objUpFile, $image_key) { 
    661641        $subno = str_replace('sub_large_image', '', $image_key); 
    662642        switch ($image_key) { 
     
    683663     * @return void 
    684664     */ 
    685     function lfCopyProductImageFiles(&$objUpFile) 
    686     { 
     665    function lfCopyProductImageFiles(&$objUpFile) { 
    687666        $arrKey = $objUpFile->keyname; 
    688667        $arrSaveFile = $objUpFile->save_file; 
     
    702681     * @return void 
    703682     */ 
    704     function lfMakeScaleImage(&$objUpFile, $from_key, $to_key, $forced = false) 
    705     { 
     683    function lfMakeScaleImage(&$objUpFile, $from_key, $to_key, $forced = false) { 
    706684        $arrImageKey = array_flip($objUpFile->keyname); 
    707685        $from_path = ''; 
     
    741719     * @return void 
    742720     */ 
    743     function lfDeleteTempFile(&$objUpFile, $image_key) 
    744     { 
     721    function lfDeleteTempFile(&$objUpFile, $image_key) { 
    745722        // TODO: SC_UploadFile::deleteFileの画像削除条件見直し要 
    746723        $arrTempFile = $objUpFile->temp_file; 
     
    775752     * @return void 
    776753     */ 
    777     function lfSaveUploadFiles(&$objUpFile, &$objDownFile, $product_id) 
    778     { 
     754    function lfSaveUploadFiles(&$objUpFile, &$objDownFile, $product_id) { 
    779755        // TODO: SC_UploadFile::moveTempFileの画像削除条件見直し要 
    780756        $objImage = new SC_Image_Ex($objUpFile->temp_dir); 
     
    810786     * @return boolean 
    811787     */ 
    812     function lfHasSameProductImage($product_id, $arrImageKey, $image_file_name) 
    813     { 
     788    function lfHasSameProductImage($product_id, $arrImageKey, $image_file_name) { 
    814789        if (!SC_Utils_Ex::sfIsInt($product_id)) return false; 
    815790        if (!$arrImageKey) return false; 
     
    844819     * @return array 商品データ配列 
    845820     */ 
    846     function lfGetProductData_FromDB($product_id) 
    847     { 
     821    function lfGetProductData_FromDB($product_id) { 
    848822        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    849823        $arrProduct = array(); 
     
    908882     * @return array 関連商品データ配列 
    909883     */ 
    910     function lfGetRecommendProductsData_FromDB($product_id) 
    911     { 
     884    function lfGetRecommendProductsData_FromDB($product_id) { 
    912885        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    913886        $arrRecommendProducts = array(); 
     
    936909     * @return array 関連商品データ配列 
    937910     */ 
    938     function lfGetRecommendProducts(&$arrForm) 
    939     { 
     911    function lfGetRecommendProducts(&$arrForm) { 
    940912        $arrRecommend = array(); 
    941913 
     
    964936     * @return array カテゴリマスターデータ配列 
    965937     */ 
    966     function lfGetCategoryList_Edit() 
    967     { 
     938    function lfGetCategoryList_Edit() { 
    968939        $objDb = new SC_Helper_DB_Ex(); 
    969940        $arrCategoryList = array(); 
     
    984955     * @return string ページonload用JavaScript 
    985956     */ 
    986     function lfSetOnloadJavaScript_InputPage($anchor_hash = '') 
    987     { 
     957    function lfSetOnloadJavaScript_InputPage($anchor_hash = '') { 
    988958        return "fnCheckStockLimit('" . DISABLED_RGB . "'); fnMoveSelect('category_id_unselect', 'category_id');" . $anchor_hash; 
    989959    } 
     
    997967     * @return integer 登録商品ID 
    998968     */ 
    999     function lfRegistProduct(&$objUpFile, &$objDownFile, $arrList) 
    1000     { 
     969    function lfRegistProduct(&$objUpFile, &$objDownFile, $arrList) { 
    1001970        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    1002971        $objDb = new SC_Helper_DB_Ex(); 
     
    11461115     * @return void 
    11471116     */ 
    1148     function lfInsertDummyProductClass($arrList) 
    1149     { 
     1117    function lfInsertDummyProductClass($arrList) { 
    11501118        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    11511119        $objDb = new SC_Helper_DB_Ex(); 
     
    11801148     * @return void 
    11811149     */ 
    1182     function lfUpdateProductClass($arrList) 
    1183     { 
     1150    function lfUpdateProductClass($arrList) { 
    11841151        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    11851152        $sqlval = array(); 
     
    12001167     * @return void 
    12011168     */ 
    1202     function lfInsertRecommendProducts(&$objQuery, $arrList, $product_id) 
    1203     { 
     1169    function lfInsertRecommendProducts(&$objQuery, $arrList, $product_id) { 
    12041170        // 一旦関連商品をすべて削除する 
    12051171        $objQuery->delete('dtb_recommend_products', 'product_id = ?', array($product_id)); 
     
    12331199     * @return boolean エラーフラグ 
    12341200     */ 
    1235     function lfCopyProductClass($arrList, &$objQuery) 
    1236     { 
     1201    function lfCopyProductClass($arrList, &$objQuery) { 
    12371202        // 複製元のdtb_products_classを取得(規格なしのため、1件のみの取得) 
    12381203        $col = '*'; 
     
    12841249     * @return string 
    12851250     */ 
    1286     function lfGetAddSuffix($to_key) 
    1287     { 
     1251    function lfGetAddSuffix($to_key) { 
    12881252        if ( IMAGE_RENAME === true) return; 
    12891253 
     
    13121276     * @return boolean true: サブ情報あり, false: サブ情報なし 
    13131277     */ 
    1314     function hasSubProductData($arrSubProductData) 
    1315     { 
     1278    function hasSubProductData($arrSubProductData) { 
    13161279        $has_subproduct_data = false; 
    13171280 
     
    13391302     * @return <type> 
    13401303     */ 
    1341     function getAnchorHash($anchor_key) 
    1342     { 
     1304    function getAnchorHash($anchor_key) { 
    13431305        if ($anchor_key != '') { 
    13441306            return "location.hash='#" . htmlspecialchars($anchor_key) . "'"; 
Note: See TracChangeset for help on using the changeset viewer.