Ignore:
Timestamp:
2011/03/04 23:24:33 (13 years ago)
Author:
shutta
Message:

SC_Queryクラスのclass_extends対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Customer.php

    r20495 r20507  
    4242        // 本登録された会員のみ 
    4343        $sql = "SELECT * FROM dtb_customer WHERE (email = ?" . $sql_mobile . ") AND del_flg = 0 AND status = 2"; 
    44         $objQuery = new SC_Query(); 
     44        $objQuery = new SC_Query_Ex(); 
    4545        $result = $objQuery->getAll($sql, $arrValues); 
    4646        if (empty($result)) { 
     
    6969     */ 
    7070    function getCustomerAddress($customer_id) { 
    71         $objQuery =& SC_Query::getSingletonInstance(); 
     71        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    7272 
    7373        $from = <<< __EOS__ 
     
    121121        // 携帯端末IDが一致し、本登録された会員を検索する。 
    122122        $sql = 'SELECT count(*) FROM dtb_customer WHERE mobile_phone_id = ? AND del_flg = 0 AND status = 2'; 
    123         $objQuery = new SC_Query(); 
     123        $objQuery = new SC_Query_Ex(); 
    124124        $result = $objQuery->count("dtb_customer", "mobile_phone_id = ? AND del_flg = 0 AND status = 2", array($_SESSION['mobile']['phone_id'])); 
    125125        return $result > 0; 
     
    146146        // 携帯端末IDが一致し、本登録された会員を検索する。 
    147147        $sql = 'SELECT * FROM dtb_customer WHERE mobile_phone_id = ? AND del_flg = 0 AND status = 2'; 
    148         $objQuery = new SC_Query(); 
     148        $objQuery = new SC_Query_Ex(); 
    149149        @list($data) = $objQuery->getAll($sql, array($_SESSION['mobile']['phone_id'])); 
    150150 
     
    172172        } 
    173173 
    174         $objQuery = new SC_Query; 
     174        $objQuery = new SC_Query_Ex(); 
    175175        $sqlval = array('mobile_phone_id' => $_SESSION['mobile']['phone_id']); 
    176176        $where = 'customer_id = ? AND del_flg = 0 AND status = 2'; 
     
    184184        // 本登録された会員のみ 
    185185        $sql = "SELECT * FROM dtb_customer WHERE (email = ? OR email_mobile = ?) AND del_flg = 0 AND status = 2"; 
    186         $objQuery = new SC_Query(); 
     186        $objQuery = new SC_Query_Ex(); 
    187187        $result = $objQuery->getAll($sql, array($email, $email)); 
    188188        $data = isset($result[0]) ? $result[0] : ""; 
     
    195195        $sql = "SELECT * FROM dtb_customer WHERE customer_id = ? AND del_flg = 0"; 
    196196        $customer_id = $this->getValue('customer_id'); 
    197         $objQuery = new SC_Query(); 
     197        $objQuery = new SC_Query_Ex(); 
    198198        $arrRet = $objQuery->getAll($sql, array($customer_id)); 
    199199        $this->customer_data = isset($arrRet[0]) ? $arrRet[0] : ""; 
     
    226226            && SC_Utils_Ex::sfIsInt($_SESSION['customer']['customer_id'])) { 
    227227 
    228             $objQuery = new SC_Query(); 
     228            $objQuery = new SC_Query_Ex(); 
    229229            $email = $objQuery->get("email", "dtb_customer", "customer_id = ?", array($_SESSION['customer']['customer_id'])); 
    230230            if($email == $_SESSION['customer']['email']) { 
Note: See TracChangeset for help on using the changeset viewer.