Nextcloud PHP API (master)

IUserStatus

Interface IUserStatus

Tags
since
20.0.0

Table of Contents

Constants

AWAY  = 'away'
BUSY  = 'busy'
DND  = 'dnd'
INVISIBLE  = 'invisible'
MESSAGE_AVAILABILITY  = 'availability'
MESSAGE_CALENDAR_BUSY  = 'meeting'
MESSAGE_CALENDAR_BUSY_TENTATIVE  = 'busy-tentative'
MESSAGE_CALL  = 'call'
MESSAGE_OUT_OF_OFFICE  = 'out-of-office'
MESSAGE_VACATION  = 'vacationing'
OFFLINE  = 'offline'
ONLINE  = 'online'

Methods

getClearAt()  : DateTimeImmutable|null
Gets the time that the custom status will be cleared at
getIcon()  : string|null
Get a custom icon provided by the user
getMessage()  : string|null
Get a custom message provided by the user
getStatus()  : string
Get the status
getUserId()  : string
Get the user this status is connected to

Constants

INVISIBLE

public string INVISIBLE = 'invisible'
Tags
since
20.0.0

MESSAGE_AVAILABILITY

public string MESSAGE_AVAILABILITY = 'availability'
Tags
since
25.0.0

MESSAGE_CALENDAR_BUSY

public string MESSAGE_CALENDAR_BUSY = 'meeting'
Tags
since
28.0.0

MESSAGE_CALENDAR_BUSY_TENTATIVE

public string MESSAGE_CALENDAR_BUSY_TENTATIVE = 'busy-tentative'
Tags
since
28.0.0

MESSAGE_CALL

public string MESSAGE_CALL = 'call'
Tags
since
25.0.0

MESSAGE_OUT_OF_OFFICE

public string MESSAGE_OUT_OF_OFFICE = 'out-of-office'
Tags
since
28.0.1

MESSAGE_VACATION

public string MESSAGE_VACATION = 'vacationing'
Tags
since
28.0.0

OFFLINE

public string OFFLINE = 'offline'
Tags
since
20.0.0

ONLINE

public string ONLINE = 'online'
Tags
since
20.0.0

Methods

getClearAt()

Gets the time that the custom status will be cleared at

public getClearAt() : DateTimeImmutable|null
Tags
since
20.0.0
Return values
DateTimeImmutable|null

getIcon()

Get a custom icon provided by the user

public getIcon() : string|null
Tags
since
20.0.0
Return values
string|null

getMessage()

Get a custom message provided by the user

public getMessage() : string|null
Tags
since
20.0.0
Return values
string|null

getStatus()

Get the status

public getStatus() : string

It will return one of the constants defined above. It will never return invisible. In case a user marked themselves as invisible, it will return offline.

Tags
since
20.0.0
Return values
string

See IUserStatus constants

getUserId()

Get the user this status is connected to

public getUserId() : string
Tags
since
20.0.0
Return values
string

        
On this page

Search results