Exemplo n.º 1
0
 /**
  * Returns the full list of calendar objects
  *
  * @return array
  */
 public function getChildren()
 {
     $objs = $this->caldavBackend->getCalendarObjects($this->calendarInfo['id']);
     $children = array();
     foreach ($objs as $obj) {
         $children[] = new Sabre_CalDAV_CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
     }
     return $children;
 }
Exemplo n.º 2
0
 /**
  * Returns the full list of calendar objects  
  * 
  * @return array 
  */
 public function getChildren()
 {
     if (!$this->hasPrivilege()) {
         throw new Sabre_DAV_Exception_Forbidden('Permission denied to access this calendar');
     }
     $objs = $this->caldavBackend->getCalendarObjects($this->calendarInfo['id']);
     $children = array();
     foreach ($objs as $obj) {
         $children[] = new Sabre_CalDAV_CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
     }
     return $children;
 }