Nextcloud PHP API (stable19)

IContactsStore

Tags
since
13.0.0

Table of Contents

findOne()  : IEntry|null
getContacts()  : \OCP\Contacts\ContactsMenu\IEntry[]

Methods

findOne()

public findOne(IUser $user, int $shareType, string $shareWith) : IEntry|null
Parameters
$user : IUser
$shareType : int
$shareWith : string
Tags
brief

finds a contact by specifying the property to search on ($shareType) and the value ($shareWith)

since
13.0.0
Return values
IEntry|null

getContacts()

public getContacts(IUser $user, string $filter[, int $limit = null ][, int $offset = null ]) : \OCP\Contacts\ContactsMenu\IEntry[]
Parameters
$user : IUser
$filter : string
$limit : int = null

added 19.0.2

$offset : int = null

added 19.0.2

Tags
since
13.0.0
Return values
\OCP\Contacts\ContactsMenu\IEntry[]

Search results