PHP Class Jyxo\FirePhp

Author: Jaroslav Hanslík
Afficher le fichier Open project: jyxo/php Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

error() public static méthode

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

exception() public static méthode

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

info() public static méthode

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

log() public static méthode

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
Résultat boolean

setEnabled() public static méthode

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

table() public static méthode

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
Résultat boolean

trace() public static méthode

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
Résultat boolean

warning() public static méthode

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