Changeset 22543


Ignore:
Timestamp:
2013/02/13 20:16:26 (7 years ago)
Author:
pineray
Message:

#2136 SC_Helper_Deliveryクラスを作成

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

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery.php

    r22206 r22543  
    7171    function action() { 
    7272 
    73         $objDb = new SC_Helper_DB_Ex(); 
     73        $objDeliv = new SC_Helper_Delivery_Ex(); 
    7474        $mode = $this->getMode(); 
    7575 
     
    8888            case 'delete': 
    8989                // ランク付きレコードの削除 
    90                 $objDb->sfDeleteRankRecord('dtb_deliv', 'deliv_id', $_POST['deliv_id']); 
     90                $objDeliv->delete($_POST['deliv_id']); 
    9191 
    9292                $this->objDisplay->reload(); // PRG pattern 
    9393                break; 
    9494            case 'up': 
    95                 $objDb->sfRankUp('dtb_deliv', 'deliv_id', $_POST['deliv_id']); 
     95                $objDeliv->rankUp($_POST['deliv_id']); 
    9696 
    9797                $this->objDisplay->reload(); // PRG pattern 
    9898                break; 
    9999            case 'down': 
    100                 $objDb->sfRankDown('dtb_deliv', 'deliv_id', $_POST['deliv_id']); 
     100                $objDeliv->rankDown($_POST['deliv_id']); 
    101101 
    102102                $this->objDisplay->reload(); // PRG pattern 
     
    105105                break; 
    106106        } 
    107         $this->arrDelivList = $this->lfGetDelivList(); 
     107        $this->arrDelivList = $objDeliv->getList(); 
    108108 
    109     } 
    110  
    111     /** 
    112      * 配送業者一覧の取得 
    113      * 
    114      * @return array 
    115      */ 
    116     function lfGetDelivList() { 
    117         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    118  
    119         $col = 'deliv_id, name, service_name'; 
    120         $where = 'del_flg = 0'; 
    121         $table = 'dtb_deliv'; 
    122         $objQuery->setOrder('rank DESC'); 
    123  
    124         return $objQuery->select($col, $table, $where); 
    125109    } 
    126110 
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Disp.php

    r22537 r22543  
    9292 
    9393        // 配送業者の取得 
    94         $this->arrDeliv = SC_Helper_DB_Ex::sfGetIDValueList('dtb_deliv', 'deliv_id', 'name'); 
     94        $this->arrDeliv = SC_Helper_Delivery_Ex::getIDValueList(); 
    9595    } 
    9696 
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r22537 r22543  
    111111 
    112112        // 配送業者の取得 
    113         $this->arrDeliv = SC_Helper_DB_Ex::sfGetIDValueList('dtb_deliv', 'deliv_id', 'name'); 
     113        $this->arrDeliv = SC_Helper_Delivery_Ex::getIDValueList(); 
    114114 
    115115        $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
  • branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php

    r22206 r22543  
    5050        $this->arrMAILMAGATYPE = $masterData->getMasterData('mtb_mail_magazine_type'); 
    5151        $this->arrReminder = $masterData->getMasterData('mtb_reminder'); 
    52         $this->arrDeliv = SC_Helper_DB_Ex::sfGetIDValueList('dtb_deliv', 'deliv_id', 'service_name'); 
     52        $this->arrDeliv = SC_Helper_Delivery_Ex::getIDValueList('service_name'); 
    5353        $this->httpCacheControl('nocache'); 
    5454    } 
Note: See TracChangeset for help on using the changeset viewer.