本文整理汇总了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());
}
}
示例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");
}