Returns whether this event has a specific recurrence type.
public hasRecurType ( integer $recurrence ) : boolean | ||
$recurrence | integer | RECUR_* constant of the recurrence type to check for. |
return | boolean | True if the event has the specified recurrence type. |
/** * Returns whether this event is a recurring event. * * @return boolean True if this is a recurring event. */ public function recurs() { return isset($this->_recurrence) && !$this->_recurrence->hasRecurType(Horde_Date_Recurrence::RECUR_NONE); }