Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    3535 * @version $Id:LC_Page_Products_Detail.php 15532 2007-08-31 14:39:46Z nanasess $ 
    3636 */ 
    37 class LC_Page_Products_Detail extends LC_Page_Ex { 
     37class LC_Page_Products_Detail extends LC_Page_Ex  
     38{ 
    3839 
    3940    /** 商品ステータス */ 
     
    6667     * @return void 
    6768     */ 
    68     function init() { 
     69    function init() 
     70    { 
    6971        parent::init(); 
    7072        $masterData = new SC_DB_MasterData_Ex(); 
     
    8082     * @return void 
    8183     */ 
    82     function process() { 
     84    function process() 
     85    { 
    8386        parent::process(); 
    8487        $this->action(); 
     
    9194     * @return void 
    9295     */ 
    93     function action() { 
     96    function action() 
     97    { 
    9498        // 会員クラス 
    9599        $objCustomer = new SC_Customer_Ex(); 
     
    136140 
    137141        $this->tpl_javascript .= 'classCategories = ' . SC_Utils_Ex::jsonEncode($objProduct->classCategories[$product_id]) . ';'; 
    138         $this->tpl_javascript .= 'function lnOnLoad(){' . $this->js_lnOnload . '}'; 
     142        $this->tpl_javascript .= 'function lnOnLoad() 
     143        {' . $this->js_lnOnload . '}'; 
    139144        $this->tpl_onload .= 'lnOnLoad();'; 
    140145 
     
    237242     * @return void 
    238243     */ 
    239     function destroy() { 
     244    function destroy() 
     245    { 
    240246        parent::destroy(); 
    241247    } 
    242248 
    243249    /* プロダクトIDの正当性チェック */ 
    244     function lfCheckProductId($admin_mode,$product_id) { 
     250    function lfCheckProductId($admin_mode,$product_id) 
     251    { 
    245252        // 管理機能からの確認の場合は、非公開の商品も表示する。 
    246253        if (isset($admin_mode) && $admin_mode == 'on') { 
     
    263270 
    264271    /* ファイル情報の初期化 */ 
    265     function lfInitFile($objUpFile) { 
     272    function lfInitFile($objUpFile) 
     273    { 
    266274        $objUpFile->addFile('詳細-メイン画像', 'main_image', array('jpg'), IMAGE_SIZE); 
    267275        for ($cnt = 1; $cnt <= PRODUCTSUB_MAX; $cnt++) { 
     
    272280 
    273281    /* 規格選択セレクトボックスの作成 */ 
    274     function lfMakeSelect() { 
     282    function lfMakeSelect() 
     283    { 
    275284        return 'fnSetClassCategories(' 
    276285            . 'document.form1, ' 
     
    280289 
    281290    /* 規格選択セレクトボックスの作成(モバイル) */ 
    282     function lfMakeSelectMobile(&$objPage, $product_id,$request_classcategory_id1) { 
     291    function lfMakeSelectMobile(&$objPage, $product_id,$request_classcategory_id1) 
     292    { 
    283293 
    284294        $classcat_find1 = false; 
     
    343353 
    344354    /* パラメーター情報の初期化 */ 
    345     function lfInitParam(&$objFormParam) { 
     355    function lfInitParam(&$objFormParam) 
     356    { 
    346357        $objFormParam->addParam('規格1', 'classcategory_id1', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    347358        $objFormParam->addParam('規格2', 'classcategory_id2', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    360371 
    361372    /* 商品規格情報の取得 */ 
    362     function lfGetProductsClass($product_id) { 
     373    function lfGetProductsClass($product_id) 
     374    { 
    363375        $objProduct = new SC_Product_Ex(); 
    364376        return $objProduct->getProductsClassFullByProductId($product_id); 
     
    366378 
    367379    /* 登録済み関連商品の読み込み */ 
    368     function lfPreGetRecommendProducts($product_id) { 
     380    function lfPreGetRecommendProducts($product_id) 
     381    { 
    369382        $objProduct = new SC_Product_Ex(); 
    370383        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    390403 
    391404    /* 入力内容のチェック */ 
    392     function lfCheckError($mode,&$objFormParam,$tpl_classcat_find1 = null ,$tpl_classcat_find2 = null) { 
     405    function lfCheckError($mode,&$objFormParam,$tpl_classcat_find1 = null ,$tpl_classcat_find2 = null) 
     406    { 
    393407 
    394408        switch ($mode) { 
     
    422436 
    423437    //商品ごとのレビュー情報を取得する 
    424     function lfGetReviewData($id) { 
     438    function lfGetReviewData($id) 
     439    { 
    425440        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    426441        //商品ごとのレビュー情報を取得する 
     
    439454     * @return $subImageFlag 
    440455     */ 
    441     function lfSetFile($objUpFile,$arrProduct,&$arrFile) { 
     456    function lfSetFile($objUpFile,$arrProduct,&$arrFile) 
     457    { 
    442458        // DBからのデータを引き継ぐ 
    443459        $objUpFile->setDBFileList($arrProduct); 
     
    459475     * @return void 
    460476     */ 
    461     function lfRegistFavoriteProduct($favorite_product_id,$customer_id) { 
     477    function lfRegistFavoriteProduct($favorite_product_id,$customer_id) 
     478    { 
    462479        // ログイン中のユーザが商品をお気に入りにいれる処理 
    463480        if (!SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $favorite_product_id, 'del_flg = 0 AND status = 1')) { 
     
    489506     * @return void  
    490507     */ 
    491     function doCart() { 
     508    function doCart() 
     509    { 
    492510        $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam, 
    493511                                            $this->tpl_classcat_find1, 
     
    511529     * @return void 
    512530     */ 
    513     function doAddFavorite(&$objCustomer) { 
     531    function doAddFavorite(&$objCustomer) 
     532    { 
    514533        // ログイン中のユーザが商品をお気に入りにいれる処理 
    515534        if ($objCustomer->isLoginSuccess() === true && $this->objFormParam->getValue('favorite_product_id') > 0) { 
     
    533552     * @return void 
    534553     */ 
    535     function doAddFavoriteSphone($objCustomer) { 
     554    function doAddFavoriteSphone($objCustomer) 
     555    { 
    536556        // ログイン中のユーザが商品をお気に入りにいれる処理(スマートフォン用) 
    537557        if ($objCustomer->isLoginSuccess() === true && $this->objFormParam->getValue('favorite_product_id') > 0) { 
     
    557577     * @return void  
    558578     */ 
    559     function doDefault() { 
     579    function doDefault() 
     580    { 
    560581        // カート「戻るボタン」用に保持 
    561582        $netURL = new Net_URL(); 
     
    567588     * @return void 
    568589     */ 
    569     function doMobileSelect() { 
     590    function doMobileSelect() 
     591    { 
    570592        // 規格1が設定されている場合 
    571593        if ($this->tpl_classcat_find1) { 
     
    583605     * @return type  
    584606     */ 
    585     function doMobileSelect2() { 
     607    function doMobileSelect2() 
     608    { 
    586609        $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam,$this->tpl_classcat_find1,$this->tpl_classcat_find2); 
    587610 
     
    608631     * @return void 
    609632     */ 
    610     function doMobileSelectItem() { 
     633    function doMobileSelectItem() 
     634    { 
    611635        $objProduct = new SC_Product_Ex(); 
    612636 
     
    650674     * @return void  
    651675     */ 
    652     function doMobileCart() { 
     676    function doMobileCart() 
     677    { 
    653678        // この段階でエラーが出る場合は、数量の入力エラーのはず 
    654679        if (count($this->arrErr)) { 
     
    662687     * @return void  
    663688     */ 
    664     function doMobileDefault() { 
     689    function doMobileDefault() 
     690    { 
    665691        $this->tpl_mainpage = 'products/detail.tpl'; 
    666692    } 
Note: See TracChangeset for help on using the changeset viewer.