Skip to content

Event::compare

James Cobban edited this page Feb 1, 2020 · 2 revisions

$event->compare($other)

Up: class Event

Compare two instances of Event. The comparison is done using the field 'eventsd' to keep events in chronological order.

Returns a value which is greater than 0 if $other['eventsd'] is greater than $this['eventsd'], 0 if $other['eventsd'] is equal to $this['eventsd'], and value which is less than 0 if $other['eventsd'] is less than $this['eventsd'].

Next: $event->toXml($top, $print, $options)

Clone this wiki locally