Horde_Date_Recurrence::hasRecurType PHP 메소드

hasRecurType() 공개 메소드

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.
리턴 boolean True if the event has the specified recurrence type.
    public function hasRecurType($recurrence)
    {
        return $recurrence == $this->recurType;
    }

Usage Example

예제 #1
0
파일: Event.php 프로젝트: jubinpatel/horde
 /**
  * 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);
 }