category OSS
package OSS_Debug
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Returns with a simplified, easier-to-read version of the result of debug_backtrace() as an associative array.

compact_debug_backtrace() : array
Static

Returns

array

This function will 'var_dump and die' - it will (if HTML) surround the output with <pre> tags.

dd(object $object, bool $html) : void
Static

The dump command is Zend_Debug::dump()

Parameters

$object

object

The variable / object to dump

$html

bool

If true (default) surround the output with

<

pre> tags

Returns with the inheritance tree of $pClassOrObject, which can be a class name or an object.

getInheritanceTree(string | object $classOrObject) : array | null
Static

It returns with a simple indexed array, where index 0 is the class of $pClassOrObject, and index N is the name of the class at the end of the whole inheritance tree. If $pClassOrObject is not a string or an object, then it returns with NULL.

Parameters

$classOrObject

stringobject

a string class name or an object

Returns

arraynull

Putting message to log file.

log($message) : array | null
Static

Parameters

$message

Returns

arraynull

This function will 'print_r() and die' - it will (if HTML) surround the output with <pre> tags.

pd(array $array, bool $html) : void
Static

Parameters

$array

array

The array to dump

$html

bool

If true (default) surround the output with

<

pre> tags

A wrapper and extension for print_r().

prr(mixed $data, mixed $var_name, boolean $return, boolean $addPre, boolean $addDollarSign) : void | string
Static

The output looks the same in the browser as the output of print_r() in the source, as it turns the pure text output of print_r() into HTML (XHTML).

Parameters

$data

mixed

the data to be printed or returned

$var_name

mixed

null if we don't want to display the variable name, otherwise the name of the variable

$return

boolean

default false; if true it returns with the result, if true then prints it

$addPre

boolean

default true adds the '

 ... 

' tags to the output, useful for HTML output

$addDollarSign

boolean

default true adds a $ sign to the $var_name if it is set to true

Returns

voidstring