TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Collection\RecordCollectionRepository Class Reference
Inheritance diagram for TYPO3\CMS\Core\Collection\RecordCollectionRepository:
t3lib_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=array())
 
 createDomainObject (array $record)
 
 createMultipleDomainObjects (array $data)
 
 getDatabaseConnection ()
 

Protected Attributes

 $table = 'sys_collection'
 
 $typeField = 'type'
 
 $tableField = 'table_name'
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Implements the repository for record collections.

Author
Steffen Ritter typo3.nosp@m.@ste.nosp@m.ffen-.nosp@m.ritt.nosp@m.er.ne.nosp@m.t

Definition at line 21 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

Definition at line 142 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 159 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
integer$uiduid to be deleted
Returns
void

Definition at line 112 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 61 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 71 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 84 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 98 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)

Finds a record collection by uid.

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

Definition at line 47 of file RecordCollectionRepository.php.

References $result, $uid, TYPO3\CMS\Core\Collection\RecordCollectionRepository\createDomainObject(), and TYPO3\CMS\Core\Collection\RecordCollectionRepository\getDatabaseConnection().

◆ getDatabaseConnection()

◆ queryMultipleRecords()

TYPO3\CMS\Core\Collection\RecordCollectionRepository::queryMultipleRecords ( array  $conditions = array())
protected

Member Data Documentation

◆ $table

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

Definition at line 29 of file RecordCollectionRepository.php.

◆ $tableField

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

Definition at line 39 of file RecordCollectionRepository.php.

◆ $typeField

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

Definition at line 34 of file RecordCollectionRepository.php.

◆ TYPE_Static