Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

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

    r22570 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Entry_Kiyaku extends LC_Page_Ex  
    35 { 
     34class LC_Page_Entry_Kiyaku extends LC_Page_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_title = 'ご利用規約'; 
     
    5452     * @return void 
    5553     */ 
    56     function process() 
    57     { 
     54    function process() { 
    5855        parent::process(); 
    5956        $this->action(); 
     
    6663     * @return void 
    6764     */ 
    68     function action() 
    69     { 
     65    function action() { 
    7066 
    7167        $arrKiyaku = $this->lfGetKiyakuData(); 
     
    8783     * @return void 
    8884     */ 
    89     function destroy() 
    90     { 
     85    function destroy() { 
    9186        parent::destroy(); 
    9287    } 
     
    10196     * @return string 規約の内容をテキストエリアで表示するように整形したデータ 
    10297     */ 
    103     function lfMakeKiyakuText($arrKiyaku, $max, $offset) 
    104     { 
     98    function lfMakeKiyakuText($arrKiyaku, $max, $offset) { 
    10599        $this->tpl_kiyaku_text = ''; 
    106100        for ($i = 0; $i < $max; $i++) { 
     
    118112     * @return array $arrKiyaku 規約の配列 
    119113     */ 
    120     function lfGetKiyakuData() 
    121     { 
    122         $objKiyaku = new SC_Helper_Kiyaku_Ex(); 
    123         $arrKiyaku = $objKiyaku->getList(); 
     114    function lfGetKiyakuData() { 
     115 
     116        $objQuery   = SC_Query_Ex::getSingletonInstance(); 
     117 
     118        $objQuery->setOrder('rank DESC'); 
     119        $arrKiyaku  = $objQuery->select('kiyaku_title, kiyaku_text', 'dtb_kiyaku', 'del_flg <> 1'); 
    124120 
    125121        return $arrKiyaku; 
     
    134130     * @return int 
    135131     */ 
    136     function lfSetOffset($offset) 
    137     { 
     132    function lfSetOffset($offset) { 
    138133        return is_numeric($offset) === true ? intval($offset) : 1; 
    139134    } 
Note: See TracChangeset for help on using the changeset viewer.