Horde_Date_Recurrence::hasRecurType PHP Method

hasRecurType() public method

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.
    public function hasRecurType($recurrence)
    {
        return $recurrence == $this->recurType;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * 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);
 }