1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Collection
Граф наследования:Collection:
Registry Registry ActiveRecordCollection

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

 __construct ($source=null)
 add (ActiveRecord $entry)
 offsetSet ($offset, $entry)
 load ($source)
 delete ()
 isEmpty ()
Открытые члены унаследованные от Registry
 unsetByKeys (array $keys)
 mergeRegistry (Registry $registry)
 filter (callable $predicate)
 getAny ()
Открытые члены унаследованные от ActiveRecordCollection
 getPrimaryIds ()
 getDataEntityCollection ()
 save ()

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

static getDataClass ()
static getCollectionElementClass ()
static find (array $filter, array $order, ?int $limit=null, ?Context $context=null)

Защищенные члены

 setDataEntityCollection (ORM\Objectify\Collection $entityCollection)
 initByEntitiesCollection (ORM\Objectify\Collection $entitiesCollection)
 initByArray (array $items)

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

ORM Objectify Collection $dataEntityCollection = null
int $newEntityTmpId = 0

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

@template T <T>

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

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

◆ __construct()

__construct ( $source = null)

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

Методы

◆ add()

add ( ActiveRecord $entry)

Append collection with new item.

Аргументы
ActiveRecord$entry
Возвращает
static
Исключения
ArgumentTypeException

Замещает ActiveRecordCollection.

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

◆ delete()

delete ( )

Delete from the database all entities that are in the registry and have an id

Возвращает
Result

Замещает ActiveRecordCollection.

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

◆ find()

find ( array $filter,
array $order,
?int $limit = null,
?Context $context = null )
staticabstract
Аргументы
array$filter
array$order
int | null$limit
Context | null$context
Возвращает
static

Замещает ActiveRecordCollection.

◆ getCollectionElementClass()

getCollectionElementClass ( )
staticabstract

Returns collection item's class name.

Возвращает
string|ActiveRecord

Замещает ActiveRecordCollection.

◆ getDataClass()

getDataClass ( )
staticfinal

Returns ORM tablet class name.

Возвращает
string|DataManager

Замещает ActiveRecordCollection.

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

◆ initByArray()

initByArray ( array $items)
protected
Аргументы
array<array>$items
Возвращает
Result

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

◆ initByEntitiesCollection()

initByEntitiesCollection ( ORM\Objectify\Collection $entitiesCollection)
protected
Аргументы
ORM\Objectify\Collection$entitiesCollection
Возвращает
Result
Исключения
ArgumentTypeException

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

◆ isEmpty()

isEmpty ( )

Переопределяет метод предка Registry.

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

◆ load()

load ( $source)
Аргументы
int[] | array | ORM\Objectify\Collection$source
Возвращает
Result

Замещает ActiveRecordCollection.

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

◆ offsetSet()

offsetSet ( $offset,
$entry )

Alias to add method.

Аргументы
$offset
$entry
Возвращает
void

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

◆ setDataEntityCollection()

setDataEntityCollection ( ORM\Objectify\Collection $entityCollection)
protected
Аргументы
ORM\Objectify\Collection$entityCollection
Возвращает
self

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

Поля

◆ $dataEntityCollection

ORM Objectify Collection $dataEntityCollection = null
protected

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

◆ $newEntityTmpId

int $newEntityTmpId = 0
protected

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


Объявления и описания членов класса находятся в файле: