コード例 #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;
 }
コード例 #2
0
ファイル: Calendar.php プロジェクト: adamchau/teamdisk
 /**
  * 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) {
         $obj['acl'] = $this->getACL();
         // Removing the irrelivant
         foreach ($obj['acl'] as $key => $acl) {
             if ($acl['privilege'] === '{' . Sabre_CalDAV_Plugin::NS_CALDAV . '}read-free-busy') {
                 unset($obj['acl'][$key]);
             }
         }
         $children[] = new Sabre_CalDAV_CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
     }
     return $children;
 }