Bitrix API

OnSave

Container for onSave callback function

Table of Contents

Constants

TYPES  = ['default' => 'default', 'flag' => 'flag']

Methods

__construct()  : mixed
activate()  : $this
Activate callback
call()  : static
deactivate()  : void
Deactivate callback, if can (default always on))
setSwitcher()  : static
toArray()  : array<string|int, mixed>

Constants

TYPES

public mixed TYPES = ['default' => 'default', 'flag' => 'flag']

Methods

__construct()

public __construct(callable $callback) : mixed
Parameters
$callback : callable

activate()

Activate callback

public activate() : $this
Return values
$this

call()

public call() : static
Return values
static

deactivate()

Deactivate callback, if can (default always on))

public deactivate() : void

setSwitcher()

public setSwitcher(string $title) : static
Parameters
$title : string
Return values
static

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results