Changeset 21441 for branches/version-2_12-dev/data/class/SC_View.php
- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_View.php
r21420 r21441 59 59 $this->_smarty->default_modifiers = array('script_escape'); 60 60 61 if (ADMIN_MODE == '1') {61 if (ADMIN_MODE == '1') { 62 62 $this->time_start = SC_Utils_Ex::sfMicrotimeFloat(); 63 63 } … … 82 82 */ 83 83 function getResponse($template, $no_error = false) { 84 if (!$no_error) {84 if (!$no_error) { 85 85 global $GLOBAL_ERR; 86 if (!defined('OUTPUT_ERR')) {86 if (!defined('OUTPUT_ERR')) { 87 87 // GLOBAL_ERR を割り当て 88 88 $this->assign("GLOBAL_ERR", $GLOBAL_ERR); … … 91 91 } 92 92 $res = $this->_smarty->fetch($template); 93 if (ADMIN_MODE == '1') {93 if (ADMIN_MODE == '1') { 94 94 $time_end = SC_Utils_Ex::sfMicrotimeFloat(); 95 95 $time = $time_end - $this->time_start; … … 101 101 // テンプレートの処理結果を表示 102 102 function display($template, $no_error = false) { 103 if (!$no_error) {103 if (!$no_error) { 104 104 global $GLOBAL_ERR; 105 if (!defined('OUTPUT_ERR')) {105 if (!defined('OUTPUT_ERR')) { 106 106 // GLOBAL_ERR を割り当て 107 107 $this->assign("GLOBAL_ERR", $GLOBAL_ERR); … … 111 111 112 112 $this->_smarty->display($template); 113 if (ADMIN_MODE == '1') {113 if (ADMIN_MODE == '1') { 114 114 $time_end = SC_Utils_Ex::sfMicrotimeFloat(); 115 115 $time = $time_end - $this->time_start; … … 122 122 $data = get_object_vars($obj); 123 123 124 foreach ($data as $key => $value) {124 foreach ($data as $key => $value) { 125 125 $this->_smarty->assign($key, $value); 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.