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/shopping/LC_Page_Shopping.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Shopping extends LC_Page_Ex  
    35 { 
     34class LC_Page_Shopping extends LC_Page_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_title = 'ログイン'; 
     
    6664     * @return void 
    6765     */ 
    68     function process() 
    69     { 
     66    function process() { 
    7067        parent::process(); 
    7168        $this->action(); 
     
    7875     * @return void 
    7976     */ 
    80     function action() 
    81     { 
     77    function action() { 
    8278 
    8379        $objSiteSess = new SC_SiteSession_Ex(); 
     
    276272     * @return void 
    277273     */ 
    278     function destroy() 
    279     { 
     274    function destroy() { 
    280275        parent::destroy(); 
    281276    } 
     
    287282     * @return void 
    288283     */ 
    289     function lfInitParam(&$objFormParam) 
    290     { 
     284    function lfInitParam(&$objFormParam) { 
    291285 
    292286        $objFormParam->addParam('お名前(姓)', 'order_name01', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK')); 
     
    325319        $objFormParam->addParam('電話番号2', 'shipping_tel02', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 
    326320        $objFormParam->addParam('電話番号3', 'shipping_tel03', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 
     321        $objFormParam->addParam('メールマガジン', 'mail_flag', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 1); 
    327322    } 
    328323 
     
    333328     * @return void 
    334329     */ 
    335     function lfInitLoginFormParam(&$objFormParam) 
    336     { 
     330    function lfInitLoginFormParam(&$objFormParam) { 
    337331        $objFormParam->addParam('記憶する', 'login_memory', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    338332        $objFormParam->addParam('メールアドレス', 'login_email', STEXT_LEN, 'a', array('EXIST_CHECK', 'MAX_LENGTH_CHECK')); 
     
    354348     * @return string 遷移先のパス 
    355349     */ 
    356     function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase, &$objSiteSess) 
    357     { 
     350    function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase, &$objSiteSess) { 
    358351        switch ($product_type_id) { 
    359352            case PRODUCT_TYPE_DOWNLOAD: 
    360                 $objPurchase->unsetAllShippingTemp(true); 
    361353                $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer); 
    362354                $objSiteSess->setRegistFlag(); 
     
    379371     * @param boolean $isMultiple 複数配送の場合 true 
    380372     */ 
    381     function lfRegistData($uniqid, &$objPurchase, &$objCustomer, &$objFormParam, $isMultiple = false) 
    382     { 
     373    function lfRegistData($uniqid, &$objPurchase, &$objCustomer, &$objFormParam, $isMultiple = false) { 
    383374        $arrParams = $objFormParam->getHashArray(); 
    384375 
     
    423414     * @return array エラー情報の配 
    424415     */ 
    425     function lfCheckError(&$objFormParam) 
    426     { 
     416    function lfCheckError(&$objFormParam) { 
    427417        // 入力値の変換 
    428418        $objFormParam->convParam(); 
     
    473463     * @return void 
    474464     */ 
    475     function setFormParams(&$objFormParam, &$objPurchase, $uniqid) 
    476     { 
     465    function setFormParams(&$objFormParam, &$objPurchase, $uniqid) { 
    477466        $arrOrderTemp = $objPurchase->getOrderTemp($uniqid); 
    478467        if (SC_Utils_Ex::isBlank($arrOrderTemp)) { 
     
    492481            $objFormParam->setParam($arrShippingTemp[1]); 
    493482        } else { 
    494             if ($arrOrderTemp['deliv_check'] == 1) { 
    495                 $objFormParam->setParam($arrShippingTemp[1]); 
    496             } else { 
    497                 $objFormParam->setParam($arrShippingTemp[0]); 
    498             } 
     483            $objFormParam->setParam($arrShippingTemp[0]); 
    499484        } 
    500485        $objFormParam->setValue('order_email02', $arrOrderTemp['order_email']); 
     
    512497     * @see LC_PageError 
    513498     */ 
    514     function lfGetErrorMessage($error) 
    515     { 
     499    function lfGetErrorMessage($error) { 
    516500        switch ($error) { 
    517501            case TEMP_LOGIN_ERROR: 
Note: See TracChangeset for help on using the changeset viewer.