Moodle  2.2.1
http://www.collinsharper.com
SimpleTestCompatibility Class Reference

Static Public Member Functions

 copy ($object)
 isIdentical ($first, $second)
 _isIdenticalType ($first, $second)
 _isArrayOfIdenticalTypes ($first, $second)
 isReference (&$first, &$second)
 isA ($object, $class)
 setTimeout ($handle, $timeout)

Detailed Description

Definition at line 13 of file compatibility.php.


Member Function Documentation

_isArrayOfIdenticalTypes ( first,
second 
) [static]

Recursive type test for each element of an array.

Parameters:
mixed$firstTest subject.
mixed$secondComparison object.
Returns:
boolean True if identical. private

Definition at line 87 of file compatibility.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_isIdenticalType ( first,
second 
) [static]

Recursive type test.

Parameters:
mixed$firstTest subject.
mixed$secondComparison object.
Returns:
boolean True if same type. private

Definition at line 58 of file compatibility.php.

Here is the call graph for this function:

Here is the caller graph for this function:

copy ( object) [static]

Creates a copy whether in PHP5 or PHP4.

Parameters:
object$objectThing to copy.
Returns:
object A copy. public

Definition at line 22 of file compatibility.php.

Here is the caller graph for this function:

isA ( object,
class 
) [static]

Test to see if an object is a member of a class hiearchy.

Parameters:
object$objectObject to test.
string$classRoot name of hiearchy.
Returns:
boolean True if class in hiearchy. public

Definition at line 137 of file compatibility.php.

Here is the caller graph for this function:

isIdentical ( first,
second 
) [static]

Identity test. Drops back to equality + types for PHP5 objects as the === operator counts as the stronger reference constraint.

Parameters:
mixed$firstTest subject.
mixed$secondComparison object.
Returns:
boolean True if identical. public

Definition at line 40 of file compatibility.php.

Here is the call graph for this function:

Here is the caller graph for this function:

isReference ( &$  first,
&$  second 
) [static]

Test for two variables being aliases.

Parameters:
mixed$firstTest subject.
mixed$secondComparison object.
Returns:
boolean True if same. public

Definition at line 110 of file compatibility.php.

Here is the caller graph for this function:

setTimeout ( handle,
timeout 
) [static]

Sets a socket timeout for each chunk.

Parameters:
resource$handleSocket handle.
integer$timeoutLimit in seconds. public

Definition at line 163 of file compatibility.php.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations