TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Collection\RecordCollectionRepository Class Reference
Inheritance diagram for TYPO3\CMS\Core\Collection\RecordCollectionRepository:
TYPO3\CMS\Core\Resource\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=[])
 
 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()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::createDomainObject ( array  $record)
protected

Creates a record collection domain object.

Parameters
array$recordDatabase record to be reconstituted
Returns
Exceptions

Definition at line 163 of file RecordCollectionRepository.php.

References TYPO3\CMS\Core\Collection\AbstractRecordCollection\create().

Referenced by TYPO3\CMS\Core\Collection\RecordCollectionRepository\createMultipleDomainObjects(), and TYPO3\CMS\Core\Collection\RecordCollectionRepository\findByUid().

◆ createMultipleDomainObjects()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::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 TYPO3\CMS\Core\Collection\RecordCollectionRepository\createDomainObject().

Referenced by TYPO3\CMS\Core\Collection\RecordCollectionRepository\queryMultipleRecords().

◆ deleteByUid()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::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, $uid, and TYPO3\CMS\Core\Collection\RecordCollectionRepository\getDatabaseConnection().

◆ findAll()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::findAll ( )

Finds all record collections.

Returns
NULL|[]

Definition at line 71 of file RecordCollectionRepository.php.

References TYPO3\CMS\Core\Collection\RecordCollectionRepository\queryMultipleRecords().

◆ findByTableName()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::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 TYPO3\CMS\Core\Collection\RecordCollectionRepository\getDatabaseConnection(), and TYPO3\CMS\Core\Collection\RecordCollectionRepository\queryMultipleRecords().

◆ findByType()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::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 TYPO3\CMS\Core\Collection\RecordCollectionRepository\getDatabaseConnection(), and TYPO3\CMS\Core\Collection\RecordCollectionRepository\queryMultipleRecords().

◆ findByTypeAndTableName()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::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 TYPO3\CMS\Core\Collection\RecordCollectionRepository\getDatabaseConnection(), and TYPO3\CMS\Core\Collection\RecordCollectionRepository\queryMultipleRecords().

◆ findByUid()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::findByUid (   $uid)

◆ getDatabaseConnection()

◆ queryMultipleRecords()

Member Data Documentation

◆ $table

TYPO3\CMS\Core\Collection\RecordCollectionRepository::$table = 'sys_collection'
protected

Definition at line 34 of file RecordCollectionRepository.php.

◆ $tableField

TYPO3\CMS\Core\Collection\RecordCollectionRepository::$tableField = 'table_name'
protected

Definition at line 44 of file RecordCollectionRepository.php.

◆ $typeField

TYPO3\CMS\Core\Collection\RecordCollectionRepository::$typeField = 'type'
protected

Definition at line 39 of file RecordCollectionRepository.php.

◆ TYPE_Static