Changeset 20083


Ignore:
Timestamp:
2011/02/04 11:48:46 (11 years ago)
Author:
yomoro
Message:

#985 リファクタリング

File:
1 edited

Legend:

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

    r19811 r20083  
    8383     */ 
    8484    function lfGetKiyaku($index, &$objPage) { 
    85         $objQuery = new SC_Query(); 
     85        $objQuery =& SC_Query::getSingletonInstance(); 
    8686        $objQuery->setOrder('rank DESC'); 
    87         $arrRet = $objQuery->select('kiyaku_title, kiyaku_text', 'dtb_kiyaku', 'del_flg <> 1'); 
     87        $arrKiyaku = $objQuery->select('kiyaku_title, kiyaku_text', 'dtb_kiyaku', 'del_flg <> 1'); 
    8888 
    89         $number = count($arrRet); 
     89        $number = count($arrKiyaku); 
    9090        if ($number > 0) { 
    9191            $last = $number - 1; 
     
    100100        } 
    101101 
    102         $objPage->tpl_kiyaku_title = $arrRet[$index]['kiyaku_title']; 
    103         $objPage->tpl_kiyaku_text = $arrRet[$index]['kiyaku_text']; 
     102        $objPage->tpl_kiyaku_title = $arrKiyaku[$index]['kiyaku_title']; 
     103        $objPage->tpl_kiyaku_text = $arrKiyaku[$index]['kiyaku_text']; 
    104104        $objPage->tpl_kiyaku_index = $index; 
    105105        $objPage->tpl_kiyaku_last_index = $last; 
Note: See TracChangeset for help on using the changeset viewer.