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|nullgetCode()
Get code.
public
getCode() : string
Return values
stringgetData()
Get data.
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getEditUrl()
Get edit url.
public
getEditUrl() : string
Return values
stringgetList()
Get list.
public
static getList() : array<string|int, static>
Return values
array<string|int, static>getName()
Get name.
public
getName() : string
Return values
stringtoArray()
Get as array.
public
toArray() : array<string|int, mixed>