public function getChild($name)
    {
        $obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'], $name);

        if (!$obj) {
            throw new DAV\Exception\NotFound('Calendar object not found');
        }
        $obj['acl'] = $this->getChildACL();

        return new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
    }
public function getChild($name)
    {
        $obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'], $name);

        if (!$obj) {
            throw new DAV\Exception\NotFound('Calendar object not found');
        }
        $obj['acl'] = $this->getChildACL();

        return new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj);
    }
public function getChild ( $ name ) { $ obj = $ this -> caldavBackend -> getCalendarObject ( $ this -> calendarInfo [ 'id' ] , $ name ) ; if ( ! $ obj ) { throw new DAV \ Exception \ NotFound ( 'Calendar object not found' ) ; } $ obj [ 'acl' ] = $ this -> getChildACL ( ) ; return new CalendarObject ( $ this -> caldavBackend , $ this -> calendarInfo , $ obj ) ; }
Returns a calendar object.

The contained calendar objects are for example Events or Todo's.

@param string $name

@return \Sabre\CalDAV\ICalendarObject
Returns a calendar object .