TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
RecordCollectionRepository Class Reference
Inheritance diagram for RecordCollectionRepository:
FileCollectionRepository

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'
 

Detailed Description

Implements the repository for record collections.

Definition at line 22 of file RecordCollectionRepository.php.

Member Function Documentation

createDomainObject ( array  $record)
protected

Creates a record collection domain object.

Parameters
array$recordDatabase record to be reconstituted
Returns
Exceptions
\RuntimeException

Definition at line 163 of file RecordCollectionRepository.php.

References AbstractRecordCollection\create().

Referenced by RecordCollectionRepository\createMultipleDomainObjects(), and RecordCollectionRepository\findByUid().

createMultipleDomainObjects ( array  $data)
protected

Creates multiple record collection domain objects.

Parameters
array$dataArray of multiple database records to be reconstituted
Returns
[]

Definition at line 181 of file RecordCollectionRepository.php.

References RecordCollectionRepository\createDomainObject().

Referenced by RecordCollectionRepository\queryMultipleRecords().

deleteByUid (   $uid)

Deletes a record collection by uid.

Parameters
int$uiduid to be deleted
Returns
void

Definition at line 126 of file RecordCollectionRepository.php.

References $GLOBALS, and RecordCollectionRepository\getDatabaseConnection().

findAll ( )

Finds all record collections.

Returns
NULL|[]

Definition at line 71 of file RecordCollectionRepository.php.

References RecordCollectionRepository\queryMultipleRecords().

findByTableName (   $tableName)

Finds record collections by table name.

Parameters
string$tableNameName of the table to be looked up
Returns
[]

Definition at line 82 of file RecordCollectionRepository.php.

References RecordCollectionRepository\getDatabaseConnection(), and RecordCollectionRepository\queryMultipleRecords().

findByType (   $type)

Finds record collection by type.

Parameters
string$typeType to be looked up
Returns
NULL|[]

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.

Parameters
string$typeType to be looked up
string$tableNameName of the table to be looked up
Returns
NULL|[]

Definition at line 111 of file RecordCollectionRepository.php.

References RecordCollectionRepository\getDatabaseConnection(), and RecordCollectionRepository\queryMultipleRecords().

findByUid (   $uid)

Finds a record collection by uid.

Parameters
int$uidThe uid to be looked up
Returns
NULL|

Definition at line 52 of file RecordCollectionRepository.php.

References RecordCollectionRepository\createDomainObject(), BackendUtility\deleteClause(), and RecordCollectionRepository\getDatabaseConnection().

getDatabaseConnection ( )
protected
queryMultipleRecords ( array  $conditions = array())
protected

Member Data Documentation

$table = 'sys_collection'
protected

Definition at line 34 of file RecordCollectionRepository.php.

$tableField = 'table_name'
protected

Definition at line 44 of file RecordCollectionRepository.php.

$typeField = 'type'
protected

Definition at line 39 of file RecordCollectionRepository.php.

const TYPE_Static = 'static'

Definition at line 27 of file RecordCollectionRepository.php.