Ignore:
Timestamp:
2013/08/24 23:33:52 (11 years ago)
Author:
kimoto
Message:

#2043 typo修正・ソース整形・ソースコメントの改善 for 2.13.0
PHP4的な書き方の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/SC_View.php

    r23003 r23124  
    2626class SC_View 
    2727{ 
    28     var $_smarty; 
    29  
    30     var $objPage; 
     28    public $_smarty; 
     29 
     30    public $objPage; 
    3131 
    3232    // コンストラクタ 
    33     function __construct() 
     33    public function __construct() 
    3434    { 
    3535        $this->init(); 
    3636    } 
    3737 
    38     function init() 
     38    public function init() 
    3939    { 
    4040        $this->_smarty = new Smarty; 
     
    7171 
    7272    // テンプレートに値を割り当てる 
    73     function assign($val1, $val2) 
     73    public function assign($val1, $val2) 
    7474    { 
    7575        $this->_smarty->assign($val1, $val2); 
     
    7777 
    7878    // テンプレートの処理結果を取得 
    79     function fetch($template) 
     79    public function fetch($template) 
    8080    { 
    8181        return $this->_smarty->fetch($template); 
     
    8585     * SC_Display用にレスポンスを返す 
    8686     * @global string $GLOBAL_ERR 
    87      * @param array $template 
    88      * @param boolean $no_error 
     87     * @param  array  $template 
     88     * @param  boolean $no_error 
    8989     * @return string 
    9090     */ 
    91     function getResponse($template, $no_error = false) 
     91    public function getResponse($template, $no_error = false) 
    9292    { 
    9393        if (!$no_error) { 
     
    111111    /** 
    112112     * Pageオブジェクトをセットします. 
    113      * @param LC_Page_Ex $objPage 
     113     * @param  LC_Page_Ex $objPage 
    114114     * @return void 
    115115     */ 
    116     function setPage($objPage) 
     116    public function setPage($objPage) 
    117117    { 
    118118       $this->objPage = $objPage; 
     
    123123     * @return void 
    124124     */ 
    125     function registFilter() 
     125    public function registFilter() 
    126126    { 
    127127        $this->_smarty->register_prefilter(array(&$this, 'prefilter_transform')); 
     
    131131    /** 
    132132     * prefilter用のフィルタ関数。プラグイン用のフックポイント処理を実行 
    133      * @param string $source ソース 
    134      * @param Smarty_Compiler $smarty Smartyのコンパイラクラス 
    135      * @return string $source ソース 
    136      */ 
    137     function prefilter_transform($source, &$smarty) 
     133     * @param  string          $source ソース 
     134     * @param  Smarty_Compiler $smarty Smartyのコンパイラクラス 
     135     * @return string          $source ソース 
     136     */ 
     137    public function prefilter_transform($source, &$smarty) 
    138138    { 
    139139        if (!is_null($this->objPage)) { 
     
    150150    /** 
    151151     * outputfilter用のフィルタ関数。プラグイン用のフックポイント処理を実行 
    152      * @param string $source ソース 
    153      * @param Smarty_Compiler $smarty Smartyのコンパイラクラス 
    154      * @return string $source ソース 
    155      */ 
    156     function outputfilter_transform($source, &$smarty) 
     152     * @param  string          $source ソース 
     153     * @param  Smarty_Compiler $smarty Smartyのコンパイラクラス 
     154     * @return string          $source ソース 
     155     */ 
     156    public function outputfilter_transform($source, &$smarty) 
    157157    { 
    158158        if (!is_null($this->objPage)) { 
     
    168168 
    169169    // テンプレートの処理結果を表示 
    170     function display($template, $no_error = false) 
     170    public function display($template, $no_error = false) 
    171171    { 
    172172        if (!$no_error) { 
     
    188188 
    189189    // オブジェクト内の変数を全て割り当てる。 
    190     function assignobj($obj) 
     190    public function assignobj($obj) 
    191191    { 
    192192        $data = get_object_vars($obj); 
     
    198198 
    199199    // 連想配列内の変数を全て割り当てる。 
    200     function assignarray($array) 
     200    public function assignarray($array) 
    201201    { 
    202202        foreach ($array as $key => $val) { 
     
    210210     * @param integer $device_type_id 端末種別ID 
    211211     */ 
    212     function assignTemplatePath($device_type_id) 
     212    public function assignTemplatePath($device_type_id) 
    213213    { 
    214214        // テンプレート変数を割り当て 
     
    225225 
    226226    // デバッグ 
    227     function debug($var = true) 
     227    public function debug($var = true) 
    228228    { 
    229229        $this->_smarty->debugging = $var; 
Note: See TracChangeset for help on using the changeset viewer.