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