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