TYPO3
7.6
|
Public Member Functions | |
findByUid ($uid) | |
findAll () | |
findByTableName ($tableName) | |
findByType ($type) | |
findByTypeAndTableName ($type, $tableName) | |
deleteByUid ($uid) | |
Public Attributes | |
const | TYPE_Static = 'static' |
Protected Member Functions | |
queryMultipleRecords (array $conditions=array()) | |
createDomainObject (array $record) | |
createMultipleDomainObjects (array $data) | |
getDatabaseConnection () | |
Protected Attributes | |
$table = 'sys_collection' | |
$typeField = 'type' | |
$tableField = 'table_name' | |
Implements the repository for record collections.
Definition at line 22 of file RecordCollectionRepository.php.
|
protected |
Creates a record collection domain object.
array | $record | Database record to be reconstituted |
\RuntimeException |
Definition at line 163 of file RecordCollectionRepository.php.
References AbstractRecordCollection\create().
Referenced by RecordCollectionRepository\createMultipleDomainObjects(), and RecordCollectionRepository\findByUid().
|
protected |
Creates multiple record collection domain objects.
array | $data | Array of multiple database records to be reconstituted |
Definition at line 181 of file RecordCollectionRepository.php.
References RecordCollectionRepository\createDomainObject().
Referenced by RecordCollectionRepository\queryMultipleRecords().
deleteByUid | ( | $uid | ) |
Deletes a record collection by uid.
int | $uid | uid to be deleted |
Definition at line 126 of file RecordCollectionRepository.php.
References $GLOBALS, and RecordCollectionRepository\getDatabaseConnection().
findAll | ( | ) |
Finds all record collections.
Definition at line 71 of file RecordCollectionRepository.php.
References RecordCollectionRepository\queryMultipleRecords().
findByTableName | ( | $tableName | ) |
Finds record collections by table name.
string | $tableName | Name of the table to be looked up |
Definition at line 82 of file RecordCollectionRepository.php.
References RecordCollectionRepository\getDatabaseConnection(), and RecordCollectionRepository\queryMultipleRecords().
findByType | ( | $type | ) |
Finds record collection by type.
string | $type | Type to be looked up |
Definition at line 96 of file RecordCollectionRepository.php.
References RecordCollectionRepository\getDatabaseConnection(), and RecordCollectionRepository\queryMultipleRecords().
findByTypeAndTableName | ( | $type, | |
$tableName | |||
) |
Finds record collections by type and table name.
string | $type | Type to be looked up |
string | $tableName | Name of the table to be looked up |
Definition at line 111 of file RecordCollectionRepository.php.
References RecordCollectionRepository\getDatabaseConnection(), and RecordCollectionRepository\queryMultipleRecords().
findByUid | ( | $uid | ) |
Finds a record collection by uid.
int | $uid | The uid to be looked up |
Definition at line 52 of file RecordCollectionRepository.php.
References RecordCollectionRepository\createDomainObject(), BackendUtility\deleteClause(), and RecordCollectionRepository\getDatabaseConnection().
|
protected |
Gets the database object.
Definition at line 195 of file RecordCollectionRepository.php.
References $GLOBALS.
Referenced by RecordCollectionRepository\deleteByUid(), RecordCollectionRepository\findByTableName(), RecordCollectionRepository\findByType(), RecordCollectionRepository\findByTypeAndTableName(), RecordCollectionRepository\findByUid(), and RecordCollectionRepository\queryMultipleRecords().
|
protected |
Queries for multiple records for the given conditions.
array | $conditions | Conditions concatenated with AND for query |
Definition at line 137 of file RecordCollectionRepository.php.
References RecordCollectionRepository\createMultipleDomainObjects(), BackendUtility\deleteClause(), and RecordCollectionRepository\getDatabaseConnection().
Referenced by RecordCollectionRepository\findAll(), RecordCollectionRepository\findByTableName(), RecordCollectionRepository\findByType(), and RecordCollectionRepository\findByTypeAndTableName().
|
protected |
Definition at line 34 of file RecordCollectionRepository.php.
|
protected |
Definition at line 44 of file RecordCollectionRepository.php.
|
protected |
Definition at line 39 of file RecordCollectionRepository.php.
const TYPE_Static = 'static' |
Definition at line 27 of file RecordCollectionRepository.php.