|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| compare ($a, $b) | |
Definition at line 743 of file textlib.class.php.
| 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
| mixed | $a | The first something to compare |
| mixed | $b | The second something to compare |
Reimplemented in collatorlib_method_comparison, and collatorlib_property_comparison.