Documentation

CollectionBase

\Bitrix\Sale\Internals\CollectionBase base class for collection of items. Class implements interfaces \ArrayAccess, \Countable and \IteratorAggregate.

Class methods

MethodDescription Available from version
countReturns number of object items.
currentReturns current item.
getIteratorReturns external iterator.
isEmptyChecks if collection empty. When collection doesn't contain items, returns true (otherwise, returns false).
keyReturns index for current collection item.
nextMoves to the next collection item.
offsetExistsDefines, if specified offset exist (key).
offsetGetReturns specified offset (key).
offsetSetSets value for this offset.
offsetUnsetResets offset value.
rewindRewinds to the first collection item.
validChecks, if collection contains valid items.


© «Bitrix24», 2001-2022
Up