Interface Xyster_Collection_Comparator_Interface

Description

A comparison callback class

The results from the only method in this interface impose a total ordering on some collection of objects. Comparators can be used to allow precise control over the sort order of a collection.

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Collection/Comparator/Interface.php (line 27)


	
			
Method Summary
int compare (mixed $a, mixed $b)
Methods
compare (line 39)

Compares two arguments for sorting

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

  • return: Either -1, 0, or 1
int compare (mixed $a, mixed $b)
  • mixed $a
  • mixed $b

Documentation generated on Mon, 19 May 2008 17:07:21 -0400 by phpDocumentor 1.4.2