Ignore:
Timestamp:
2012/04/16 19:53:39 (14 years ago)
Author:
shutta
Message:

#1579 SC_Query::getSingletonInstance()への置き換え

Location:
branches/version-2_12-dev/data/class/helper
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_DB.php

    r21690 r21750  
    211211     */ 
    212212    function sfGetRollbackPoint($order_id, $use_point, $add_point, $order_status) { 
    213         $objQuery = new SC_Query_Ex(); 
     213        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    214214        $arrRet = $objQuery->select('customer_id', 'dtb_order', 'order_id = ?', array($order_id)); 
    215215        $customer_id = $arrRet[0]['customer_id']; 
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Mail.php

    r21684 r21750  
    4646    function sfSendTemplateMail($to, $to_name, $template_id, &$objPage, $from_address = '', $from_name = '', $reply_to = '', $bcc = '') { 
    4747 
    48         $objQuery = new SC_Query_Ex(); 
     48        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    4949        // メールテンプレート情報の取得 
    5050        $where = 'template_id = ?'; 
     
    8181        $arrTplVar->arrInfo = $arrInfo; 
    8282 
    83         $objQuery = new SC_Query_Ex(); 
     83        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    8484 
    8585        if ($subject == '' && $header == '' && $footer == '') { 
     
    243243        $sqlval['mail_body'] = $body; 
    244244 
    245         $objQuery = new SC_Query_Ex(); 
     245        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    246246        $sqlval['send_id'] = $objQuery->nextVal('dtb_mail_history_send_id'); 
    247247        $objQuery->insert('dtb_mail_history', $sqlval); 
     
    253253        $from = 'dtb_customer'; 
    254254        $where = '(email = ? OR email_mobile = ?) AND status = 2 AND del_flg = 0'; 
    255         $objQuery = new SC_Query_Ex(); 
     255        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    256256        $arrRet = $objQuery->select($col, $from, $where, array($email)); 
    257257        // 会員のメールアドレスが登録されている 
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Mobile.php

    r21527 r21750  
    132132        $url = $matches[1]; 
    133133        $time = date('Y-m-d H:i:s', time() - MOBILE_SESSION_LIFETIME); 
    134         $objQuery = new SC_Query_Ex(); 
     134        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    135135 
    136136        foreach ($_REQUEST as $key => $value) { 
     
    305305        } 
    306306 
    307         $objQuery = new SC_Query_Ex(); 
     307        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    308308 
    309309        // GC 
     
    347347     */ 
    348348    function gfRegisterKaraMail($token, $email) { 
    349         $objQuery = new SC_Query_Ex(); 
     349        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    350350 
    351351        // GC 
     
    377377     */ 
    378378    function gfFinishKaraMail($token) { 
    379         $objQuery = new SC_Query_Ex(); 
     379        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    380380 
    381381        $arrRow = $objQuery->getRow( 
     
    415415     */ 
    416416    function sfMobileSetExtSessionId($param_key, $param_value, $url) { 
    417         $objQuery = new SC_Query_Ex(); 
     417        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    418418 
    419419        // GC 
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Session.php

    r21704 r21750  
    6969     */ 
    7070    function sfSessRead($id) { 
    71         $objQuery = new SC_Query_Ex(); 
     71        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    7272        $arrRet = $objQuery->select('sess_data', 'dtb_session', 'sess_id = ?', array($id)); 
    7373        if (empty($arrRet)) { 
     
    8686     */ 
    8787    function sfSessWrite($id, $sess_data) { 
    88         $objQuery = new SC_Query_Ex(); 
     88        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    8989        $exists = $objQuery->exists('dtb_session', 'sess_id = ?', array($id)); 
    9090        $sqlval = array(); 
     
    116116     */ 
    117117    function sfSessDestroy($id) { 
    118         $objQuery = new SC_Query_Ex(); 
     118        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    119119        $objQuery->delete('dtb_session', 'sess_id = ?', array($id)); 
    120120        return true; 
     
    130130    function sfSessGc($maxlifetime) { 
    131131        // MAX_LIFETIME以上更新されていないセッションを削除する。 
    132         $objQuery = new SC_Query_Ex(); 
     132        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    133133        $where = "update_date < current_timestamp + '-". MAX_LIFETIME . " secs'"; 
    134134        $objQuery->delete('dtb_session', $where); 
Note: See TracChangeset for help on using the changeset viewer.