当前位置: 首页>>代码示例>>PHP>>正文


PHP Browser::time方法代码示例

本文整理汇总了PHP中Browser::time方法的典型用法代码示例。如果您正苦于以下问题:PHP Browser::time方法的具体用法?PHP Browser::time怎么用?PHP Browser::time使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Browser的用法示例。


在下文中一共展示了Browser::time方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: invoke

 public static function invoke($_conf = array())
 {
     try {
         Browser::time("invoked");
         $global_config = array_merge(array('CONTROLLER' => 'web.php', 'DEFAULT_DB' => 'DB1', 'CONSOLE_FUN' => 'console.log', 'RX_MODE_DEBUG' => FALSE, 'PROJECT_ROOT_DIR' => "./"), $_conf);
         // Loads all the Constants
         define('PROJECT_ROOT_DIR', $global_config['PROJECT_ROOT_DIR']);
         define('PROJECT_ID', md5(PROJECT_ROOT_DIR . $global_config['CONTROLLER']));
         FileUtil::$PROJECT_ROOT_DIR = PROJECT_ROOT_DIR;
         include_once 'constants.php';
         ob_start();
         session_start();
         Config::load(PROJECT_ROOT_DIR . "app/meta/project.properties", PROJECT_ROOT_DIR . "config/project.properties", $global_config);
         // Initialze Rudrax
         self::init();
         Browser::time("After Init");
         $config = Config::getSection("GLOBAL");
         $db_connect = false;
         Browser::time("Before DB Connect");
         /**
          * NOTE:- NO need to connect DB automatically, it should be connecte donly when required;
          */
         // if (isset ( $config ["DEFAULT_DB"] )) {
         // $RDb = self::getDB ( $config ["DEFAULT_DB"] );
         // $db_connect = true;
         // }
         Browser::time("Before-First Reload");
         // Define Custom Request Plugs
         if (FIRST_RELOAD) {
             ClassUtil::scan();
         }
         self::findAndExecuteController();
         self::invokeController();
         return null;
         Browser::time("Before Saving");
         Config::save();
         Browser::time("Invoked:Ends");
     } catch (Exception $e) {
         print_line($e->getMessage());
         print_line($e->getTraceAsString());
     }
 }
开发者ID:rudraks,项目名称:boot,代码行数:42,代码来源:RudraX.php

示例2: invoke

 public static function invoke($_conf = array())
 {
     Browser::time("invoked");
     $global_config = array_merge(array('CONTROLLER' => 'web.php', 'DEFAULT_DB' => 'DB1', 'CONSOLE_FUN' => 'console.log', 'RX_MODE_DEBUG' => FALSE, 'PROJECT_ROOT_DIR' => "../"), $_conf);
     // Loads all the Constants
     define('PROJECT_ROOT_DIR', $global_config['PROJECT_ROOT_DIR']);
     define('PROJECT_ID', md5(PROJECT_ROOT_DIR . $global_config['CONTROLLER']));
     FileUtil::$PROJECT_ROOT_DIR = PROJECT_ROOT_DIR;
     include_once 'constants.php';
     ob_start();
     session_start();
     Config::load(PROJECT_ROOT_DIR . "app/meta/project.properties", PROJECT_ROOT_DIR . "config/project.properties", $global_config);
     // Initialze Rudrax
     self::init();
     Browser::time("After Init");
     $config = Config::getSection("GLOBAL");
     $db_connect = false;
     Browser::time("Before DB Connect");
     /**
      * NOTE:- NO need to connect DB automatically, it should be connecte donly when required;
      */
     // if (isset ( $config ["DEFAULT_DB"] )) {
     // $RDb = self::getDB ( $config ["DEFAULT_DB"] );
     // $db_connect = true;
     // }
     Browser::time("Before-First Reload");
     // Define Custom Request Plugs
     if (FIRST_RELOAD) {
         ClassUtil::scan();
     }
     self::findAndExecuteController();
     self::invokeController();
     DBService::close();
     Browser::time("Before Saving");
     Config::save();
     Browser::time("After Saving");
     $clientConfig = Config::get("CLIENT_CONST");
     /*
      * $RX_ENCRYPT_PATH is applicable only if either MINFY or MERGE, this variable ise used by .htaccess file
      */
     $RX_ENCRYPT_PATH = !RX_MODE_DEBUG && ($clientConfig["RX_JS_MIN"] || $clientConfig["RX_JS_MERGE"]);
     Browser::header(RX_MODE_DEBUG . "." . $clientConfig["RX_JS_MIN"] . "." . $clientConfig["RX_JS_MERGE"]);
     if ($RX_ENCRYPT_PATH) {
         setcookie('RX-ENCRYPT-PATH', "TRUE", 0, "/");
         define("RX_ENCRYPT_PATH", true);
     } else {
         removecookie('RX-ENCRYPT-PATH');
         define("RX_ENCRYPT_PATH", false);
     }
     Browser::time("Invoked:Ends");
 }
开发者ID:rudraks,项目名称:core,代码行数:51,代码来源:RudraX.php


注:本文中的Browser::time方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。