Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (33 sloc) 894 Bytes
* Wrapper for FirePHP class in case you have problems with headers sent (usually a problem with some NginX and Varnish setups
class FirePHP {
public $buffer;
protected static $instance = null;
public function log($txt){
$this->buffer .= $txt . "\n";
public function table($txt, $data){
$this->log(var_export($data, 1));
public function group($txt, $options){
public function groupEnd(){
public static function getInstance($AutoCreate = false){
if ($AutoCreate===true && !self::$instance) {
return self::$instance;
public static function init(){
return self::setInstance(new self());
public static function setInstance($instance){
return self::$instance = $instance;