Bitrix API

Notification

Class Notification

Table of Contents

Methods

addTo()  : $this
Add to.
canUse()  : bool|null
Can use.
create()  : static
Create.
send()  : void
Send.
setTo()  : $this
Set to.
toAllAuthors()  : $this
Add all authors.
toCurrentUser()  : $this
Add current user.
withMessage()  : $this
With message.

Methods

addTo()

Add to.

public addTo(int $userId) : $this
Parameters
$userId : int

User ID.

Return values
$this

canUse()

Can use.

public static canUse() : bool|null
Return values
bool|null

create()

Create.

public static create() : static
Return values
static

setTo()

Set to.

public setTo(array<string|int, int> $list) : $this
Parameters
$list : array<string|int, int>

List.

Return values
$this

toAllAuthors()

Add all authors.

public toAllAuthors() : $this
Return values
$this

toCurrentUser()

Add current user.

public toCurrentUser() : $this
Return values
$this

withMessage()

With message.

public withMessage(string $message) : $this
Parameters
$message : string

Text.

Return values
$this

        
On this page

Search results