|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| describeValue ($value) | |
| getType ($value) | |
| describeDifference ($first, $second, $identical=false) | |
| _isTypeMatch ($first, $second) | |
| clipString ($value, $size, $position=0) | |
| _describeGenericDifference ($first, $second) | |
| _describeNullDifference ($first, $second, $identical) | |
| _describeBooleanDifference ($first, $second, $identical) | |
| _describeStringDifference ($first, $second, $identical) | |
| _describeIntegerDifference ($first, $second, $identical) | |
| _describeFloatDifference ($first, $second, $identical) | |
| _describeArrayDifference ($first, $second, $identical) | |
| _isMatchingKeys ($first, $second, $identical) | |
| _describeResourceDifference ($first, $second, $identical) | |
| _describeObjectDifference ($first, $second, $identical) | |
| _stringDiffersAt ($first, $second) | |
Static Public Member Functions | |
| dump ($variable) | |
Definition at line 20 of file dumper.php.
| _describeArrayDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between two arrays.
| array | $first | First array. |
| mixed | $second | Array to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 241 of file dumper.php.


| _describeBooleanDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between a boolean and another variable.
| boolean | $first | First boolean. |
| mixed | $second | Boolean to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 169 of file dumper.php.

| _describeFloatDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between two floating point numbers.
| float | $first | First float. |
| mixed | $second | Float to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 222 of file dumper.php.

| _describeGenericDifference | ( | $ | first, |
| $ | second | ||
| ) |
Creates a human readable description of the difference between two variables. The minimal version.
| null | $first | First value. |
| mixed | $second | Value to compare with. |
Definition at line 141 of file dumper.php.


| _describeIntegerDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between an integer and another variable.
| integer | $first | First number. |
| mixed | $second | Number to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 203 of file dumper.php.

| _describeNullDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between a null and another variable.
| null | $first | First null. |
| mixed | $second | Null to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 156 of file dumper.php.

| _describeObjectDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between two objects.
| object | $first | First object. |
| mixed | $second | Object to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 308 of file dumper.php.

| _describeResourceDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between a resource and another variable.
| resource | $first | First resource. |
| mixed | $second | Resource to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 295 of file dumper.php.

| _describeStringDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Creates a human readable description of the difference between a string and another variable.
| string | $first | First string. |
| mixed | $second | String to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 182 of file dumper.php.

| _isMatchingKeys | ( | $ | first, |
| $ | second, | ||
| $ | identical | ||
| ) |
Compares two arrays to see if their key lists match. For an identical match, the ordering and types of the keys is significant.
| array | $first | First array. |
| array | $second | Array to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 275 of file dumper.php.

| _isTypeMatch | ( | $ | first, |
| $ | second | ||
| ) |
Tests to see if types match.
| mixed | $first | First variable. |
| mixed | $second | Value to compare with. |
Definition at line 106 of file dumper.php.


| _stringDiffersAt | ( | $ | first, |
| $ | second | ||
| ) |
Find the first character position that differs in two strings by binary chop.
| string | $first | First string. |
| string | $second | String to compare with. |
Definition at line 327 of file dumper.php.

| clipString | ( | $ | value, |
| $ | size, | ||
| $ | position = 0 |
||
| ) |
Clips a string to a maximum length.
| string | $value | String to truncate. |
| integer | $size | Minimum string size to show. |
| integer | $position | Centre of string section. |
Definition at line 118 of file dumper.php.

| describeDifference | ( | $ | first, |
| $ | second, | ||
| $ | identical = false |
||
| ) |
Creates a human readable description of the difference between two variables. Uses a dynamic call.
| mixed | $first | First variable. |
| mixed | $second | Value to compare with. |
| boolean | $identical | If true then type anomolies count. |
Definition at line 84 of file dumper.php.


| describeValue | ( | $ | value | ) |
Renders a variable in a shorter form than print_r().
| mixed | $value | Variable to render as a string. |
Definition at line 28 of file dumper.php.


| dump | ( | $ | variable | ) | [static] |
Sends a formatted dump of a variable to a string.
| mixed | $variable | Variable to display. |
Definition at line 352 of file dumper.php.
| getType | ( | $ | value | ) |
Gets the string representation of a type.
| mixed | $value | Variable to check against. |
Definition at line 53 of file dumper.php.
