SimpleDumper Class Reference

List of all members.


Public Member Functions

 describeValue ($value)
 getType ($value)
 clipString ($value, $size, $position=0)


Detailed Description

Displays variables as text and does diffs.

Definition at line 7 of file dumper.php.


Member Function Documentation

SimpleDumper::describeValue ( value  ) 

Renders a variable in a shorter form than print_r().

Parameters:
mixed $value Variable to render as a string.
Returns:
string Human readable string form. public

Definition at line 16 of file dumper.php.

References $type, $value, clipString(), and getType().

Here is the call graph for this function:

SimpleDumper::getType ( value  ) 

Gets the string representation of a type.

Parameters:
mixed $value Variable to check against.
Returns:
string Type. public

Definition at line 45 of file dumper.php.

References $value.

Referenced by describeValue().

SimpleDumper::clipString ( value,
size,
position = 0 
)

Clips a string to a maximum length.

Parameters:
string $value String to truncate.
integer $size Minimum string size to show.
integer $position Centre of string section.
Returns:
string Shortened version. public

Definition at line 67 of file dumper.php.

References $value.

Referenced by describeValue().


The documentation for this class was generated from the following file:

Generated on Mon Jun 2 15:09:11 2008 for SimpleTest by  1.5.5