Ignore:
Timestamp:
2014/05/29 18:54:58 (6 years ago)
Author:
pineray
Message:

#2560 pageクラスからdtb_reviewテーブルを直接指定している箇所をなくす

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_Review.php

    r23367 r23461  
    186186 
    187187    //登録実行 
    188     public function lfRegistRecommendData(&$objFormParam) 
    189     { 
    190         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     188    public function lfRegistRecommendData(SC_FormParam &$objFormParam) 
     189    { 
     190        $arrRegist = $objFormParam->getDbArray(); 
     191 
    191192        $objCustomer = new SC_Customer_Ex(); 
    192  
    193         $arrRegist = $objFormParam->getDbArray(); 
    194  
    195         $arrRegist['create_date'] = 'CURRENT_TIMESTAMP'; 
    196         $arrRegist['update_date'] = 'CURRENT_TIMESTAMP'; 
    197         $arrRegist['creator_id'] = '0'; 
    198  
    199193        if ($objCustomer->isLoginSuccess(true)) { 
    200194            $arrRegist['customer_id'] = $objCustomer->getValue('customer_id'); 
     
    202196 
    203197        //-- 登録実行 
    204         $objQuery->begin(); 
    205         $arrRegist['review_id'] = $objQuery->nextVal('dtb_review_review_id'); 
    206         $objQuery->insert('dtb_review', $arrRegist); 
    207         $objQuery->commit(); 
     198        $objReview = new SC_Helper_Review_Ex(); 
     199        $objReview->save($arrRegist); 
    208200    } 
    209201} 
Note: See TracChangeset for help on using the changeset viewer.