Ignore:
Timestamp:
2012/02/11 05:48:00 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
Location:
branches/version-2_12-dev/data/class/pages/mypage
Files:
9 edited

Legend:

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

    r21441 r21481  
    6767            $this->tpl_login_email = $objCookie->getCookie('login_email'); 
    6868            if ($this->tpl_login_email != "") { 
    69                 $this->tpl_login_memory = "1"; 
     69                $this->tpl_login_memory = '1'; 
    7070            } 
    7171 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage.php

    r21441 r21481  
    8989 
    9090        switch ($this->getMode()) { 
    91     case "getList": 
     91    case 'getList': 
    9292                    echo SC_Utils_Ex::jsonEncode($this->arrOrder); 
    9393                    exit; 
     
    9797        } 
    9898        // 支払い方法の取得 
    99         $this->arrPayment = SC_Helper_DB_Ex::sfGetIDValueList("dtb_payment", "payment_id", "payment_method"); 
     99        $this->arrPayment = SC_Helper_DB_Ex::sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 
    100100        // 1ページあたりの件数 
    101101        $this->dispNumber = SEARCH_PMAX; 
     
    124124 
    125125        $col        = "order_id, create_date, payment_id, payment_total"; 
    126         $from       = "dtb_order"; 
     126        $from       = 'dtb_order'; 
    127127        $where      = "del_flg = 0 AND customer_id = ?"; 
    128128        $arrval     = array($customer_id); 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php

    r21359 r21481  
    4848 
    4949        $masterData         = new SC_DB_MasterData_Ex(); 
    50         $this->arrReminder  = $masterData->getMasterData("mtb_reminder"); 
     50        $this->arrReminder  = $masterData->getMasterData('mtb_reminder'); 
    5151        $this->arrPref      = $masterData->getMasterData('mtb_pref'); 
    52         $this->arrJob       = $masterData->getMasterData("mtb_job"); 
    53         $this->arrMAILMAGATYPE = $masterData->getMasterData("mtb_mail_magazine_type"); 
    54         $this->arrSex       = $masterData->getMasterData("mtb_sex"); 
     52        $this->arrJob       = $masterData->getMasterData('mtb_job'); 
     53        $this->arrMAILMAGATYPE = $masterData->getMasterData('mtb_mail_magazine_type'); 
     54        $this->arrSex       = $masterData->getMasterData('mtb_sex'); 
    5555        $this->httpCacheControl('nocache'); 
    5656 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php

    r21480 r21481  
    130130    function lfInitParam(&$objFormParam) { 
    131131        $objFormParam->addParam('お届け先ID', 'other_deliv_id', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    132         $objFormParam->addParam("現在ページ", "pageno", INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), "", false); 
     132        $objFormParam->addParam("現在ページ", 'pageno', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), "", false); 
    133133    } 
    134134 
     
    159159        $where      = 'customer_id = ? AND other_deliv_id = ?'; 
    160160        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
    161         $objQuery->delete("dtb_other_deliv", $where, array($customer_id, $deliv_id)); 
     161        $objQuery->delete('dtb_other_deliv', $where, array($customer_id, $deliv_id)); 
    162162    } 
    163163 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php

    r21479 r21481  
    115115 
    116116                    if ($objCustomer->isLoginSuccess(true)) { 
    117                         $this->lfRegistData($objFormParam, $objCustomer->getValue("customer_id")); 
     117                        $this->lfRegistData($objFormParam, $objCustomer->getValue('customer_id')); 
    118118                    } else { 
    119119                        $this->lfRegistDataNonMember($objFormParam); 
     
    133133 
    134134                if ($_GET['other_deliv_id'] != "") { 
    135                     $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue("customer_id"), $_SESSION['other_deliv_id']); 
     135                    $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue('customer_id'), $_SESSION['other_deliv_id']); 
    136136 
    137137                    //不正アクセス判定 
     
    172172    function lfGetOtherDeliv($customer_id, $other_deliv_id) { 
    173173        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    174         return $objQuery->select("*", "dtb_other_deliv", "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id)); 
     174        return $objQuery->select("*", 'dtb_other_deliv', "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id)); 
    175175    } 
    176176 
     
    187187        if (strlen($arrRet['other_deliv_id'] == 0)) { 
    188188            // 別のお届け先登録数の取得 
    189             $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id = ?", array($customer_id)); 
     189            $deliv_count = $objQuery->count('dtb_other_deliv', "customer_id = ?", array($customer_id)); 
    190190            // 別のお届け先最大登録数に達している場合、エラー 
    191191            if ($deliv_count >= DELIV_ADDR_MAX) { 
     
    195195            // 実行 
    196196            $sqlval['other_deliv_id'] = $objQuery->nextVal('dtb_other_deliv_other_deliv_id'); 
    197             $objQuery->insert("dtb_other_deliv", $sqlval); 
     197            $objQuery->insert('dtb_other_deliv', $sqlval); 
    198198 
    199199        // 変更 
    200200        } else { 
    201             $deliv_count = $objQuery->count("dtb_other_deliv","customer_id = ? AND other_deliv_id = ?" ,array($customer_id, $arrRet['other_deliv_id'])); 
     201            $deliv_count = $objQuery->count('dtb_other_deliv',"customer_id = ? AND other_deliv_id = ?" ,array($customer_id, $arrRet['other_deliv_id'])); 
    202202            if ($deliv_count != 1) { 
    203203                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '一致する別のお届け先がありません。'); 
     
    205205 
    206206            // 実行 
    207             $objQuery->update("dtb_other_deliv", $sqlval, "other_deliv_id = ?", array($arrRet['other_deliv_id'])); 
     207            $objQuery->update('dtb_other_deliv', $sqlval, "other_deliv_id = ?", array($arrRet['other_deliv_id'])); 
    208208        } 
    209209    } 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DownLoad.php

    r21480 r21481  
    116116 
    117117        //ファイル情報が無い場合はNG 
    118         if ($arrForm["down_realfilename"] == "") { 
     118        if ($arrForm['down_realfilename'] == "") { 
    119119            SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 
    120120        } 
    121121        //ファイルそのものが無い場合もとりあえずNG 
    122         $realpath = DOWN_SAVE_REALDIR . $arrForm["down_realfilename"]; 
     122        $realpath = DOWN_SAVE_REALDIR . $arrForm['down_realfilename']; 
    123123        if (!file_exists($realpath)) { 
    124124            SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 
    125125        } 
    126126        //ファイル名をエンコードする Safariの対策はUTF-8で様子を見る 
    127         $encoding = "Shift_JIS"; 
     127        $encoding = 'Shift_JIS'; 
    128128        if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'Safari')) { 
    129129            $encoding = "UTF-8"; 
    130130        } 
    131         $sdown_filename = mb_convert_encoding($arrForm["down_filename"], $encoding, 'auto'); 
     131        $sdown_filename = mb_convert_encoding($arrForm['down_filename'], $encoding, 'auto'); 
    132132 
    133133        // flushなどを利用しているので、現行のSC_Displayは利用できません。 
     
    189189    /* パラメーター情報の初期化 */ 
    190190    function lfInitParam(&$objFormParam) { 
    191         $objFormParam->addParam("customer_id", "customer_id", INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 
    192         $objFormParam->addParam("order_id", "order_id", INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK')); 
    193         $objFormParam->addParam("product_id", "product_id", INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 
    194         $objFormParam->addParam("product_class_id", "product_class_id", INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 
     191        $objFormParam->addParam('customer_id', 'customer_id', INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 
     192        $objFormParam->addParam('order_id', 'order_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK')); 
     193        $objFormParam->addParam('product_id', 'product_id', INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 
     194        $objFormParam->addParam('product_class_id', 'product_class_id', INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 
    195195    } 
    196196 
     
    231231        $file_size = filesize($realpath); 
    232232        //読み込み 
    233         $fp = fopen($realpath, "rb"); 
     233        $fp = fopen($realpath, 'rb'); 
    234234        if (isset($_SERVER['HTTP_RANGE'])) { 
    235235            // 二回目以降のリクエスト 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php

    r21479 r21481  
    179179        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    180180 
    181         $exists = $objQuery->exists("dtb_customer_favorite_products", "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 
     181        $exists = $objQuery->exists('dtb_customer_favorite_products', "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 
    182182 
    183183        if ($exists) { 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_History.php

    r21441 r21481  
    4949 
    5050        $masterData             = new SC_DB_MasterData_Ex(); 
    51         $this->arrMAILTEMPLATE  = $masterData->getMasterData("mtb_mail_template"); 
     51        $this->arrMAILTEMPLATE  = $masterData->getMasterData('mtb_mail_template'); 
    5252        $this->arrPref          = $masterData->getMasterData('mtb_pref'); 
    53         $this->arrWDAY          = $masterData->getMasterData("mtb_wday"); 
    54         $this->arrProductType   = $masterData->getMasterData("mtb_product_type"); 
     53        $this->arrWDAY          = $masterData->getMasterData('mtb_wday'); 
     54        $this->arrProductType   = $masterData->getMasterData('mtb_product_type'); 
    5555   } 
    5656 
     
    9191        $this->isMultiple       = count($this->arrShipping) > 1; 
    9292        // 支払い方法の取得 
    93         $this->arrPayment       = $objDb->sfGetIDValueList("dtb_payment", "payment_id", "payment_method"); 
     93        $this->arrPayment       = $objDb->sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 
    9494        // 受注商品明細の取得 
    9595        $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); 
  • branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php

    r21441 r21481  
    9090        $objCustomer    = new SC_Customer_Ex(); 
    9191        //customer_idを検証 
    92         $customer_id    = $objCustomer->getValue("customer_id"); 
    93         $order_count    = $objQuery->count("dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 
     92        $customer_id    = $objCustomer->getValue('customer_id'); 
     93        $order_count    = $objQuery->count('dtb_order', "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 
    9494        if ($order_count != 1) return array(); 
    9595 
     
    9797        $table  = "dtb_order_detail LEFT JOIN dtb_products_class USING(product_class_id)"; 
    9898        $where  = "order_id = ?"; 
    99         $objQuery->setOrder("order_detail_id"); 
     99        $objQuery->setOrder('order_detail_id'); 
    100100        $arrOrderDetail = $objQuery->select($col, $table, $where, array($order_id)); 
    101101        return $arrOrderDetail; 
Note: See TracChangeset for help on using the changeset viewer.