Bitrix API

DataProvider

Class DataProvider.

Table of Contents

Constants

EVENT_NAME_LIST  = 'OnUserConsentDataProviderList'

Methods

__construct()  : mixed
Constructor.
getByCode()  : static|null
Create instance.
getCode()  : string
Get code.
getData()  : array<string|int, mixed>
Get data.
getEditUrl()  : string
Get edit url.
getList()  : array<string|int, static>
Get list.
getName()  : string
Get name.
toArray()  : array<string|int, mixed>
Get as array.

Constants

EVENT_NAME_LIST

public mixed EVENT_NAME_LIST = 'OnUserConsentDataProviderList'

Methods

__construct()

Constructor.

public __construct(string $code, string $name, array<string|int, mixed>|callable $data, string $editUrl) : mixed
Parameters
$code : string

Code.

$name : string

Name.

$data : array<string|int, mixed>|callable

Data.

$editUrl : string

Url to data edit page.

getByCode()

Create instance.

public static getByCode(string $providerCode) : static|null
Parameters
$providerCode : string

Provider code.

Return values
static|null

getCode()

Get code.

public getCode() : string
Return values
string

getData()

Get data.

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

getEditUrl()

Get edit url.

public getEditUrl() : string
Return values
string

getList()

Get list.

public static getList() : array<string|int, static>
Return values
array<string|int, static>

getName()

Get name.

public getName() : string
Return values
string

toArray()

Get as array.

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

        
On this page

Search results