public function validate(VObject\Component\VCalendar $vObject, array $filters)
    {
        // The top level object is always a component filter.
        // We'll parse it manually, as it's pretty simple.
        if ($vObject->name !== $filters['name']) {
            return false;
        }

        return
            $this->validateCompFilters($vObject, $filters['comp-filters']) &&
            $this->validatePropFilters($vObject, $filters['prop-filters']);
    }
public function validate(VObject\Component\VCalendar $vObject, array $filters)
    {
        // The top level object is always a component filter.
        // We'll parse it manually, as it's pretty simple.
        if ($vObject->name !== $filters['name']) {
            return false;
        }

        return
            $this->validateCompFilters($vObject, $filters['comp-filters']) &&
            $this->validatePropFilters($vObject, $filters['prop-filters']);
    }
public function validate ( VObject \ Component \ VCalendar $ vObject , array $ filters ) { // The top level object is always a component filter. // We'll parse it manually, as it's pretty simple. if ( $ vObject -> name !== $ filters [ 'name' ] ) { return false ; } return $ this -> validateCompFilters ( $ vObject , $ filters [ 'comp-filters' ] ) && $ this -> validatePropFilters ( $ vObject , $ filters [ 'prop-filters' ] ) ; }
Verify if a list of filters applies to the calendar data object.

The list of filters must be formatted as parsed by \Sabre\CalDAV\CalendarQueryParser

@param VObject\Component\VCalendar $vObject
@param array                       $filters

@return bool
Verify if a list of filters applies to the calendar data object .