panels[$id]));}$this->panels[$id]=$panel;return$this;}public
function
getPanel($id){return
isset($this->panels[$id])?$this->panels[$id]:NULL;}public
function
render(){$obLevel=ob_get_level();$panels=array();foreach($this->panels
as$id=>$panel){try{$panels[]=array('id'=>preg_replace('#[^a-z0-9]+#i','-',$id),'tab'=>$tab=(string)$panel->getTab(),'panel'=>$tab?(string)$panel->getPanel():NULL);}catch(Exception$e){$panels[]=array('id'=>"error-".preg_replace('#[^a-z0-9]+#i','-',$id),'tab'=>"Error in $id",'panel'=>'
Error: '.$id.'
'.nl2br(htmlSpecialChars($e)).'
');while(ob_get_level()>$obLevel){ob_end_clean();}}}@session_start();$session=&$_SESSION['__NF']['debuggerbar'];if(preg_match('#^Location:#im',implode("\n",headers_list()))){$session[]=$panels;return;}foreach(array_reverse((array)$session)as$reqId=>$oldpanels){$panels[]=array('tab'=>'previous','panel'=>NULL,'previous'=>TRUE);foreach($oldpanels
as$panel){$panel['id'].='-'.$reqId;$panels[]=$panel;}}$session=NULL;?>
$panel):if(!$panel['panel'])continue;?>
- "> Nette Framework
';?>
- ',trim($panel['tab']),'';endif?>
- ×
panels,TRUE)){$this->panels[]=$panel;}return$this;}public
function
render(Exception$exception){$panels=$this->panels;static$errorTypes=array(E_ERROR=>'Fatal Error',E_USER_ERROR=>'User Error',E_RECOVERABLE_ERROR=>'Recoverable Error',E_CORE_ERROR=>'Core Error',E_COMPILE_ERROR=>'Compile Error',E_PARSE=>'Parse Error',E_WARNING=>'Warning',E_CORE_WARNING=>'Core Warning',E_COMPILE_WARNING=>'Compile Warning',E_USER_WARNING=>'User Warning',E_NOTICE=>'Notice',E_USER_NOTICE=>'User Notice',E_STRICT=>'Strict');if(PHP_VERSION_ID>=50300){$errorTypes+=array(E_DEPRECATED=>'Deprecated',E_USER_WARNING=>'User Deprecated');}$title=($exception
instanceof
FatalErrorException&&isset($errorTypes[$exception->getSeverity()]))?$errorTypes[$exception->getSeverity()]:get_class($exception);$counter=0;?>
getCode()?' #'.$ex->getCode():''))?>
getMessage())?>
getTrace();$expanded=NULL?>
isCollapsed($ex->getFile())){foreach($stack
as$key=>$row){if(isset($row['file'])&&!$this->isCollapsed($row['file'])){$expanded=$key;break;}}}?>
File: getFile(),$ex->getLine())?>
getFile())):?>getFile(),$ex->getLine(),15,isset($ex->context)?$ex->context:NULL)?>
context)&&is_array($ex->context)):?>
context
as$k=>$v){echo'$',htmlspecialchars($k),' | ',NDebugDumper::toHtml($v)," |
\n";}?>
getPrevious())||(isset($ex->previous)&&$ex=$ex->previous));?>
'?>
$v)echo'',htmlspecialchars($k),' | ',NDebugDumper::toHtml($v)," |
\n";?>
empty
$v)echo'',htmlspecialchars($k),' | ',$k==='__NF'?'Nette Session':NDebugDumper::toHtml($v)," |
\n";?>
$v)echo'',htmlspecialchars($k),' | ',NDebugDumper::toHtml($v)," |
\n";?>
$v){echo'',htmlspecialchars($k),' | ';echo'',NDebugDumper::toHtml($v)," |
\n";}?>
',htmlspecialchars($v)," | \n";}?>
|.+\z#s','',ob_get_clean())?>
Headers
$v)echo'',htmlspecialchars($k),' | ',htmlspecialchars($v)," |
\n";?>
$
empty
$v)echo'',htmlspecialchars($k),' | ',NDebugDumper::toHtml($v)," |
\n";?>
- Report generated at
- PHP
- (revision )