Nextcloud PHP API (master)

ICreateFromString extends ICalendar

Extends the current ICalendar interface to add a public write method

Tags
since
23.0.0

Table of Contents

Methods

createFromString()  : void
getDisplayColor()  : null|string
Calendar color
getDisplayName()  : null|string
In comparison to getKey() this function returns a human readable (maybe translated) name
getKey()  : string
getPermissions()  : int
getUri()  : string
In comparison to getKey() this function returns a unique uri within the scope of the principal
isDeleted()  : bool
Indicates whether the calendar is in the trash bin
search()  : array<string|int, mixed>

Methods

createFromString()

public createFromString(string $name, string $calendarData) : void
Parameters
$name : string
$calendarData : string
Tags
since
23.0.0
throws
CalendarException

getDisplayColor()

Calendar color

public getDisplayColor() : null|string
Tags
since
13.0.0
Return values
null|string

getDisplayName()

In comparison to getKey() this function returns a human readable (maybe translated) name

public getDisplayName() : null|string
Tags
since
13.0.0
Return values
null|string

getKey()

public getKey() : string
Tags
since
13.0.0
Return values
string

defining the technical unique key

getPermissions()

public getPermissions() : int
Tags
since
13.0.0
Return values
int

build up using \OCP\Constants

getUri()

In comparison to getKey() this function returns a unique uri within the scope of the principal

public getUri() : string
Tags
since
24.0.0
Return values
string

isDeleted()

Indicates whether the calendar is in the trash bin

public isDeleted() : bool
Tags
since
26.0.0
Return values
bool
public search(string $pattern[, array<string|int, mixed> $searchProperties = [] ][, array<string|int, mixed> $options = [] ][, int|null $limit = null ][, int|null $offset = null ]) : array<string|int, mixed>
Parameters
$pattern : string

which should match within the $searchProperties

$searchProperties : array<string|int, mixed> = []

defines the properties within the query pattern should match

$options : array<string|int, mixed> = []
  • optional parameters: ['timerange' => ['start' => new DateTime(...), 'end' => new DateTime(...)]]
$limit : int|null = null
  • limit number of search results
$offset : int|null = null
  • offset for paging of search results
Tags
since
13.0.0
Return values
array<string|int, mixed>

an array of events/journals/todos which are arrays of key-value-pairs. the events are sorted by start date (closest first, furthest last)


        
On this page

Search results