TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Class: Comparator

Source Location: /Comparator.php

Interface Overview


A comparison function, which imposes a total ordering on some collection of integers. Comparators can be passed to a sort method (such as <tt>misc.Utils.sort</tt>) to allow precise control over the sort order.


Methods



Class Details

[line 21]
A comparison function, which imposes a total ordering on some collection of integers. Comparators can be passed to a sort method (such as <tt>misc.Utils.sort</tt>) to allow precise control over the sort order.



[ Top ]


Class Methods


method compare [line 33]

a compare( a $a, b $b)

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.<p>



Tags:

return:  negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.


Parameters:

a   $a   the first integer to be compared.
b   $b   the second integer to be compared.

[ Top ]


Documentation generated on Wed, 16 Jun 2010 12:04:38 +0200 by phpDocumentor 1.4.1