Changeset 22567 for branches/version-2_12-dev/data/class/pages/LC_Page.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/LC_Page.php
r22206 r22567 33 33 * @version $Id:LC_Page.php 15532 2007-08-31 14:39:46Z nanasess $ 34 34 */ 35 class LC_Page { 35 class LC_Page 36 { 36 37 37 38 // {{{ properties … … 84 85 * @return void 85 86 */ 86 function init() { 87 function init() 88 { 87 89 // 開始時刻を設定する。 88 90 $this->timeStart = microtime(true); … … 117 119 * @return void 118 120 */ 119 function process() {} 121 function process() 122 {} 120 123 121 124 /** … … 124 127 * @return void 125 128 */ 126 function sendResponse() { 129 function sendResponse() 130 { 127 131 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 128 132 // ローカルフックポイントを実行. … … 151 155 * @return void 152 156 */ 153 function sendResponseCSV($file_name, $data) { 157 function sendResponseCSV($file_name, $data) 158 { 154 159 $this->objDisplay->prepare($this); 155 160 $this->objDisplay->addHeader('Content-disposition', "attachment; filename=${file_name}"); … … 168 173 * @return void 169 174 */ 170 function destroy() { 175 function destroy() 176 { 171 177 // 一定時間以上かかったページの場合、ログ出力する。 172 178 // エラー画面の表示では $this->timeStart が出力されない … … 187 193 * @return void 188 194 */ 189 function doLocalHookpointBefore(SC_Helper_Plugin_Ex $objPlugin) { 195 function doLocalHookpointBefore(SC_Helper_Plugin_Ex $objPlugin) 196 { 190 197 // ローカルフックポイントを実行 191 198 $parent_class_name = get_parent_class($this); … … 205 212 * @return void 206 213 */ 207 function doLocalHookpointAfter(SC_Helper_Plugin_Ex $objPlugin) { 214 function doLocalHookpointAfter(SC_Helper_Plugin_Ex $objPlugin) 215 { 208 216 // ローカルフックポイントを実行 209 217 $parent_class_name = get_parent_class($this); … … 221 229 * 222 230 */ 223 function getTemplate() { 231 function getTemplate() 232 { 224 233 return $this->template; 225 234 } … … 229 238 * 230 239 */ 231 function setTemplate($template) { 240 function setTemplate($template) 241 { 232 242 $this->template = $template; 233 243 } … … 253 263 * @see Net_URL 254 264 */ 255 function getLocation($path, $param = array(), $useSSL = 'escape') { 265 function getLocation($path, $param = array(), $useSSL = 'escape') 266 { 256 267 $rootPath = $this->getRootPath($path); 257 268 … … 286 297 * @return string EC-CUBE のWEBルート(/html/)を / としたパス 287 298 */ 288 function getRootPath($path) { 299 function getRootPath($path) 300 { 289 301 // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する 290 302 $path = str_replace('\\', '/', $path); … … 324 336 * @deprecated 決済モジュール互換のため 325 337 */ 326 function allowClientCache() { 338 function allowClientCache() 339 { 327 340 $this->httpCacheControl('private'); 328 341 } … … 335 348 * @return void 336 349 */ 337 function httpCacheControl($mode = '') { 350 function httpCacheControl($mode = '') 351 { 338 352 switch ($mode) { 339 353 case 'nocache': … … 370 384 * @return string $_GET['mode'] 又は $_POST['mode'] の文字列 371 385 */ 372 function getMode() { 386 function getMode() 387 { 373 388 $pattern = '/^[a-zA-Z0-9_]+$/'; 374 389 $mode = null; … … 396 411 * @return void 397 412 */ 398 function doValidToken($is_admin = false) { 413 function doValidToken($is_admin = false) 414 { 399 415 if ($_SERVER['REQUEST_METHOD'] == 'POST') { 400 416 if (!SC_Helper_Session_Ex::isValidToken(false)) { … … 415 431 * @return void 416 432 */ 417 function setTokenTo() { 433 function setTokenTo() 434 { 418 435 $this->transactionid = SC_Helper_Session_Ex::getToken(); 419 436 } … … 424 441 * @deprecated 2.12.0 GC_Utils_Ex::gfPrintLog を使用すること 425 442 */ 426 function log($mess, $log_level) { 443 function log($mess, $log_level) 444 { 427 445 trigger_error('前方互換用メソッドが使用されました。', E_USER_WARNING); 428 446 // ログレベル=Debugの場合は、DEBUG_MODEがtrueの場合のみログ出力する … … 444 462 * @return void 445 463 */ 446 function p($val) { 464 function p($val) 465 { 447 466 SC_Utils_Ex::sfPrintR($val); 448 467 }
Note: See TracChangeset
for help on using the changeset viewer.