SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Debug

Useful methods for debugging

Functions

NameVisibilityDescription
prepublic (static)Wraps a value in tags and calls print_r to show all of its data.
tablepublic (static)Converts a DB result set or similar multi-dimensional array into HTML for a table
typepublic (static)Determines the type of a variable.

public pre

string Debug::pre ( mixed $val );

Wraps a value in
 tags and calls print_r to show all of its data.

N.B. Boolean and null values are displayed as strings instead of merely
returning an empty 
.

public table

string Debug::table ( array|PDOStatement $data );

Converts a DB result set or similar multi-dimensional array into HTML for a table

public type

string Debug::type ( mixed $val );

Determines the type of a variable.

For objects, the class name is returned. For other variable types,
the type and possibly some extra info about its value is returned.