Ignore:
Timestamp:
2013/02/18 19:09:54 (13 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    2424require_once realpath(dirname(__FILE__)) . '/../module/Smarty/libs/Smarty.class.php'; 
    2525 
    26 class SC_View { 
     26class SC_View  
     27{ 
    2728 
    2829    var $_smarty; 
     
    3132 
    3233    // コンストラクタ 
    33     function __construct() { 
     34    function __construct() 
     35    { 
    3436        $this->init(); 
    3537    } 
    3638 
    37     function init() { 
     39    function init() 
     40    { 
    3841        $this->_smarty = new Smarty; 
    3942        $this->_smarty->left_delimiter = '<!--{'; 
     
    7376 
    7477    // テンプレートに値を割り当てる 
    75     function assign($val1, $val2) { 
     78    function assign($val1, $val2) 
     79    { 
    7680        $this->_smarty->assign($val1, $val2); 
    7781    } 
    7882 
    7983    // テンプレートの処理結果を取得 
    80     function fetch($template) { 
     84    function fetch($template) 
     85    { 
    8186        return $this->_smarty->fetch($template); 
    8287    } 
     
    8994     * @return string 
    9095     */ 
    91     function getResponse($template, $no_error = false) { 
     96    function getResponse($template, $no_error = false) 
     97    { 
    9298        if (!$no_error) { 
    9399            global $GLOBAL_ERR; 
     
    112118     * @return void 
    113119     */ 
    114     function setPage($objPage) { 
     120    function setPage($objPage) 
     121    { 
    115122       $this->objPage = $objPage; 
    116123    } 
     
    120127     * @return void 
    121128     */ 
    122     function registFilter() { 
     129    function registFilter() 
     130    { 
    123131        $this->_smarty->register_prefilter(array(&$this, 'prefilter_transform')); 
    124132        $this->_smarty->register_outputfilter(array(&$this, 'outputfilter_transform')); 
     
    131139     * @return string $source ソース 
    132140     */ 
    133     function prefilter_transform($source, &$smarty) { 
     141    function prefilter_transform($source, &$smarty) 
     142    { 
    134143        if (!is_null($this->objPage)) { 
    135144            // フックポイントを実行. 
     
    146155     * @return string $source ソース 
    147156     */ 
    148     function outputfilter_transform($source, &$smarty) { 
     157    function outputfilter_transform($source, &$smarty) 
     158    { 
    149159        if (!is_null($this->objPage)) { 
    150160            // フックポイントを実行. 
     
    156166 
    157167    // テンプレートの処理結果を表示 
    158     function display($template, $no_error = false) { 
     168    function display($template, $no_error = false) 
     169    { 
    159170        if (!$no_error) { 
    160171            global $GLOBAL_ERR; 
     
    175186 
    176187    // オブジェクト内の変数をすべて割り当てる。 
    177     function assignobj($obj) { 
     188    function assignobj($obj) 
     189    { 
    178190        $data = get_object_vars($obj); 
    179191 
     
    184196 
    185197    // 連想配列内の変数をすべて割り当てる。 
    186     function assignarray($array) { 
     198    function assignarray($array) 
     199    { 
    187200        foreach ($array as $key => $val) { 
    188201            $this->_smarty->assign($key, $val); 
     
    195208     * @param integer $device_type_id 端末種別ID 
    196209     */ 
    197     function assignTemplatePath($device_type_id) { 
     210    function assignTemplatePath($device_type_id) 
     211    { 
    198212 
    199213        // テンプレート変数を割り当て 
     
    210224 
    211225    // デバッグ 
    212     function debug($var = true) { 
     226    function debug($var = true) 
     227    { 
    213228        $this->_smarty->debugging = $var; 
    214229    } 
Note: See TracChangeset for help on using the changeset viewer.