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/SC_View.php

    r22567 r22796  
    2424require_once realpath(dirname(__FILE__)) . '/../module/Smarty/libs/Smarty.class.php'; 
    2525 
    26 class SC_View  
    27 { 
     26class SC_View { 
    2827 
    2928    var $_smarty; 
     
    3231 
    3332    // コンストラクタ 
    34     function __construct() 
    35     { 
     33    function __construct() { 
    3634        $this->init(); 
    3735    } 
    3836 
    39     function init() 
    40     { 
     37    function init() { 
    4138        $this->_smarty = new Smarty; 
    4239        $this->_smarty->left_delimiter = '<!--{'; 
     
    7673 
    7774    // テンプレートに値を割り当てる 
    78     function assign($val1, $val2) 
    79     { 
     75    function assign($val1, $val2) { 
    8076        $this->_smarty->assign($val1, $val2); 
    8177    } 
    8278 
    8379    // テンプレートの処理結果を取得 
    84     function fetch($template) 
    85     { 
     80    function fetch($template) { 
    8681        return $this->_smarty->fetch($template); 
    8782    } 
     
    9489     * @return string 
    9590     */ 
    96     function getResponse($template, $no_error = false) 
    97     { 
     91    function getResponse($template, $no_error = false) { 
    9892        if (!$no_error) { 
    9993            global $GLOBAL_ERR; 
     
    118112     * @return void 
    119113     */ 
    120     function setPage($objPage) 
    121     { 
     114    function setPage($objPage) { 
    122115       $this->objPage = $objPage; 
    123116    } 
     
    127120     * @return void 
    128121     */ 
    129     function registFilter() 
    130     { 
     122    function registFilter() { 
    131123        $this->_smarty->register_prefilter(array(&$this, 'prefilter_transform')); 
    132124        $this->_smarty->register_outputfilter(array(&$this, 'outputfilter_transform')); 
     
    139131     * @return string $source ソース 
    140132     */ 
    141     function prefilter_transform($source, &$smarty) 
    142     { 
     133    function prefilter_transform($source, &$smarty) { 
    143134        if (!is_null($this->objPage)) { 
    144135            // フックポイントを実行. 
     
    155146     * @return string $source ソース 
    156147     */ 
    157     function outputfilter_transform($source, &$smarty) 
    158     { 
     148    function outputfilter_transform($source, &$smarty) { 
    159149        if (!is_null($this->objPage)) { 
    160150            // フックポイントを実行. 
     
    166156 
    167157    // テンプレートの処理結果を表示 
    168     function display($template, $no_error = false) 
    169     { 
     158    function display($template, $no_error = false) { 
    170159        if (!$no_error) { 
    171160            global $GLOBAL_ERR; 
     
    186175 
    187176    // オブジェクト内の変数をすべて割り当てる。 
    188     function assignobj($obj) 
    189     { 
     177    function assignobj($obj) { 
    190178        $data = get_object_vars($obj); 
    191179 
     
    196184 
    197185    // 連想配列内の変数をすべて割り当てる。 
    198     function assignarray($array) 
    199     { 
     186    function assignarray($array) { 
    200187        foreach ($array as $key => $val) { 
    201188            $this->_smarty->assign($key, $val); 
     
    208195     * @param integer $device_type_id 端末種別ID 
    209196     */ 
    210     function assignTemplatePath($device_type_id) 
    211     { 
     197    function assignTemplatePath($device_type_id) { 
    212198 
    213199        // テンプレート変数を割り当て 
     
    224210 
    225211    // デバッグ 
    226     function debug($var = true) 
    227     { 
     212    function debug($var = true) { 
    228213        $this->_smarty->debugging = $var; 
    229214    } 
Note: See TracChangeset for help on using the changeset viewer.