PHP Class Jyxo\FirePhp

Author: Jaroslav HanslĂ­k
Datei anzeigen Open project: jyxo/php Class Usage Examples

Public Methods

Method Description
dump ( mixed $variable, string $label = '' ) : boolean Dumps a variable.
error ( string $message, string $label = '' ) : boolean Sends an error.
exception ( Exception $e ) : boolean Logs an exception.
info ( string $message, string $label = '' ) : boolean Sends an information message.
log ( mixed $message, string $label = '', string $type = self::LOG ) : boolean Sends a log message.
setEnabled ( boolean $flag = true ) Sets if logging id enabled.
table ( string $label, array $header, array $data, string $ident = '' ) : boolean Sends a table.
trace ( string $message, string $file, integer $line, array $trace ) : boolean Sends a trace.
warning ( string $message, string $label = '' ) : boolean Sends a warning.

Private Methods

Method Description
encodeVariable ( mixed $variable, integer $objectDepth = 1, integer $arrayDepth = 1, integer $totalDepth = 1 ) : mixed Encodes a variable.
isInstalled ( ) : boolean Checks if FirePHP extension is installed.
replaceVariable ( mixed $variable ) : mixed Replaces objects with appropriate names in variable.
send ( array $output, string $ident = '' ) : boolean Sends output.

Method Details

dump() public static method

Dumps a variable.
public static dump ( mixed $variable, string $label = '' ) : boolean
$variable mixed Variable
$label string Variable label
return boolean

error() public static method

Sends an error.
public static error ( string $message, string $label = '' ) : boolean
$message string Message text
$label string Message label
return boolean

exception() public static method

Logs an exception.
public static exception ( Exception $e ) : boolean
$e Exception Exception to log
return boolean First exception sending result

info() public static method

Sends an information message.
public static info ( string $message, string $label = '' ) : boolean
$message string Message text
$label string Message label
return boolean

log() public static method

Sends a log message.
public static log ( mixed $message, string $label = '', string $type = self::LOG ) : boolean
$message mixed Message text
$label string Message label
$type string Message type
return boolean

setEnabled() public static method

Sets if logging id enabled.
public static setEnabled ( boolean $flag = true )
$flag boolean Is logging enabled

table() public static method

Sends a table.
public static table ( string $label, array $header, array $data, string $ident = '' ) : boolean
$label string Message label
$header array Table header
$data array Table data
$ident string Unique identifier
return boolean

trace() public static method

Sends a trace.
public static trace ( string $message, string $file, integer $line, array $trace ) : boolean
$message string Message text
$file string File name
$line integer File line
$trace array Trace
return boolean

warning() public static method

Sends a warning.
public static warning ( string $message, string $label = '' ) : boolean
$message string Message text
$label string Message label
return boolean