Ignore:
Timestamp:
2011/02/07 11:54:44 (13 years ago)
Author:
kimoto
Message:

リファクタリング #979

File:
1 edited

Legend:

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

    r20080 r20106  
    8686 
    8787    /** 
    88      * lfMakeKiyakuText 
    89      * 
    9088     * 規約文の作成 
    9189     * 
     
    9492     * @param mixed $offset 
    9593     * @access public 
    96      * @return void 
     94     * @return string 規約の内容をテキストエリアで表示するように整形したデータ 
    9795     */ 
    9896    function lfMakeKiyakuText($arrKiyaku, $max, $offset) { 
     
    107105 
    108106    /** 
    109      * lfGetKiyakuData 
    110      * 
    111107     * 規約内容の取得 
    112108     * 
    113      * @access public 
    114      * @return void 
     109     * @access private 
     110     * @return array $arrKiyaku 規約の配列 
    115111     */ 
    116112    function lfGetKiyakuData() { 
    117113 
    118         $objQuery = new SC_Query(); 
     114        $objQuery   = SC_Query::getSingletonInstance(); 
     115 
    119116        $objQuery->setOrder("rank DESC"); 
    120         $arrRet = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1"); 
     117        $arrKiyaku = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1"); 
    121118 
    122         return $arrRet; 
     119        return $arrKiyaku; 
    123120    } 
    124121 
    125122    /** 
    126      * lfSetOffset 
     123     * 
     124     * 携帯の場合getで来る次ページのidを適切に処理する 
    127125     * 
    128126     * @param mixed $offset 
    129      * @access public 
    130      * @return void 
     127     * @access private 
     128     * @return int 
    131129     */ 
    132130    function lfSetOffset($offset) { 
Note: See TracChangeset for help on using the changeset viewer.