Class information dump.php Mon 23 Nov 09 at 19:44
Key to link symbols Top of page Source file blurb Class Property or Method
Member visibility Public Protected Private Static
Other symbols Overriden method Abstract class/method Hook (Search for 'Hookup points')


19 dump.php
Static class used to display and trace variables
Cheat sheet is returned by dump::Help()
$arrayLengthLimit 0 cut off arrays after this number of elements being shown (0=infinite)
$classBlock '' names of any classes to be prevented from expanding. Split with commas
$cssPrinted false have we printed the css yet
$keyBlock '' names of any properties/array keys to be prevented from expanding. Split with commas
$maxDumpStrLen 35 strings are truncated to this length
$maxNestingLevel 20 maximum amount of recursive nesting (1-30)
$nestingLevel 0 current depth of nesting
$outputBuffer array() buffer
$stackArgumentDetail 2 how far to go into nesting for stack arguments (1-20)
94 dump
Add an item to the trace buffer
374 dump
A linear (vertical) representation of an array
Mode : -2 = Prevent two dimensional table mode
-1 = Properties
0 = Normal array
n = Max number of elements to show
If the array looks like a two dimensional array then it will normally
be passed to ArrayAsTable() for tabular formatting.
If the array appears to consist of objects then these normally
be passed to ObjArrayAsTable() for special formatting
426 dump
This is a more compact method of displaying arrays of arrays and
arrays of objects. With arrays of arrays the column headings are
taken from the keys of the first row. With objects the columns
are used to show properties. If there are a micture of classes
in the array then at each change the new properties will be
listed as headings
271 dump
()Returns css used for dumping data values
57 dump
Clears the trace buffer
Normally call without any arguments
Doesn't call Reset() q.v.
See Trace() for Label and Condition arguments
Returns informative message
104 dump
()Look at the top of the call stack to see where we are in the code
Returns string
515 dump
()look at the calling stack and return an array of
calling locations and function arguments
536 dump
()Print brief help.
172 dump
$ClassNamesPrevents named classes being expanded
ClassNames is a string with names of classes separated by commas ('foo,bar,baz' etc)
180 dump
$KeysPrevents named properties or array keys being expanded
Keys is a string with names of properties/keys separated by commas ('foo,bar,baz' etc)
249 dump
$ValueReturn true if the value looks like an array of objects
The objects do not have to be the same class
The array may contain nulls
229 dump
$ValueReturn true if the value looks like a two dimensional array
The array may contain nulls
500 dump
$ValueValue should be an array of objects
To get here we'll already know its a genuine array
360 dump
$Valuereturn html description of the object
118 dump
Send the trace buffer to screen or file
Returns a null string if going to screen or a nice message
telling the name of the file the output has been written to.
42 dump
()Clears class and key blocks
Resets all defaults
Does not clear trace buffer with Clear()
327 dump
$Valuestring, number, boolean, special string 'STACK'
221 dump
$LengthControls the maximum number of elements to be dumped from an array
Set to 0 for no limit. Default is 0.
188 dump
$MaxDepthThis controls the maximum amount of detail within detail
that will be shown. Possible values 1 to 30.
The default is 20;
201 dump
$MaxLengthLong strings are truncated to about this length.
Minimum value 5, Default 35
209 dump
$DetailDepthControls the amount of detail shown for function arguments
when looking at the stack. 1 to 20, default 2.
75 dump
Main call for producing a screen-displayable version of any variable
and putting it into the trace buffer. (For immediate display see Value())
Label is an optional comment
Condition is a value (or expression) which controls
conditional execution. If it evaluates to 'true' along
normal PHP lines then the trace is performed.
158 dump
Returns a tidy representation of the value in HTML
ArrayLimit truncates long arrays if greater than 0
299 dump
Return whatever value is as formatted html
ArrayLimit will truncate arrays if more than 0

Source files

dump.php dump
     String representation of objects, arrays etc. for debugging
     Trace buffering etc.

      Immediate value print  dump::Value($aValue)
      Put something in trace buffer  dump::Trace($aValue,'a comment',$aConditional)
      Show trace buffer on screen dump::Trace('DUMP');
      Write trace buffer to a file dump::Trace('aFileName.htm');

      Call dump::Help() for basic instructions
      All calls are made statically ie.  dump::SomeFunction()