Class SimpleDumper

Description

Displays variables as text and does diffs.

Located in /dumper.php (line 20)


	
			
Method Summary
 static string dump (mixed $variable)
 string clipString (string $value, integer $size, [integer $position = 0])
 string describeDifference (mixed $first, mixed $second, [boolean $identical = false])
 string describeValue (mixed $value)
 string getType (mixed $value)
Methods
static dump (line 352)

Sends a formatted dump of a variable to a string.

  • return: Output from print_r().
  • access: public
static string dump (mixed $variable)
  • mixed $variable: Variable to display.
clipString (line 118)

Clips a string to a maximum length.

  • return: Shortened version.
  • access: public
string clipString (string $value, integer $size, integer $position)
  • string $value: String to truncate.
  • integer $size: Minimum string size to show.
  • integer $position: Centre of string section.
describeDifference (line 84)

Creates a human readable description of the difference between two variables. Uses a dynamic call.

  • return: Description of difference.
  • access: public
string describeDifference (mixed $first, mixed $second, [boolean $identical = false])
  • mixed $first: First variable.
  • mixed $second: Value to compare with.
  • boolean $identical: If true then type anomolies count.
describeValue (line 28)

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

  • return: Human readable string form.
  • access: public
string describeValue (mixed $value)
  • mixed $value: Variable to render as a string.
getType (line 53)

Gets the string representation of a type.

  • return: Type.
  • access: public
string getType (mixed $value)
  • mixed $value: Variable to check against.

Documentation generated on Sun, 04 May 2008 09:21:28 -0500 by phpDocumentor 1.3.0