return array_keys($this->fields); } /** * @param string $key The key of the field to get. * @return The content of the field or an empty string if it doesn't exist * in this event. */ public function getField($key) { return a::get($this->fields, $key, ''); } /** * @return <code>true</code> if the event is past at the current time, * <code>false</code> otherwise */ public function isPast() { return $this->endTimestamp < time(); } /** * @return <code>true</code> if the event has an ending date/time * <code>false</code> otherwise */ public function hasEnd() { return $this->hasEnd; } } // initialize the static variables event::__init();