本文整理汇总了PHP中FirePHP类的典型用法代码示例。如果您正苦于以下问题:PHP FirePHP类的具体用法?PHP FirePHP怎么用?PHP FirePHP使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FirePHP类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: debug
/**
*
* @param int|string|array|object $pmVar
* - Valor a ser impresso
* @param boolean $pbForceDebug
* - Se true força a impressão mesmo que no config o debug esteja
* desabilitado
* @param string $psType
* - força o tipo de saída de impressão
*/
public static function debug($pmVar, $pbForceDebug = false, $psType = null)
{
$laConfig = Config::getAppOptions();
$laDebug = $laConfig['log']['debug']['PHP'];
if (Util::toBoolean($laDebug['enable']) || $pbForceDebug) {
$lsType = $laDebug['output'];
if ($psType != null) {
$lsType = $psType;
}
switch ($lsType) {
case "DISPLAY":
echo '<pre style="margin:50px;"><code><fieldset><legend>Onion Debug:</legend>';
self::displayDebug($pmVar);
echo '</fieldset></code></pre>';
break;
case "FIREBUG":
$loLogger = new FirePHP();
$loLogger->log($pmVar);
break;
case "COMMENT":
echo "<!--";
self::displayDebug($pmVar);
echo "-->";
break;
case "BUFFER":
$loBuffer = Session::getRegister("DEBUG");
$loBuffer[] = Json::encode($pmVar);
break;
}
}
}
开发者ID:m3uzz,项目名称:onionfw,代码行数:41,代码来源:Debug.php
示例2: getDebugger
protected static function getDebugger()
{
if (is_null(self::$debugger)) {
header('x-insight: inspect');
$_SERVER['x-insight'] = 'inspect';
set_include_path(ONE_LIB_PATH . '/../vendor/firephp/' . PATH_SEPARATOR . get_include_path());
define('INSIGHT_CONFIG_PATH', self::getConfigFile());
require_once 'FirePHP/Init.php';
self::$debugger = FirePHP::getInstance(true);
self::$debugger->setEnabled(true);
}
return self::$debugger;
}
开发者ID:pdelbar,项目名称:onethree,代码行数:13,代码来源:debug.php
示例3: query
public function query($type, $sql, $as_object)
{
if (isset($this->_config['connection']) === true) {
$this->database = $this->_config['connection']['database'];
}
$result = parent::query($type, $sql, false);
if ($type === Database::SELECT) {
$table = array();
if (count($result) > 0) {
foreach ($result->current() as $key => $data) {
$table[0][] = $key;
}
$result->rewind();
foreach ($result as $row) {
$table[] = $row;
}
$result->rewind();
} else {
$table[] = array('No', 'rows');
}
$group = Profiler::groups();
$group = Profiler::total($group['database (default)'][$sql][0]);
FirePHP::getInstance()->table($this->database . ' : (' . number_format($group[0], 6) . 's) ' . $sql, $table);
} elseif ($type === Database::INSERT) {
FirePHP::getInstance()->info($this->database . ' : Insert id: ' . $result[0] . ' Affected rows: ' . $result[1]);
} else {
FirePHP::getInstance()->info($this->database . ' : Affected rows: ' . $result[0]);
}
return $result;
}
开发者ID:pedrosland,项目名称:kohana-firephp,代码行数:30,代码来源:mysql.php
示例4: __construct
function __construct()
{
$this->console = FirePHP::to("page")->console();
$this->console = $this->console->options(array('encoder.trace.offsetAdjustment' => 1));
$this->engine = FirePHP::plugin('engine');
$this->engine->onException($this->console);
}
开发者ID:janym,项目名称:angular-yii,代码行数:7,代码来源:PageConsole-TraceOffsets.php
示例5: action_index
public function action_index()
{
$company_pages_hits = array();
$company = ORM::factory('service');
foreach ($company->find_all() as $c) {
foreach ($c->visits->find_all() as $visit) {
if (!array_key_exists(Date::formatted_time($visit->date, 'Y-m-d H'), $company_pages_hits)) {
$company_pages_hits[Date::formatted_time($visit->date, 'Y-m-d H')] = 1;
} else {
$company_pages_hits[Date::formatted_time($visit->date, 'Y-m-d H')] += 1;
}
}
}
ksort($company_pages_hits);
$company_pages_hits_line = array();
foreach ($company_pages_hits as $date => $hints) {
$company_pages_hits_line[] = array($date . ':00 PM', $hints);
}
$this->add_js('assets/js/jqplot/plugins/jqplot.highlighter.min.js');
$this->add_js('assets/js/jqplot/plugins/jqplot.cursor.min.js');
$this->add_js('assets/js/jqplot/plugins/jqplot.dateAxisRenderer.min.js');
$this->add_js('assets/js/jqplot/plugins/jqplot.pointLabels.min.js');
$this->template->content = View::factory('backend/statistics/total_chart')->set('company_line', json_encode($company_pages_hits_line));
FirePHP::getInstance(TRUE)->log($company_pages_hits);
}
开发者ID:Alexander711,项目名称:naav1,代码行数:25,代码来源:statistics.php
示例6: smarty_function_firephp
function smarty_function_firephp($params, &$smarty)
{
$var = $params['value'];
FirePHP::getInstance()->log($var);
return '';
//return addslashes( $string );
}
开发者ID:OXIDprojects,项目名称:debugax,代码行数:7,代码来源:function.firephp.php
示例7: __construct
public function __construct()
{
if (!class_exists('\\FirePHP')) {
throw new \ErrorException('FirePHP not found');
}
$this->firephp = \FirePHP::getInstance(true);
}
开发者ID:jaanush,项目名称:slipstream,代码行数:7,代码来源:FirePHPLogger.php
示例8: getInstance
public static function getInstance()
{
if (!self::$instance) {
self::$instance = new FirePHP();
}
return self::$instance;
}
开发者ID:jerfowler,项目名称:firephp-libs,代码行数:7,代码来源:Init.php
示例9: get_content
function get_content()
{
global $CFG, $USER, $SITE, $COURSE;
if ($this->content !== NULL) {
return $this->content;
}
$this->content = new stdClass();
$context = get_context_instance(CONTEXT_SYSTEM, $COURSE->id);
if (has_capability('block/firephp:viewfirephp', $context) and !empty($CFG->block_firephp_active)) {
// loading FirePHP object
$firephp = FirePHP::getInstance(TRUE);
// setting options (defaults)
$fp_options = array('maxObjectDepth' => 10, 'maxArrayDepth' => 20, 'useNativeJsonEncode' => TRUE, 'includeLineNumbers' => TRUE);
$firephp->setOptions($fp_options);
// error & exception handling
$firephp->registerErrorHandler();
$firephp->registerExceptionHandler();
// dump global Moodle variables to FireBug console
$firephp->info($CFG, 'CFG: ');
$firephp->info($USER, 'User: ');
$firephp->info($SITE, 'Site: ');
$firephp->info($COURSE, 'Course: ');
$this->content->text = get_string('activated', 'block_firephp');
} else {
// deactivate logging
// $firephp->setEnabled(FALSE); // doesn't seem to work/be needed
$this->content->text = get_string('deactivated', 'block_firephp');
}
// footer
$this->content->footer = '';
// empty output buffer
// ob_end_flush();
return $this->content;
}
开发者ID:nakohdo,项目名称:moodle-block_firephp,代码行数:34,代码来源:block_firephp.php
示例10: record
/**
* 记录日志 并且会过滤未经设置的级别
* @static
* @access public
* @param string $message 日志信息
* @param string $level 日志级别
* @param boolean $record 是否强制记录
* @return void
*/
static function record($message, $level = self::ERR, $record = false)
{
if ($record || false !== strpos(C('LOG_LEVEL'), $level)) {
self::$log[] = "{$level}: {$message}\r\n";
// 过滤一些常见但又不重要的错误警报
if (strpos($message, '无法加载控制器:') !== 0) {
self::report($level, $message);
}
if (APP_DEBUG && !headers_sent()) {
import('Common.Util.FirePHP');
if (!class_exists('FirePHP')) {
return;
}
$fb = \FirePHP::getInstance(true);
switch ($level) {
case self::DEBUG:
$fb->trace($message, $level);
break;
case self::INFO:
$fb->log($message, $level);
break;
case self::SQL:
$fb->info($message, $level);
break;
case self::NOTICE:
case self::WARN:
$fb->warn($message, $level);
break;
default:
$fb->error($message, $level);
break;
}
}
}
}
开发者ID:torry999,项目名称:lingshi,代码行数:44,代码来源:Log.class.php
示例11: fb_exit
function fb_exit()
{
global $wp_version, $wp_roles, $wp_constants, $wp_globals_a_l, $wp_globals_m_r, $wp_globals_s_v, $wp_globals_w, $data, $update_options;
if (!class_exists('FB')) {
require_once 'FirePHPCore/fb.php';
}
$firephp = FirePHP::getInstance(TRUE);
$wp_constants = array('ABSPATH' => ABSPATH, 'ADMIN_COOKIE_PATH' => ADMIN_COOKIE_PATH, 'APP_REQUEST' => APP_REQUEST, 'ARRAY_A' => ARRAY_A, 'ARRAY_N' => ARRAY_N, 'ATOM' => ATOM, 'AUTH_COOKIE' => AUTH_COOKIE, 'AUTH_KEY' => AUTH_KEY, 'AUTOSAVE_INTERVAL' => AUTOSAVE_INTERVAL, 'COMMENTS_TEMPLATE' => COMMENTS_TEMPLATE, 'COOKIEHASH' => COOKIEHASH, 'COOKIEPATH' => COOKIEPATH, 'COOKIE_DOMAIN' => COOKIE_DOMAIN, 'CRLF' => CRLF, 'CUSTOM_TAGS' => CUSTOM_TAGS, 'DB_CHARSET' => DB_CHARSET, 'DB_COLLATE' => DB_COLLATE, 'DB_HOST' => DB_HOST, 'DB_NAME' => DB_NAME, 'DB_PASSW' => DB_PASSW, 'DB_PASSWORD' => DB_PASSWORD, 'DB_USER' => DB_USER, 'DOING_AJAX' => DOING_AJAX, 'DOING_AUTOSAVE' => DOING_AUTOSAVE, 'DOING_CRON' => DOING_CRON, 'EP_ALL' => EP_ALL, 'EP_ATTACHMENT' => EP_ATTACHMENT, 'EP_AUTHORS' => EP_AUTHORS, 'EP_CATEGORIES' => EP_CATEGORIES, 'EP_COMMENTS' => EP_COMMENTS, 'EP_DATE' => EP_DATE, 'EP_DAY' => EP_DAY, 'EP_MONTH' => EP_MONTH, 'EP_NONE' => EP_NONE, 'EP_PAGES' => EP_PAGES, 'EP_PERMALINK' => EP_PERMALINK, 'EP_ROOT' => EP_ROOT, 'EP_SEARCH' => EP_SEARCH, 'EP_TAGS' => EP_TAGS, 'EP_YEAR' => EP_YEAR, 'EZSQL_VERSION' => EZSQL_VERSION, 'FORCE_SSL_ADMIN' => FORCE_SSL_ADMIN, 'FORCE_SSL_LOGIN' => FORCE_SSL_LOGIN, 'FTP_ASCII' => FTP_ASCII, 'FTP_AUTOASCII' => FTP_AUTOASCII, 'FTP_BINARY' => FTP_BINARY, 'FTP_FORCE' => FTP_FORCE, 'IS_PROFILE_PAGE' => IS_PROFILE_PAGE, 'JSON_BOOL' => JSON_BOOL, 'JSON_END_ARRAY' => JSON_END_ARRAY, 'JSON_END_OBJ' => JSON_END_OBJ, 'JSON_FLOAT' => JSON_FLOAT, 'JSON_INT' => JSON_INT, 'JSON_IN_ARRAY' => JSON_IN_ARRAY, 'JSON_IN_BETWEEN' => JSON_IN_BETWEEN, 'JSON_IN_OBJECT' => JSON_IN_OBJECT, 'JSON_KEY' => JSON_KEY, 'JSON_NULL' => JSON_NULL, 'JSON_SKIP' => JSON_SKIP, 'JSON_START_ARRAY' => JSON_START_ARRAY, 'JSON_START_OBJ' => JSON_START_OBJ, 'JSON_STR' => JSON_STR, 'LANGDIR' => LANGDIR, 'LOGGED_IN_COOKIE' => LOGGED_IN_COOKIE, 'LOGGED_IN_KEY' => LOGGED_IN_KEY, 'MAGPIE_CACHE_AGE' => MAGPIE_CACHE_AGE, 'MAGPIE_CACHE_DIR' => MAGPIE_CACHE_DIR, 'MAGPIE_CACHE_FRESH_ONLY' => MAGPIE_CACHE_FRESH_ONLY, 'MAGPIE_CACHE_ON' => MAGPIE_CACHE_ON, 'MAGPIE_DEBUG' => MAGPIE_DEBUG, 'MAGPIE_FETCH_TIME_OUT' => MAGPIE_FETCH_TIME_OUT, 'MAGPIE_INITALIZED' => MAGPIE_INITALIZED, 'MAGPIE_USER_AGENT' => MAGPIE_USER_AGENT, 'MAGPIE_USE_GZIP' => MAGPIE_USE_GZIP, 'MAX_EXECUTION_TIME' => MAX_EXECUTION_TIME, 'MAX_RESULTS' => MAX_RESULTS, 'MC_LOGGER_DEBUG' => MC_LOGGER_DEBUG, 'MC_LOGGER_ERROR' => MC_LOGGER_ERROR, 'MC_LOGGER_FATAL' => MC_LOGGER_FATAL, 'MC_LOGGER_INFO' => MC_LOGGER_INFO, 'MC_LOGGER_WARN' => MC_LOGGER_WARN, 'OBJECT' => OBJECT, 'OBJECT_K' => OBJECT_K, 'PASS_COOKIE' => PASS_COOKIE, 'PCLZIP_ATT_FILE_NAME' => PCLZIP_ATT_FILE_NAME, 'PCLZIP_ATT_FILE_NEW_FULL_NAME' => PCLZIP_ATT_FILE_NEW_FULL_NAME, 'PCLZIP_ATT_FILE_NEW_SHORT_NAME' => PCLZIP_ATT_FILE_NEW_SHORT_NAME, 'PCLZIP_CB_POST_ADD' => PCLZIP_CB_POST_ADD, 'PCLZIP_CB_POST_DELETE' => PCLZIP_CB_POST_DELETE, 'PCLZIP_CB_POST_EXTRACT' => PCLZIP_CB_POST_EXTRACT, 'PCLZIP_CB_POST_LIST' => PCLZIP_CB_POST_LIST, 'PCLZIP_CB_PRE_ADD' => PCLZIP_CB_PRE_ADD, 'PCLZIP_CB_PRE_DELETE' => PCLZIP_CB_PRE_DELETE, 'PCLZIP_CB_PRE_EXTRACT' => PCLZIP_CB_PRE_EXTRACT, 'PCLZIP_CB_PRE_LIST' => PCLZIP_CB_PRE_LIST, 'PCLZIP_ERROR_EXTERNAL' => PCLZIP_ERROR_EXTERNAL, 'PCLZIP_ERR_ALREADY_A_DIRECTORY' => PCLZIP_ERR_ALREADY_A_DIRECTORY, 'PCLZIP_ERR_BAD_CHECKSUM' => PCLZIP_ERR_BAD_CHECKSUM, 'PCLZIP_ERR_BAD_EXTENSION' => PCLZIP_ERR_BAD_EXTENSION, 'PCLZIP_ERR_BAD_EXTRACTED_FILE' => PCLZIP_ERR_BAD_EXTRACTED_FILE, 'PCLZIP_ERR_BAD_FORMAT' => PCLZIP_ERR_BAD_FORMAT, 'PCLZIP_ERR_DELETE_FILE_FAIL' => PCLZIP_ERR_DELETE_FILE_FAIL, 'PCLZIP_ERR_DIRECTORY_RESTRICTION' => PCLZIP_ERR_DIRECTORY_RESTRICTION, 'PCLZIP_ERR_DIR_CREATE_FAIL' => PCLZIP_ERR_DIR_CREATE_FAIL, 'PCLZIP_ERR_FILENAME_TOO_LONG' => PCLZIP_ERR_FILENAME_TOO_LONG, 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP' => PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE' => PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, 'PCLZIP_ERR_INVALID_OPTION_VALUE' => PCLZIP_ERR_INVALID_OPTION_VALUE, 'PCLZIP_ERR_INVALID_PARAMETER' => PCLZIP_ERR_INVALID_PARAMETER, 'PCLZIP_ERR_INVALID_ZIP' => PCLZIP_ERR_INVALID_ZIP, 'PCLZIP_ERR_MISSING_FILE' => PCLZIP_ERR_MISSING_FILE, 'PCLZIP_ERR_MISSING_OPTION_VALUE' => PCLZIP_ERR_MISSING_OPTION_VALUE, 'PCLZIP_ERR_NO_ERROR' => PCLZIP_ERR_NO_ERROR, 'PCLZIP_ERR_READ_OPEN_FAIL' => PCLZIP_ERR_READ_OPEN_FAIL, 'PCLZIP_ERR_RENAME_FILE_FAIL' => PCLZIP_ERR_RENAME_FILE_FAIL, 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION' => PCLZIP_ERR_UNSUPPORTED_COMPRESSION, 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION' => PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'PCLZIP_ERR_USER_ABORTED' => PCLZIP_ERR_USER_ABORTED, 'PCLZIP_ERR_WRITE_OPEN_FAIL' => PCLZIP_ERR_WRITE_OPEN_FAIL, 'PCLZIP_OPT_ADD_COMMENT' => PCLZIP_OPT_ADD_COMMENT, 'PCLZIP_OPT_ADD_PATH' => PCLZIP_OPT_ADD_PATH, 'PCLZIP_OPT_BY_EREG' => PCLZIP_OPT_BY_EREG, 'PCLZIP_OPT_BY_INDEX' => PCLZIP_OPT_BY_INDEX, 'PCLZIP_OPT_BY_NAME' => PCLZIP_OPT_BY_NAME, 'PCLZIP_OPT_BY_PREG' => PCLZIP_OPT_BY_PREG, 'PCLZIP_OPT_COMMENT' => PCLZIP_OPT_COMMENT, 'PCLZIP_OPT_EXTRACT_AS_STRING' => PCLZIP_OPT_EXTRACT_AS_STRING, 'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION' => PCLZIP_OPT_EXTRACT_DIR_RESTRICTION, 'PCLZIP_OPT_EXTRACT_IN_OUTPUT' => PCLZIP_OPT_EXTRACT_IN_OUTPUT, 'PCLZIP_OPT_NO_COMPRESSION' => PCLZIP_OPT_NO_COMPRESSION, 'PCLZIP_OPT_PATH' => PCLZIP_OPT_PATH, 'PCLZIP_OPT_PREPEND_COMMENT' => PCLZIP_OPT_PREPEND_COMMENT, 'PCLZIP_OPT_REMOVE_ALL_PATH' => PCLZIP_OPT_REMOVE_ALL_PATH, 'PCLZIP_OPT_REMOVE_PATH' => PCLZIP_OPT_REMOVE_PATH, 'PCLZIP_OPT_REPLACE_NEWER' => PCLZIP_OPT_REPLACE_NEWER, 'PCLZIP_OPT_SET_CHMOD' => PCLZIP_OPT_SET_CHMOD, 'PCLZIP_OPT_STOP_ON_ERROR' => PCLZIP_OPT_STOP_ON_ERROR, 'PCLZIP_READ_BLOCK_SIZE' => PCLZIP_READ_BLOCK_SIZE, 'PCLZIP_SEPARATOR' => PCLZIP_SEPARATOR, 'PCLZIP_TEMPORARY_DIR' => PCLZIP_TEMPORARY_DIR, 'PLUGINDIR' => PLUGINDIR, 'PLUGINS_COOKIE_PATH' => PLUGINS_COOKIE_PATH, 'RSS' => RSS, 'SECURE_AUTH_COOKIE' => SECURE_AUTH_COOKIE, 'SECURE_AUTH_KEY' => SECURE_AUTH_KEY, 'SITECOOKIEPATH' => SITECOOKIEPATH, 'STATUS_INTERVAL' => STATUS_INTERVAL, 'STYLESHEETPATH' => STYLESHEETPATH, 'TEMPLATEPATH' => TEMPLATEPATH, 'TEST_COOKIE' => TEST_COOKIE, 'USER_COOKIE' => USER_COOKIE, 'WPINC' => WPINC, 'WPLANG' => WPLANG, 'WP_ADMIN' => WP_ADMIN, 'WP_CONTENT_DIR' => WP_CONTENT_DIR, 'WP_CONTENT_URL' => WP_CONTENT_URL, 'WP_IMPORTING' => WP_IMPORTING, 'WP_INSTALLING' => WP_INSTALLING, 'WP_LANG_DIR' => WP_LANG_DIR, 'WP_MEMORY_LIMIT' => WP_MEMORY_LIMIT, 'WP_PLUGIN_DIR' => WP_PLUGIN_DIR, 'WP_PLUGIN_URL' => WP_PLUGIN_URL, 'WP_USE_THEMES' => WP_USE_THEMES, 'WXR_VERSION' => WXR_VERSION, 'XMLRPC_REQUEST' => XMLRPC_REQUEST);
$wp_globals_a_l = array('$admin_page_hooks' => $admin_page_hooks, '$ajax_results' => $ajax_results, '$all_links' => $all_links, '$allowedposttags' => $allowedposttags, '$allowedtags' => $allowedtags, '$authordata' => $authordata, '$bgcolor' => $bgcolor, '$cache_categories' => $cache_categories, '$cache_lastcommentmodified' => $cache_lastcommentmodified, '$cache_lastpostdate' => $cache_lastpostdate, '$cache_lastpostmodified' => $cache_lastpostmodified, '$cache_userdata' => $cache_userdata, '$category_cache' => $category_cache, '$class' => $class, '$comment' => $comment, '$comment_cache' => $comment_cache, '$comment_count_cache' => $comment_count_cache, '$commentdata' => $commentdata, '$current_user' => $current_user, '$day' => $day, '$debug' => $debug, '$descriptions' => $descriptions, '$error' => $error, '$feeds' => $feeds, '$id' => $id, '$is_apache' => $is_apache, '$is_IIS' => $is_IIS, '$is_macIE' => $is_macIE, '$is_winIE' => $is_winIE, '$l10n' => $l10n, '$locale' => $locale, '$link' => $link);
$wp_globals_m_r = array('$m' => $m, '$map' => $map, '$max_num_pages' => $max_num_pages, '$menu' => $menu, '$mode' => $mode, '$month' => $month, '$month_abbrev' => $month_abbrev, '$monthnum' => $monthnum, '$more' => $more, '$multipage' => $multipage, '$names' => $names, '$newday' => $newday, '$numpages' => $numpages, '$page' => $page, '$page_cache' => $page_cache, '$paged' => $paged, '$pagenow' => $pagenow, '$pages' => $pages, '$parent_file' => $parent_file, '$preview' => $preview, '$previousday' => $previousday, '$previousweekday' => $previousweekday, '$plugin_page' => $plugin_page, '$post' => $post, '$post_cache' => $post_cache, '$post_default_category' => $post_default_category, '$post_default_title' => $post_default_title, '$post_meta_cache' => $post_meta_cache, '$postc' => $postc, '$postdata' => $postdata, '$posts' => $posts, '$posts_per_page' => $posts_per_page, '$previousday' => $previousday, '$request' => $request, '$result' => $result, '$richedit' => $richedit);
$wp_globals_s_v = array('$single' => $single, '$submenu' => $submenu, '$table_prefix' => $table_prefix, '$targets' => $targets, '$timedifference' => $timedifference, '$timestart' => $timestart, '$timeend' => $timeend, '$updated_timestamp' => $updated_timestamp, '$urls' => $urls, '$user_ID' => $user_ID, '$user_email' => $user_email, '$user_identity' => $user_identity, '$user_level' => $user_level, '$user_login' => $user_login, '$user_pass_md5' => $user_pass_md5, '$user_url' => $user_url);
$wp_globals_w = array('$weekday' => $weekday, '$weekday_abbrev' => $weekday_abbrev, '$weekday_initial' => $weekday_initial, '$withcomments' => $withcomments, '$wp' => $wp, '$wp_broken_themes' => $wp_broken_themes, '$wp_db_version' => $wp_db_version, '$wp_did_header' => $wp_did_header, '$wp_did_template_redirect' => $wp_did_template_redirect, '$wp_file_description' => $wp_file_description, '$wp_filter' => $wp_filter, '$wp_importers' => $wp_importers, '$wp_plugins' => $wp_plugins, '$wp_themes' => $wp_themes, '$wp_object_cache' => $wp_object_cache, '$wp_query' => $wp_query, '$wp_queries' => $wp_queries, '$wp_rewrite' => $wp_rewrite, '$wp_roles' => $wp_roles, '$wp_similiesreplace' => $wp_similiesreplace, '$wp_smiliessearch' => $wp_smiliessearch, '$wp_version' => $wp_version, '$wpcommentspopupfile' => $wpcommentspopupfile, '$wpcommentsjavascript' => $wpcommentsjavascript);
FB::info($wp_version, 'WP Version');
// FB::info($wp_roles, 'WP Roles');
// FB::info($wp_constants, 'WP Constant');
// FB::info($wp_globals_a_l, 'WP Globals A-L');
// FB::info($wp_globals_m_r, 'WP Globals M-R');
// FB::info($wp_globals_s_v, 'WP Globals S-V');
// FB::info($wp_globals_w, 'WP Globals W');
// FB::info($data, 'WP DATA');
// FB::info($update_options, 'Update Array');
//PHP Predefined Variables
FB::info($_COOKIE, '_COOKIE');
FB::info($_ENV, '_ENV');
FB::info($_FILES, '_FILES');
FB::info($_GET, '_GET');
FB::info($PHP_SELF, '_PHP_SELF');
FB::info($_POST, '_POST');
FB::info($_REQUEST, '_REQUEST');
FB::info($_SERVER, '_SERVER');
FB::info($_SESSION, '_SESSION');
}
开发者ID:proj-2014,项目名称:vlan247-test-wp2,代码行数:32,代码来源:wp-firephp.php
示例12: i
/**
* Psuedo construct static class that interfaces with FirePHP getInstance
*
* @return object
*/
public static function i()
{
static $instance;
// Create the instance if it does not exist, initialize self::init()
empty($instance) and $instance = FirePHP::getInstance(TRUE);
return $instance;
}
开发者ID:googlecode-mirror,项目名称:s7ncms,代码行数:12,代码来源:FP.php
示例13: __construct
function __construct()
{
if (_DEBUG == '1') {
ob_start();
$this->firephp = FirePHP::getInstance(true);
}
}
开发者ID:apocoder,项目名称:ExtDesk,代码行数:7,代码来源:class.debug.php
示例14: instantiateFirePHP
/**
* returns an instance / singleton
*
* @return an instance of the logger
*/
public static function instantiateFirePHP()
{
if (self::$firephp == 0) {
self::$firephp = FirePHP::getInstance(true);
}
return self::$firephp;
}
开发者ID:Clansuite,项目名称:Clansuite,代码行数:12,代码来源:Firebug.php
示例15: onInitializePlugin
function onInitializePlugin()
{
//Output buffering has to be enabled so FirePHP can send the HTTP headers it needs
ob_start();
require_once 'FirePHPCore/FirePHP.class.php';
$this->firephp = FirePHP::getInstance(true);
}
开发者ID:Br3nda,项目名称:StatusNet,代码行数:7,代码来源:FirePHPPlugin.php
示例16: initFirePHP
public function initFirePHP()
{
// 开启FirePHP调试或者关闭
$options = array('maxObjectDepth' => 10, 'maxArrayDepth' => 10, 'maxDepth' => 10, 'useNativeJsonEncode' => true, 'includeLineNumbers' => true);
\FirePHP::getInstance(true)->setEnabled(true);
\FB::setOptions($options);
}
开发者ID:im286er,项目名称:ent,代码行数:7,代码来源:Module.php
示例17: testConnect
public function testConnect()
{
$console = FirePHP::to('process')->console();
$console->label('Label 1')->log('Hello World 1');
$console->expand()->label('Label 2')->log('Hello World 2');
$console->show();
}
开发者ID:janym,项目名称:angular-yii,代码行数:7,代码来源:InitTest.php
示例18: doLog
/**
* process log & send as FirePHP table.
*/
public static function doLog()
{
$firephp = FirePHP::getInstance(true);
$registered_eps = $log_table = [];
$counter = ['ep' => 0, 'ext' => 0];
$log_table[] = ['Type', 'ExtensionPoint', 'Callable', 'Start / Dur.', 'Memory', 'subject', 'params', 'result'];
foreach (self::$log as $count => $entry) {
switch ($entry['type']) {
case 'EP':
$counter['ep']++;
$registered_eps[] = $entry['ep'];
$log_table[] = [$entry['type'], $entry['ep'] . ($entry['read_only'] ? ' (readonly)' : ''), '–', $entry['started'] . '/ ' . $entry['duration'] . 'ms', $entry['memory'], $entry['subject'], $entry['params'], $entry['result']];
break;
case 'EXT':
$counter['ext']++;
if (in_array($entry['ep'], $registered_eps)) {
$firephp->error('EP Timing: Extension "' . $entry['callable'] . '" registered after ExtensionPoint "' . $entry['ep'] . '" !');
}
$log_table[] = [$entry['type'], $entry['ep'], $entry['callable'], '–', '–', '–', $entry['params'], '-'];
break;
default:
throw new rex_exception('unexpexted type ' . $entry['type']);
}
}
$firephp->table('EP Log ( EPs: ' . $counter['ep'] . ', Extensions: ' . $counter['ext'] . ' )', $log_table);
}
开发者ID:staabm,项目名称:redaxo,代码行数:29,代码来源:extension_debug.php
示例19: fb
function fb()
{
$instance = FirePHP::getInstance(true);
$args = func_get_args();
return call_user_func_array(array($instance, 'fb'), $args);
return true;
}
开发者ID:veritech,项目名称:FreeTheoryTest,代码行数:7,代码来源:bootstrap.php
示例20: firephp
public function firephp()
{
include_once CORE_PATH . DS . 'lib' . DS . 'firebug' . DS . 'FirePHP.class.php';
$instance = FirePHP::getInstance(true);
$args = func_get_args();
return call_user_func_array(array($instance, 'fb'), $args);
}
开发者ID:deanstalker,项目名称:phpVMS,代码行数:7,代码来源:CodonData.class.php
注:本文中的FirePHP类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论