CollectionBase
\Bitrix\Sale\Internals\CollectionBase base class for collection of items. Class implements interfaces \ArrayAccess
, \Countable
and \IteratorAggregate
.
Class methods
Method | Description | Available from version |
---|---|---|
count | Returns number of object items. | |
current | Returns current item. | |
getIterator | Returns external iterator. | |
isEmpty | Checks if collection empty. When collection doesn't contain items, returns true (otherwise, returns false ). |
|
key | Returns index for current collection item. | |
next | Moves to the next collection item. | |
offsetExists | Defines, if specified offset exist (key). | |
offsetGet | Returns specified offset (key). | |
offsetSet | Sets value for this offset. | |
offsetUnset | Resets offset value. | |
rewind | Rewinds to the first collection item. | |
valid | Checks, if collection contains valid items. |
© «Bitrix24», 2001-2024