A class designed to help developers impliment a debug console like to the one in Ditto 2
| MODx Debug Console | A class designed to help developers impliment a debug console like to the one in Ditto 2 |
| Functions | |
| render | Render the contents of the debug console |
| save | Save the debug console as a file |
| makelink | Render the links to the debug console |
| buildURL | Build a URL with regard to a prefix |
| makeTab | Render a tab |
| makeMODxSafe | Make all MODx tags safe for the output |
| makeParamTable | Turn an array of parameters in the format [“param”] => “value” into a table |
| cleanArray | Remove empty items from the array |
| array2table | Translate a result array into a HTML table |
function makeParamTable( $parameters = array(), $header = "", $sort = true, $prep = true, $wordwrap = true )
Turn an array of parameters in the format [“param”] => “value” into a table
function array2table( $array, $recursive = false, $return = false, $null = ' ' )
Translate a result array into a HTML table
Author: Aidan Lister aidan@php.net
Version: 1.3.1
Link: http://aidanlister.com- /repos- /v- /function.array2table.php
Render the contents of the debug console
function render( $cTabs, $title, $base_path )
Save the debug console as a file
function save( $html, $filename )
Build a URL with regard to a prefix
function buildURL( $args, $id = false, $prefix = "" )
Render a tab
function makeTab( $title, $content )
Make all MODx tags safe for the output
function makeMODxSafe( $value )
Turn an array of parameters in the format [“param”] => “value” into a table
function makeParamTable( $parameters = array(), $header = "", $sort = true, $prep = true, $wordwrap = true )
Remove empty items from the array
function cleanArray( $array )
Translate a result array into a HTML table
function array2table( $array, $recursive = false, $return = false, $null = ' ' )