Changeset 23124 for branches/version-2_13-dev/data/class/SC_View.php
- Timestamp:
- 2013/08/24 23:33:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_View.php
r23003 r23124 26 26 class SC_View 27 27 { 28 var$_smarty;29 30 var$objPage;28 public $_smarty; 29 30 public $objPage; 31 31 32 32 // コンストラクタ 33 function __construct()33 public function __construct() 34 34 { 35 35 $this->init(); 36 36 } 37 37 38 function init()38 public function init() 39 39 { 40 40 $this->_smarty = new Smarty; … … 71 71 72 72 // テンプレートに値を割り当てる 73 function assign($val1, $val2)73 public function assign($val1, $val2) 74 74 { 75 75 $this->_smarty->assign($val1, $val2); … … 77 77 78 78 // テンプレートの処理結果を取得 79 function fetch($template)79 public function fetch($template) 80 80 { 81 81 return $this->_smarty->fetch($template); … … 85 85 * SC_Display用にレスポンスを返す 86 86 * @global string $GLOBAL_ERR 87 * @param array$template88 * @param boolean $no_error87 * @param array $template 88 * @param boolean $no_error 89 89 * @return string 90 90 */ 91 function getResponse($template, $no_error = false)91 public function getResponse($template, $no_error = false) 92 92 { 93 93 if (!$no_error) { … … 111 111 /** 112 112 * Pageオブジェクトをセットします. 113 * @param LC_Page_Ex $objPage113 * @param LC_Page_Ex $objPage 114 114 * @return void 115 115 */ 116 function setPage($objPage)116 public function setPage($objPage) 117 117 { 118 118 $this->objPage = $objPage; … … 123 123 * @return void 124 124 */ 125 function registFilter()125 public function registFilter() 126 126 { 127 127 $this->_smarty->register_prefilter(array(&$this, 'prefilter_transform')); … … 131 131 /** 132 132 * 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) 138 138 { 139 139 if (!is_null($this->objPage)) { … … 150 150 /** 151 151 * 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) 157 157 { 158 158 if (!is_null($this->objPage)) { … … 168 168 169 169 // テンプレートの処理結果を表示 170 function display($template, $no_error = false)170 public function display($template, $no_error = false) 171 171 { 172 172 if (!$no_error) { … … 188 188 189 189 // オブジェクト内の変数を全て割り当てる。 190 function assignobj($obj)190 public function assignobj($obj) 191 191 { 192 192 $data = get_object_vars($obj); … … 198 198 199 199 // 連想配列内の変数を全て割り当てる。 200 function assignarray($array)200 public function assignarray($array) 201 201 { 202 202 foreach ($array as $key => $val) { … … 210 210 * @param integer $device_type_id 端末種別ID 211 211 */ 212 function assignTemplatePath($device_type_id)212 public function assignTemplatePath($device_type_id) 213 213 { 214 214 // テンプレート変数を割り当て … … 225 225 226 226 // デバッグ 227 function debug($var = true)227 public function debug($var = true) 228 228 { 229 229 $this->_smarty->debugging = $var;
Note: See TracChangeset
for help on using the changeset viewer.