31 static public function create(array $collectionRecord, $fillItems = FALSE) {
34 $collection->fromArray($collectionRecord);
36 $collection->loadContents();
47 parent::__construct();
48 if (!empty($tableName)) {
50 } elseif (empty($this->itemTableName)) {
51 throw new \RuntimeException(
'TYPO3\\CMS\\Core\\Collection\\StaticRecordCollection needs a valid itemTableName.', 1330293778);
70 foreach ($entries as $entry) {
99 public function add($data) {
100 $this->storage->push($data);
110 foreach ($other as $value) {
123 public function remove($data) {
125 foreach ($this->storage as $value) {
126 if ($value == $data) {
131 $this->storage->offsetUnset($offset);
142 $this->storage = new \SplDoublyLinkedList();
153 $relatedRecords = array();
156 while ($record =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($resource)) {
157 $relatedRecords[] = $record;
159 $GLOBALS[
'TYPO3_DB']->sql_free_result($resource);
161 return $relatedRecords;
getItemUidList($includeTableName=TRUE)
setItemTableName($tableName)
static makeInstance($className)
getPersistableDataArray()
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static create(array $collectionRecord, $fillItems=FALSE)
addAll(\TYPO3\CMS\Core\Collection\CollectionInterface $other)
__construct($tableName=NULL)