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

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

 getPopupData (array $excludedList=[])
 
 getUnique ()
 
 getIds ()
 
 getById (int $id)
 
 toRestFormat (array $option=[])
 
 offsetSet ($offset, $value)
 
- Открытые члены унаследованные от Registry
 unsetByKeys (array $keys)
 
 filter (callable $predicate)
 
 getAny ()
 

Открытые статические члены

static initByArray (array $entities)
 
- Открытые статические члены унаследованные от RestConvertible
static getRestEntityName ()
 

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

array $entitiesWithId = []
 

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

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

Методы

◆ getById()

getById ( int $id)

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

◆ getIds()

getIds ( )

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

◆ getPopupData()

getPopupData ( array $excludedList = [])

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

См. также
RestAdapter::toRestFormat()
Аргументы
string[]$excludedList
Возвращает
PopupData

Замещает PopupDataAggregatable.

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

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

◆ getUnique()

getUnique ( )
Возвращает
static

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

◆ initByArray()

static initByArray ( array $entities)
static
Аргументы
RestEntity[]$entities
Возвращает
static

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

◆ offsetSet()

offsetSet ( $offset,
$value )

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

◆ toRestFormat()

toRestFormat ( array $option = [])

Returns an array in JSON like format to return the entity as a rest response.

Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

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

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

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

◆ $entitiesWithId

array $entitiesWithId = []
protected

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