Configuration implements ArrayAccess, Iterator, Countable
FinalYes
Table of Contents
Interfaces
- ArrayAccess
- Iterator
- Countable
Constants
- CONFIGURATION_FILE = '.settings.php'
- CONFIGURATION_FILE_EXTRA = '.settings_extra.php'
- CONFIGURATION_FILE_PATH = '/bitrix/' . self::CONFIGURATION_FILE
Methods
- add() : mixed
- addReadonly() : void
- Changes readonly params.
- count() : int
- current() : mixed
- delete() : mixed
- get() : mixed
- getInstance() : Configuration
- getValue() : mixed
- key() : mixed
- next() : mixed
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- rewind() : void
- saveConfiguration() : mixed
- setValue() : mixed
- valid() : bool
- wnc() : mixed
Constants
CONFIGURATION_FILE
public
mixed
CONFIGURATION_FILE
= '.settings.php'
CONFIGURATION_FILE_EXTRA
public
mixed
CONFIGURATION_FILE_EXTRA
= '.settings_extra.php'
CONFIGURATION_FILE_PATH
public
mixed
CONFIGURATION_FILE_PATH
= '/bitrix/' . self::CONFIGURATION_FILE
Methods
add()
public
add(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
addReadonly()
Changes readonly params.
public
addReadonly(string $name, array<string|int, mixed> $value) : void
Warning! Developer must use this method very carfully!. You must use this method only if you know what you do!
Parameters
- $name : string
- $value : array<string|int, mixed>
count()
public
count() : int
Return values
intcurrent()
public
current() : mixed
Attributes
- #[ReturnTypeWillChange]
delete()
public
delete(mixed $name) : mixed
Parameters
- $name : mixed
get()
public
get(mixed $name) : mixed
Parameters
- $name : mixed
getInstance()
public
static getInstance([string|null $moduleId = null ]) : Configuration
Parameters
- $moduleId : string|null = null
Tags
Return values
ConfigurationgetValue()
public
static getValue(mixed $name) : mixed
Parameters
- $name : mixed
key()
public
key() : mixed
Attributes
- #[ReturnTypeWillChange]
next()
public
next() : mixed
Attributes
- #[ReturnTypeWillChange]
offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
rewind()
public
rewind() : void
saveConfiguration()
public
saveConfiguration() : mixed
setValue()
public
static setValue(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
valid()
public
valid() : bool
Return values
boolwnc()
public
static wnc() : mixed