![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($tableName=null) | |
loadContents () | |
add ($data) | |
addAll (CollectionInterface $other) | |
remove ($data) | |
removeAll () | |
![]() | |
__construct () | |
current () | |
next () | |
key () | |
valid () | |
rewind () | |
serialize () | |
unserialize ($serialized) | |
count () | |
getTitle () | |
getUid () | |
getDescription () | |
setTitle ($title) | |
setDescription ($desc) | |
getItemTableName () | |
setItemTableName ($tableName) | |
usort ($callbackFunction) | |
moveItemAt ($currentPosition, $newPosition=0) | |
getIdentifier () | |
setIdentifier ($id) | |
toArray () | |
fromArray (array $array) | |
![]() | |
persist () | |
Protected Member Functions | |
getPersistableDataArray () | |
getCollectedRecords () | |
getDatabaseConnection () | |
![]() | |
getPersistableDataArray () | |
getItemUidList ($includeTableName=true) | |
Additional Inherited Members | |
![]() | |
static | load ($id, $fillItems=false) |
static | create (array $collectionRecord, $fillItems=false) |
![]() | |
$uid = 0 | |
$title | |
$description | |
$itemTableName | |
$storage | |
![]() | |
static | $storageTableName = 'sys_collection' |
static | $storageItemsField = 'items' |
Implementation of a RecordCollection for static TCA-Records
Definition at line 20 of file StaticRecordCollection.php.
__construct | ( | $tableName = null | ) |
Creates this object.
string | $tableName | Name of the table to be working on |
\RuntimeException |
Definition at line 50 of file StaticRecordCollection.php.
References elseif, and AbstractRecordCollection\setItemTableName().
add | ( | $data | ) |
Adds on entry to the collection
mixed | $data |
Implements EditableCollectionInterface.
Definition at line 106 of file StaticRecordCollection.php.
Referenced by StaticRecordCollection\addAll(), and StaticRecordCollection\loadContents().
addAll | ( | CollectionInterface | $other | ) |
Adds a set of entries to the collection
CollectionInterface | $other |
Implements EditableCollectionInterface.
Definition at line 117 of file StaticRecordCollection.php.
References StaticRecordCollection\add().
|
protected |
Gets the collected records in this collection, by looking up the MM relations of this record to the table name defined in the local field 'table_name'.
Definition at line 163 of file StaticRecordCollection.php.
References StaticRecordCollection\getDatabaseConnection(), AbstractRecordCollection\getIdentifier(), and AbstractRecordCollection\getItemTableName().
Referenced by StaticRecordCollection\loadContents().
|
protected |
Gets the database object.
Definition at line 187 of file StaticRecordCollection.php.
References $GLOBALS.
Referenced by StaticRecordCollection\getCollectedRecords().
|
protected |
Returns an array of the persistable properties and contents which are processable by TCEmain.
for internal usage in persist only.
Definition at line 89 of file StaticRecordCollection.php.
References AbstractRecordCollection\getDescription(), AbstractRecordCollection\getItemTableName(), AbstractRecordCollection\getItemUidList(), and AbstractRecordCollection\getTitle().
loadContents | ( | ) |
Populates the content-entries of the storage
Queries the underlying storage for entries of the collection and adds them to the collection data.
If the content entries of the storage had not been loaded on creation ($fillItems = false) this function is to be used for loading the contents afterwards.
Implements PersistableCollectionInterface.
Definition at line 72 of file StaticRecordCollection.php.
References StaticRecordCollection\add(), StaticRecordCollection\getCollectedRecords(), and StaticRecordCollection\removeAll().
remove | ( | $data | ) |
Removes the given entry from collection
Note: not the given "index"
mixed | $data |
Implements EditableCollectionInterface.
Definition at line 132 of file StaticRecordCollection.php.
removeAll | ( | ) |
Removes all entries from the collection
collection will be empty afterwards
Implements EditableCollectionInterface.
Definition at line 151 of file StaticRecordCollection.php.
Referenced by StaticRecordCollection\loadContents().