Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Dictionary
+ Граф наследования:Dictionary:

Открытые члены

 __construct (array $values=null)
 
 get ($name)
 
 set ($name, $value=null)
 
 getValues ()
 
 setValues ($values)
 
 clear ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 count ()
 
 toArray ()
 
 isEmpty ()
 
 jsonSerialize ()
 

Защищенные данные

 $values = []
 

Подробное описание

См. определение в файле dictionary.php строка 4

Конструктор(ы)

◆ __construct()

__construct ( array $values = null)

Creates object.

Аргументы
array  |  null$values

Переопределяется в Environment, Server, ErrorCollection, ErrorCollection, HttpCookies и State.

См. определение в файле dictionary.php строка 17

Методы

◆ clear()

clear ( )

См. определение в файле dictionary.php строка 71

◆ count()

count ( )

Count elements of an object

См. определение в файле dictionary.php строка 187

◆ current()

current ( )

Return the current element

См. определение в файле dictionary.php строка 82

◆ get()

get ( $name)

Returns any variable by its name. Null if variable is not set.

Аргументы
string$name
Возвращает
string | array | null

См. определение в файле dictionary.php строка 31

◆ getValues()

getValues ( )
Возвращает
array

Переопределяется в RulesCollection.

См. определение в файле dictionary.php строка 58

◆ isEmpty()

isEmpty ( )

Returns true if the dictionary is empty.

Возвращает
bool

См. определение в файле dictionary.php строка 206

◆ jsonSerialize()

jsonSerialize ( )

JsonSerializable::jsonSerialize Specify data which should be serialized to JSON

Возвращает
array

См. определение в файле dictionary.php строка 216

◆ key()

key ( )

Return the key of the current element

См. определение в файле dictionary.php строка 103

◆ next()

next ( )

Move forward to next element

См. определение в файле dictionary.php строка 92

◆ offsetExists()

offsetExists ( $offset)

Whether a offset exists

См. определение в файле dictionary.php строка 133

◆ offsetGet()

offsetGet ( $offset)

Offset to retrieve

См. определение в файле dictionary.php строка 144

◆ offsetSet()

offsetSet ( $offset,
$value )

Offset to set

Переопределяется в ErrorCollection, ContainerCollection, ErrorCollection, FilterableDictionary, ParameterDictionary, HttpCookies и Collection.

См. определение в файле dictionary.php строка 160

◆ offsetUnset()

offsetUnset ( $offset)

Offset to unset

Переопределяется в FilterableDictionary и ParameterDictionary.

См. определение в файле dictionary.php строка 177

◆ rewind()

rewind ( )

Rewind the Iterator to the first element

См. определение в файле dictionary.php строка 123

◆ set()

set ( $name,
$value = null )

Переопределяется в State.

См. определение в файле dictionary.php строка 43

◆ setValues()

setValues ( $values)
Аргументы
$values

Переопределяется в ParameterDictionary.

См. определение в файле dictionary.php строка 66

◆ toArray()

toArray ( )

Returns the values as an array.

Возвращает
array

Переопределяется в HttpCookies и State.

См. определение в файле dictionary.php строка 197

◆ valid()

valid ( )

Checks if current position is valid

См. определение в файле dictionary.php строка 113

Данные класса

◆ $values

$values = []
protected

См. определение в файле dictionary.php строка 10