IEntry
extends
JsonSerializable
in
Tags
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
getAvatar()
public
getAvatar() : string|null
Tags
Return values
string|null —image URI
getEMailAddresses()
public
getEMailAddresses() : array<string|int, string>
Tags
Return values
array<string|int, string>getFullName()
public
getFullName() : string
Tags
Return values
stringgetProperty()
Get an arbitrary property from the contact
public
getProperty(string $key) : mixed
Parameters
- $key : string
Tags
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