Comments: on this page. Click to read or post your own.

Class DebugView

Description

A basic HTML wrapper for stylish rendering of a developement info view.

Used to output error messages, and test results.

Located in /sapphire/dev/DebugView.php (line 14)


	
			
Direct descendents
Class Description
CliDebugView A basic HTML wrapper for stylish rendering of a developement info view.
Variable Summary
static mixed $error_types
Method Summary
string Breadcrumbs ()
void writeError ( $httpRequest,  $errno,  $errstr,  $errfile,  $errline,  $errcontext)
void writeFooter ()
void writeHeader ()
void writeInfo (string $title,  $subtitle, [ $description = false])
void writeParagraph (string $text)
void writeSourceFragment ($lines $lines,  $errline)
void writeTrace ( $trace)
Variables
static mixed $error_types = array(
E_USER_ERROR => array(
'title' => 'User Error',
'class' => 'error'
),E_CORE_ERROR=>array('title'=>'Core Error','class'=>'error'),E_NOTICE=>array('title'=>'Notice','class'=>'notice'),E_CORE_ERROR=>array('title'=>'Core Error','class'=>'error'),E_WARNING=>array('title'=>'Warning','class'=>'warning'),E_CORE_WARNING=>array('title'=>'Core Warning','class'=>'warning'),E_USER_WARNING=>array('title'=>'Warning','class'=>'warning'))
(line 16)
  • access: protected
Methods
Breadcrumbs (line 52)

Generate breadcrumb links to the URL path being displayed

  • access: public
string Breadcrumbs ()
writeError (line 119)

Write information about the error to the screen

  • access: public
void writeError ( $httpRequest,  $errno,  $errstr,  $errfile,  $errline,  $errcontext)
  • $httpRequest
  • $errno
  • $errstr
  • $errfile
  • $errline
  • $errcontext

Redefined in descendants as:
writeFooter (line 112)

Render HTML footer for development views

  • access: public
void writeFooter ()

Redefined in descendants as:
writeHeader (line 71)

Render HTML header for development views

  • access: public
void writeHeader ()

Redefined in descendants as:
writeInfo (line 97)

Render the information header for the view

  • access: public
void writeInfo (string $title,  $subtitle, [ $description = false])
  • string $title
  • $subtitle
  • $description

Redefined in descendants as:
writeParagraph (line 158)
void writeParagraph (string $text)
  • string $text
writeSourceFragment (line 132)

Write a fragment of the a source file

void writeSourceFragment ($lines $lines,  $errline)
  • $lines $lines: An array of file lines; the keys should be the original line numbers
  • $errline

Redefined in descendants as:
writeTrace (line 149)

Write a backtrace

void writeTrace ( $trace)
  • $trace

Redefined in descendants as:
blog comments powered by Disqus

Documentation generated on Mon, 23 Mar 2009 06:49:05 +1300 by phpDocumentor 1.3.2