ObjectComparator.php
58 * @param $sortCriteria An assoziative array of criteria - SORTTYPE constant pairs OR a single criteria string.
59 * possible criteria: ObjectComparator::OID, ObjectComparator::TYPE or any value/property name with optionally ASC or DESC appended
60 * (e.g. [ObjectComparator::OID => ObjectComparator::SORTTYPE_ASC, 'name' => ObjectComparator::SORTTYPE_DESC] OR 'name')
compare(PersistentObject $a, PersistentObject $b)
Compare function for sorting PersitentObject instances by the list of criterias.
Definition: ObjectComparator.php:85
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
const SORTTYPE_DESC
Definition: ObjectComparator.php:50
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
const SORTTYPE_ASC
Definition: ObjectComparator.php:49
const ATTRIB_TYPE
Definition: ObjectComparator.php:52
getProperty($name)
Get the value of a named property in the object.
ObjectComparator is used to compare persistent objects by given criterias.
Definition: ObjectComparator.php:47