Ignore:
Timestamp:
2012/11/05 18:53:33 (11 years ago)
Author:
pineray
Message:

.#1960 (page クラスからビジネスロジックを分離)

LC_Page_Shopping_Confirm から useModule 関数を分離して、支払管理のヘルパクラスを新たに作成.

File:
1 edited

Legend:

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

    r21952 r22076  
    130130 
    131131        // 決済モジュールを使用するかどうか 
    132         $this->use_module = $this->useModule($this->arrForm['payment_id']); 
     132        $this->use_module = SC_Helper_Payment_Ex::useModule($this->arrForm['payment_id']); 
    133133 
    134134        switch ($this->getMode()) { 
     
    189189        parent::destroy(); 
    190190    } 
    191  
    192     /** 
    193      * 決済モジュールを使用するかどうか. 
    194      * 
    195      * dtb_payment.memo03 に値が入っている場合は決済モジュールと見なす. 
    196      * 
    197      * @param integer $payment_id 支払い方法ID 
    198      * @return boolean 決済モジュールを使用する支払い方法の場合 true 
    199      */ 
    200     function useModule($payment_id) { 
    201         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    202         $memo03 = $objQuery->get('memo03', 'dtb_payment', 'payment_id = ?', array($payment_id)); 
    203         return !SC_Utils_Ex::isBlank($memo03); 
    204     } 
    205191} 
Note: See TracChangeset for help on using the changeset viewer.