mirror of
https://github.com/nextcloud/server.git
synced 2026-03-19 00:53:51 -04:00
Merge pull request #53161 from nextcloud/docs/53002/calendar-search-impl
docs(caldav): update documentation for calendar search
This commit is contained in:
commit
9106871ebf
2 changed files with 0 additions and 20 deletions
|
|
@ -55,16 +55,6 @@ class CachedSubscriptionImpl implements ICalendar, ICalendarIsEnabled, ICalendar
|
|||
return $this->calendarInfo['{http://apple.com/ns/ical/}calendar-color'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pattern which should match within the $searchProperties
|
||||
* @param array $searchProperties defines the properties within the query pattern should match
|
||||
* @param array $options - optional parameters:
|
||||
* ['timerange' => ['start' => new DateTime(...), 'end' => new DateTime(...)]]
|
||||
* @param int|null $limit - limit number of search results
|
||||
* @param int|null $offset - offset for paging of search results
|
||||
* @return array an array of events/journals/todos which are arrays of key-value-pairs
|
||||
* @since 13.0.0
|
||||
*/
|
||||
public function search(string $pattern, array $searchProperties = [], array $options = [], $limit = null, $offset = null): array {
|
||||
return $this->backend->search($this->calendarInfo, $pattern, $searchProperties, $options, $limit, $offset);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,16 +93,6 @@ class CalendarImpl implements ICreateFromString, IHandleImipMessage, ICalendarIs
|
|||
return $vtimezone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pattern which should match within the $searchProperties
|
||||
* @param array $searchProperties defines the properties within the query pattern should match
|
||||
* @param array $options - optional parameters:
|
||||
* ['timerange' => ['start' => new DateTime(...), 'end' => new DateTime(...)]]
|
||||
* @param int|null $limit - limit number of search results
|
||||
* @param int|null $offset - offset for paging of search results
|
||||
* @return array an array of events/journals/todos which are arrays of key-value-pairs
|
||||
* @since 13.0.0
|
||||
*/
|
||||
public function search(string $pattern, array $searchProperties = [], array $options = [], $limit = null, $offset = null): array {
|
||||
return $this->backend->search($this->calendarInfo, $pattern,
|
||||
$searchProperties, $options, $limit, $offset);
|
||||
|
|
|
|||
Loading…
Reference in a new issue