method
public
CollectableEntity::getCollection()
Сигнатура
public getCollection() : EntityCollection
Возвращаемое значение
EntityCollection
Как применяется в CollectableEntity
CollectableEntity::getCollection() — метод класса \Bitrix\Sale\Internals\CollectableEntity модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр CollectableEntity.
use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\CollectableEntity;
Loader::includeModule('sale');
/** @var CollectableEntity $object */
$result = $object->getCollection();
// $result: EntityCollectionДругие методы CollectableEntity
clearStartField()delete()doFinalAction()getAllFields()getAvailableFields()getAvailableFieldsMap()getClassName()getCustomizableFields()getField()getFieldsDescription()getFieldValues()getId()
getCollection() есть и у других классов модуля «Интернет-магазин»: BasketItem, BasketItemBase, BasketPropertyItem, BasketPropertyItemBase, Shipment, ShipmentItem, ShipmentItemStore.
Исходный файл: source/sale/lib/internals/collectableentity.php:46

