| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
base include file for SimpleTest
| Version: | $Id$ |
| File Size: | 173 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SimpleTestCompatibility:: (7 methods):
copy()
isIdentical()
_isIdenticalType()
_isArrayOfIdenticalTypes()
isReference()
isA()
setTimeout()
Class: SimpleTestCompatibility - X-Ref
Static methods for compatibility between different| copy($object) X-Ref |
| Creates a copy whether in PHP5 or PHP4. param: object $object Thing to copy. return: object A copy. |
| isIdentical($first, $second) X-Ref |
| Identity test. Drops back to equality + types for PHP5 objects as the === operator counts as the stronger reference constraint. param: mixed $first Test subject. param: mixed $second Comparison object. return: boolean True if identical. |
| _isIdenticalType($first, $second) X-Ref |
| Recursive type test. param: mixed $first Test subject. param: mixed $second Comparison object. return: boolean True if same type. |
| _isArrayOfIdenticalTypes($first, $second) X-Ref |
| Recursive type test for each element of an array. param: mixed $first Test subject. param: mixed $second Comparison object. return: boolean True if identical. |
| isReference(&$first, &$second) X-Ref |
| Test for two variables being aliases. param: mixed $first Test subject. param: mixed $second Comparison object. return: boolean True if same. |
| isA($object, $class) X-Ref |
| Test to see if an object is a member of a class hiearchy. param: object $object Object to test. param: string $class Root name of hiearchy. return: boolean True if class in hiearchy. |
| setTimeout($handle, $timeout) X-Ref |
| Sets a socket timeout for each chunk. param: resource $handle Socket handle. param: integer $timeout Limit in seconds. |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |