85 $this->storage = new \SplDoublyLinkedList();
96 return $this->storage->current();
107 $this->storage->next();
118 $currentRecord = $this->storage->current();
119 return $currentRecord[
'uid'];
130 return $this->storage->valid();
141 $this->storage->rewind();
168 return self::load($data[
'uid']);
179 return $this->storage->count();
226 $this->description = $desc;
245 $this->itemTableName = $tableName;
258 public function usort($callbackFunction) {
260 throw new \RuntimeException(
'This method is not yet supported.', 1322545589);
273 public function moveItemAt($currentPosition, $newPosition = 0) {
275 throw new \RuntimeException(
'This method is not yet supported.', 1322545626);
294 $this->uid = (int)$id;
308 static public function load($id, $fillItems = FALSE) {
309 $collectionRecord =
$GLOBALS[
'TYPO3_DB']->exec_SELECTgetSingleRow(
'*', static::$storageTableName,
'uid=' . (
int)$id . \
TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause(static::$storageTableName));
310 return self::create($collectionRecord, $fillItems);
321 static public function create(array $collectionRecord, $fillItems = FALSE) {
322 $collection =
new static();
323 $collection->fromArray($collectionRecord);
325 $collection->loadContents();
338 trim(static::$storageTableName) => array(
344 $data[trim(static::$storageTableName)][
$uid][
'pid'] = 0;
348 $tce->stripslashes_values = 0;
349 $tce->start($data, array());
350 $tce->process_datamap();
374 foreach ($this->storage as $entry) {
375 $list[] = ($includeTableName ? $this->
getItemTableName() .
'_' :
'') . $entry[
'uid'];
377 return implode(
',', $list);
386 $itemArray = array();
387 foreach ($this->storage as $item) {
388 $itemArray[] = $item;
395 'items' => $itemArray
406 $this->uid = $array[
'uid'];
407 $this->title = $array[
'title'];
408 $this->description = $array[
'description'];
409 $this->itemTableName = $array[
'table_name'];
static load($id, $fillItems=FALSE)
getPersistableDataArray()
getItemUidList($includeTableName=TRUE)
setItemTableName($tableName)
static makeInstance($className)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static $storageItemsField
static create(array $collectionRecord, $fillItems=FALSE)
moveItemAt($currentPosition, $newPosition=0)