Bitrix API

ProviderBase

AbstractYes

Class ProviderBase

Table of Contents

Constants

ERROR_DATA_NOT_FOUND  = 'ERROR_DATA_NOT_FOUND'
ERROR_DECODE_DATA  = 'ERROR_DECODE_DATA'

Methods

__construct()  : mixed
ProviderBase constructor.
addContent()  : bool
Adds content as file to configuration folder.
addFiles()  : array<string|int, mixed>
Adds files to configurations files folder.
get()  : array<string|int, mixed>|null
Returns content from file
getContent()  : array<string|int, mixed>
Returns structured content for working
listError()  : array<string|int, mixed>
Returns error list.
resetErrors()  : bool
Resets errors.

Constants

ERROR_DATA_NOT_FOUND

public mixed ERROR_DATA_NOT_FOUND = 'ERROR_DATA_NOT_FOUND'

ERROR_DECODE_DATA

public mixed ERROR_DECODE_DATA = 'ERROR_DECODE_DATA'

Methods

__construct()

ProviderBase constructor.

public __construct(array<string|int, mixed> $setting) : mixed
Parameters
$setting : array<string|int, mixed>

addContent()

Adds content as file to configuration folder.

public abstract addContent(mixed $code, mixed $content[, mixed $type = false ]) : bool
Parameters
$code : mixed

string name of file

$content : mixed

string|array saving configuration data

$type : mixed = false

mixed type of configuration data

Return values
bool

addFiles()

Adds files to configurations files folder.

public abstract addFiles(mixed $files) : array<string|int, mixed>
Parameters
$files : mixed

array files list

Return values
array<string|int, mixed>

get()

Returns content from file

public abstract get(string $path, int $step) : array<string|int, mixed>|null
Parameters
$path : string
$step : int
Return values
array<string|int, mixed>|null

getContent()

Returns structured content for working

public getContent(mixed $path, int $step) : array<string|int, mixed>
Parameters
$path : mixed
$step : int
Return values
array<string|int, mixed>

listError()

Returns error list.

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

resetErrors()

Resets errors.

public resetErrors() : bool
Return values
bool

        
On this page

Search results