2 namespace TYPO3\CMS\Core\Resource\Collection;
88 $currentRecord = $this->storage->current();
89 return $currentRecord->getIdentifier();
102 foreach ($this->storage as $entry) {
105 return implode(
',',
$list);
118 'type' => static::$type,
132 $itemArray = array();
134 foreach ($this->storage as $item) {
135 $itemArray[] = $item->toArray();
141 'items' => $itemArray
150 public function getItems()
152 $itemArray = array();
154 foreach ($this->storage as $item) {
155 $itemArray[] = $item;
169 $this->uid = $array[
'uid'];
170 $this->title = $array[
'title'];
171 $this->description = $array[
'description'];
172 $this->itemsCriteria = $array[static::$itemsCriteriaField];
202 $this->storage->push($data);
210 public function addAll(\TYPO3\CMS\Core\Collection\CollectionInterface $other)
213 foreach ($other as $value) {
227 foreach ($this->storage as $value) {
228 if ($value === $file) {
233 $this->storage->offsetUnset($offset);
241 $this->storage = new \SplDoublyLinkedList();