Moodle  2.2.1
http://www.collinsharper.com
collatorlib_method_comparison Class Reference
Inheritance diagram for collatorlib_method_comparison:
Collaboration diagram for collatorlib_method_comparison:

Public Member Functions

 __construct ($method)
 compare ($obja, $objb)

Protected Attributes

 $method

Detailed Description

Definition at line 805 of file textlib.class.php.


Constructor & Destructor Documentation

__construct ( method)
Parameters:
string$methodThe method to call against each object

Definition at line 813 of file textlib.class.php.


Member Function Documentation

compare ( obja,
objb 
)

Returns: 1 if str1 is greater than str2 0 if str1 is equal to str2 -1 if str1 is less than str2

Parameters:
mixed$objaThe first object to compare
mixed$objbThe second object to compare
Returns:
int

Reimplemented from collatorlib_comparison.

Definition at line 827 of file textlib.class.php.


Field Documentation

$method [protected]

Definition at line 808 of file textlib.class.php.


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