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_List.php

    r22507 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Products_List extends LC_Page_Ex { 
     34class LC_Page_Products_List extends LC_Page_Ex  
     35{ 
    3536 
    3637    // {{{ properties 
     
    6869     * @return void 
    6970     */ 
    70     function init() { 
     71    function init() 
     72    { 
    7173        parent::init(); 
    7274 
     
    8385     * @return void 
    8486     */ 
    85     function process() { 
     87    function process() 
     88    { 
    8689        parent::process(); 
    8790        $this->action(); 
     
    9497     * @return void 
    9598     */ 
    96     function action() { 
     99    function action() 
     100    { 
    97101 
    98102        $objProduct = new SC_Product_Ex(); 
     
    151155     * @return void 
    152156     */ 
    153     function destroy() { 
     157    function destroy() 
     158    { 
    154159        parent::destroy(); 
    155160    } 
     
    160165     * @return integer カテゴリID 
    161166     */ 
    162     function lfGetCategoryId($category_id) { 
     167    function lfGetCategoryId($category_id) 
     168    { 
    163169 
    164170        // 指定なしの場合、0 を返す 
     
    184190 
    185191    /* 商品一覧の表示 */ 
    186     function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) { 
     192    function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) 
     193    { 
    187194 
    188195        $arrOrderVal = array(); 
     
    242249 
    243250    /* 入力内容のチェック */ 
    244     function lfCheckError($product_id, &$arrForm, $tpl_classcat_find1, $tpl_classcat_find2) { 
     251    function lfCheckError($product_id, &$arrForm, $tpl_classcat_find1, $tpl_classcat_find2) 
     252    { 
    245253 
    246254        // 入力データを渡す。 
     
    266274     * @return void 
    267275     */ 
    268     function lfGetDisplayNum($display_number) { 
     276    function lfGetDisplayNum($display_number) 
     277    { 
    269278        // 表示件数 
    270279        return (SC_Utils_Ex::sfIsInt($display_number)) 
     
    278287     * @return str 
    279288     */ 
    280     function lfGetPageTitle($mode, $category_id = 0) { 
     289    function lfGetPageTitle($mode, $category_id = 0) 
     290    { 
    281291        if ($mode == 'search') { 
    282292            return '検索結果'; 
     
    294304     * @return array 
    295305     */ 
    296     function lfGetSearchConditionDisp($arrSearchData) { 
     306    function lfGetSearchConditionDisp($arrSearchData) 
     307    { 
    297308        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
    298309        $arrSearch  = array('category' => '指定なし', 'maker' => '指定なし', 'name' => '指定なし'); 
     
    319330     * @return int 
    320331     */ 
    321     function lfGetProductAllNum($searchCondition) { 
     332    function lfGetProductAllNum($searchCondition) 
     333    { 
    322334        // 検索結果対象となる商品の数を取得 
    323335        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
     
    332344     * @return array 
    333345     */ 
    334     function lfGetSearchCondition($arrSearchData) { 
     346    function lfGetSearchCondition($arrSearchData) 
     347    { 
    335348        $searchCondition = array( 
    336349            'where'             => '', 
     
    391404     * @return str 
    392405     */ 
    393     function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id) { 
     406    function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id) 
     407    { 
    394408        $js_fnOnLoad = ''; 
    395409        foreach ($arrProducts as $key => $value) { 
     
    412426     * @return void 
    413427     */ 
    414     function lfAddCart($arrForm, $referer) { 
     428    function lfAddCart($arrForm, $referer) 
     429    { 
    415430        $product_class_id = $arrForm['product_class_id']; 
    416431        $objCartSess = new SC_CartSession_Ex(); 
     
    426441     * @return Array $arrProducts 商品一覧情報 
    427442     */ 
    428     function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) { 
     443    function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) 
     444    { 
    429445 
    430446        foreach ($arrProducts['productStatus'] as $product_id => $arrValues) { 
     
    448464     * @return void 
    449465     */ 
    450     function doJson() { 
     466    function doJson() 
     467    { 
    451468        $this->arrProducts = $this->setStatusDataTo($this->arrProducts, $this->arrSTATUS, $this->arrSTATUS_IMAGE); 
    452469        SC_Product_Ex::setPriceTaxTo($this->arrProducts); 
     
    466483     * @return void 
    467484     */ 
    468     function doDefault(&$objProduct) { 
     485    function doDefault(&$objProduct) 
     486    { 
    469487        //商品一覧の表示処理 
    470488        $strnavi            = $this->objNavi->strnavi; 
     
    527545        } 
    528546 
    529         $this->tpl_javascript   .= 'function fnOnLoad(){' . $js_fnOnLoad . '}'; 
     547        $this->tpl_javascript   .= 'function fnOnLoad() 
     548        {' . $js_fnOnLoad . '}'; 
    530549        $this->tpl_onload       .= 'fnOnLoad(); '; 
    531550    } 
Note: See TracChangeset for help on using the changeset viewer.