Class Xyster_Data_Comparator

Description

Implements interfaces:

Comparator for objects or associative arrays

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

Located in /Data/Comparator.php (line 28)


	
			
Variable Summary
Method Summary
Xyster_Data_Comparator __construct (Xyster_Data_Sort_Clause $sorts)
void compare (mixed $a, mixed $b)
Variables
Xyster_Data_Sort_Clause $_sorts (line 35)

The clause of Xyster_Data_Sort objects

  • access: protected
Methods
Constructor __construct (line 45)

Create a new Data Comparator object

If you pass a clause containing no objects, this comparator will always return zero when comparing objects.

  • access: public
Xyster_Data_Comparator __construct (Xyster_Data_Sort_Clause $sorts)
compare (line 59)

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.

  • access: public
void compare (mixed $a, mixed $b)
  • mixed $a
  • mixed $b

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