Nextcloud PHP API (master)

IEntry extends JsonSerializable

Tags
since
12.0

Table of Contents

Methods

addAction()  : void
getAvatar()  : string|null
getEMailAddresses()  : array<string|int, string>
getFullName()  : string
getProperty()  : mixed
Get an arbitrary property from the contact
setStatus()  : void
Set the (system) contact's user status

Methods

addAction()

public addAction(IAction $action) : void
Parameters
$action : IAction

an action to show in the contacts menu

Tags
since
12.0

getAvatar()

public getAvatar() : string|null
Tags
since
12.0
Return values
string|null

image URI

getEMailAddresses()

public getEMailAddresses() : array<string|int, string>
Tags
since
12.0
Return values
array<string|int, string>

getFullName()

public getFullName() : string
Tags
since
12.0
Return values
string

getProperty()

Get an arbitrary property from the contact

public getProperty(string $key) : mixed
Parameters
$key : string
Tags
since
12.0
Return values
mixed

the value of the property or null

setStatus()

Set the (system) contact's user status

public setStatus(string $status[, string $statusMessage = null ][, int|null $statusMessageTimestamp = null ][, string|null $icon = null ]) : void
Parameters
$status : string
$statusMessage : string = null
$statusMessageTimestamp : int|null = null
$icon : string|null = null
Tags
since
28.0

        
On this page

Search results