Changeset 22796 for branches/version-2_12-dev/data/class/SC_Display.php
- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Display.php
r22567 r22796 28 28 * @version $Id$ 29 29 */ 30 class SC_Display 31 { 30 class SC_Display{ 32 31 33 32 var $response; … … 50 49 */ 51 50 52 function __construct($hasPrevURL = true) 53 { 51 function __construct($hasPrevURL = true) { 54 52 $this->response = new SC_Response_Ex(); 55 53 if ($hasPrevURL) { … … 58 56 } 59 57 60 function setPrevURL() 61 { 58 function setPrevURL() { 62 59 // TODO SC_SiteSession で実装した方が良さげ 63 60 $objCartSess = new SC_CartSession_Ex(); … … 71 68 * @param $is_admin boolean 管理画面を扱う場合 true 72 69 */ 73 function prepare($page, $is_admin = false) 74 { 70 function prepare($page, $is_admin = false) { 75 71 if (!$this->deviceSeted || !is_null($this->view)) { 76 72 $device = ($is_admin) ? DEVICE_TYPE_ADMIN : $this->detectDevice(); … … 87 83 * SC_Response::reload() のラッパーです. 88 84 */ 89 function reload($queryString = array(), $removeQueryString = false) 90 { 85 function reload($queryString = array(), $removeQueryString = false) { 91 86 $this->response->reload($queryString, $removeQueryString); 92 87 } 93 88 94 function noAction() 95 { 89 function noAction() { 96 90 return; 97 91 } … … 100 94 * ヘッダを追加する. 101 95 */ 102 function addHeader($name, $value) 103 { 96 function addHeader($name, $value) { 104 97 $this->response->addHeader($name, $value); 105 98 } … … 109 102 * Enter description here ... 110 103 */ 111 function setDevice($device = DEVICE_TYPE_PC) 112 { 104 function setDevice($device = DEVICE_TYPE_PC) { 113 105 114 106 switch ($device) { … … 135 127 * SC_View インスタンスを設定する. 136 128 */ 137 function setView($view) 138 { 129 function setView($view) { 139 130 $this->view = $view; 140 131 } … … 151 142 * @return integer 端末種別ID 152 143 */ 153 public static function detectDevice($reset = FALSE) 154 { 144 public static function detectDevice($reset = FALSE) { 155 145 if (is_null(SC_Display_Ex::$device) || $reset) { 156 146 $nu = new Net_UserAgent_Mobile(); … … 167 157 } 168 158 169 function assign($val1,$val2) 170 { 159 function assign($val1,$val2) { 171 160 $this->view->assign($val1, $val2); 172 161 } 173 162 174 function assignobj($obj) 175 { 163 function assignobj($obj) { 176 164 $this->view->assignobj($obj); 177 165 } 178 166 179 function assignarray($array) 180 { 167 function assignarray($array) { 181 168 $this->view->assignarray($array); 182 169 }
Note: See TracChangeset
for help on using the changeset viewer.
