Bitrix API

Base extends ProviderBase

Class ProviderBase

Table of Contents

Constants

ERROR_DATA_NOT_FOUND  = 'ERROR_DATA_NOT_FOUND'
ERROR_DECODE_DATA  = 'ERROR_DECODE_DATA'

Methods

__construct()  : mixed
Base 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.
set()  : mixed

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()

Base 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 addFiles(array<string|int, mixed> $files) : array<string|int, mixed>
Parameters
$files : array<string|int, mixed>
Tags
throws
SystemException
Return values
array<string|int, mixed>

get()

Returns content from file

public get(mixed $path) : array<string|int, mixed>|null
Parameters
$path : mixed
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

set()

public set() : mixed
Tags
throws
SystemException

        
On this page

Search results