當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FirePHP::plugin方法代碼示例

本文整理匯總了PHP中FirePHP::plugin方法的典型用法代碼示例。如果您正苦於以下問題:PHP FirePHP::plugin方法的具體用法?PHP FirePHP::plugin怎麽用?PHP FirePHP::plugin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FirePHP的用法示例。


在下文中一共展示了FirePHP::plugin方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __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

示例2: trapProblems

 public function trapProblems($console = false)
 {
     if (!$console) {
         $console = FirePHP::to('page')->console('Problems');
     }
     $engine = FirePHP::plugin('engine');
     $engine->onError($console);
     $engine->onAssertionError($console);
     $engine->onException($console);
 }
開發者ID:jerfowler,項目名稱:firephp-libs,代碼行數:10,代碼來源:FirePHP.php

示例3: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion and Firebug Console for result
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$firephp = FirePHP::plugin("firephp");
$firephp->declareP();
p('Hey there Firebug Console', 'Variable Label');
$firephp->declareP('Ad-hock', true);
p('Hey there Ad-hock Console', 'Variable Label');
$console = FirePHP::to('request')->console('Debug');
$firephp->declareP($console, true);
p('Hey there Debug Console', 'Variable Label');
開發者ID:janym,項目名稱:angular-yii,代碼行數:14,代碼來源:FirePHP-declareP.php

示例4: p

function p($data, $label = null)
{
    FirePHP::plugin("firephp")->p($data, $label);
}
開發者ID:janym,項目名稱:angular-yii,代碼行數:4,代碼來源:p.php

示例5: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
$console = $console->expand();
$engine = FirePHP::plugin('engine');
$engine->onException($console);
throw new Exception('Test Exception');
開發者ID:janym,項目名稱:angular-yii,代碼行數:18,代碼來源:Engine-OnException.php

示例6: define

    /*i*/
}
/*i*/
define('INSIGHT_IPS', '*');
/*i*/
define('INSIGHT_AUTHKEYS', '*');
/*i*/
define('INSIGHT_PATHS', dirname(__FILE__));
/*i*/
define('INSIGHT_SERVER_PATH', './index.php');
/*i*/
require_once 'FirePHP/Init.php';
/*i*/
FirePHP::plugin('firephp')->trapProblems();
/*i*/
FirePHP::plugin('firephp')->recordEnvironment(FirePHP::to('request')->console('Environment')->on('Show Environment'));
/*i*/
FirePHP::to('request')->console('Feed')->info('Startup');
// Application Code
require_once dirname(__FILE__) . '/feed.php';
$feed = new Feed('http://www.phpdeveloper.org/feed');
$items = $feed->getItems();
echo '<p><b>See:</b> <a target="_blank" href="http://www.christophdorn.com/Blog/2010/08/24/gain-insight-into-your-cache-interaction-with-firephp-companion/">http://www.christophdorn.com/Blog/2010/08/24/gain-insight-into-your-cache-interaction-with-firephp-companion/</a></p>' . "\n";
if ($feed->didLoad()) {
    echo '<p><b>Loading feed from: ' . $feed->getUrl() . '</b></p>' . "\n";
}
foreach ($items as $item) {
    echo '<p><a href="' . $item['link'] . '">' . $item['title'] . '</a></p>' . "\n";
}
/*i*/
FirePHP::to('request')->console('Feed')->info('Shutdown');
開發者ID:janym,項目名稱:angular-yii,代碼行數:31,代碼來源:index.php

示例7: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
$console = $console->expand();
$engine = FirePHP::plugin('engine');
$engine->onException($console);
try {
    throw new Exception('First Test Exception');
} catch (Exception $e) {
    $engine->handleException($e);
}
try {
    throw new Exception('Second Test Exception');
} catch (Exception $e) {
    FirePHP::plugin('engine')->handleException($e);
}
開發者ID:janym,項目名稱:angular-yii,代碼行數:27,代碼來源:Engine-HandleException.php

示例8: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
FirePHP::plugin("firephp")->trapProblems($console);
$var = false;
assert('$var===true');
trigger_error('Test Error');
throw new Exception("Test Exception");
開發者ID:janym,項目名稱:angular-yii,代碼行數:19,代碼來源:FirePHP-TrapProblems.php

示例9: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
FirePHP::plugin("firephp")->recordEnvironment($console);
開發者ID:janym,項目名稱:angular-yii,代碼行數:15,代碼來源:FirePHP-RecordEnvironment.php

示例10: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('FirePHP');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
FirePHP::plugin("firephp")->logVersion($console);
開發者ID:janym,項目名稱:angular-yii,代碼行數:15,代碼來源:FirePHP-LogVersion.php


注:本文中的FirePHP::plugin方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。