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

Public Member Functions

 compare ($a, $b)

Detailed Description

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


Member Function Documentation

compare ( a,
b 
) [abstract]

This function will perform the actual comparison of values It must be overridden by the deriving class.

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

Parameters:
mixed$aThe first something to compare
mixed$bThe second something to compare
Returns:
int

Reimplemented in collatorlib_method_comparison, and collatorlib_property_comparison.


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