EntityCollection
\Bitrix\Sale\Internals\EntityCollection is a collection of entities.
Inheritance chain (within subspace \Bitrix\Sale)
Internals\EntityCollection > Internals\CollectionBase
Class methods
Method | Description | Available from version |
---|---|---|
clearCollection | Deletes all collection items. | |
doFinalAction | Executes final actions. | |
getIndexById | Searches item in collection by ID and returns its internal index. | |
getItemById | Searches item in collection by ID and returns it. | |
getItemByIndex | Searches item in collection by internal index and returns it. | |
isAnyItemDeleted | Checks if a collection item was deleted. | |
isChanged | Checks if collection was updated. Returns true or false . |
|
isClone | Checks if collection was cloned. Returns true or false . |
|
verify | Verifies collection validly. Returns object \Bitrix\Sale\Result . |
Methods for parent class \Bitrix\Sale\Internals\CollectionBase
Method | Description | Available from version |
---|---|---|
count | Returns number of object items. | |
current | Returns current item. | |
getIterator | Returns external iterator. | |
isEmpty | Checks collection for emptiness. When collection doesn't contain any items, returns true (otherwise, false ). |
|
key | Returns index for current collection item. | |
next | Moves collection selection to the next item. | |
offsetExists | Defines, if specified offset exists (key). | |
offsetGet | Returns specified offset (key). | |
offsetSet | Sets value for this offset. | |
offsetUnset | Resets offset value. | |
rewind | Rewinds selection to the first collection item. | |
valid | Checks, if collection contains valid items. |
© «Bitrix24», 2001-2024