TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Persistence\RepositoryInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\RepositoryInterface:
TYPO3\CMS\Core\Resource\AbstractRepository TYPO3\CMS\Extbase\Persistence\Repository TYPO3\CMS\Core\Resource\FileRepository TYPO3\CMS\Core\Resource\ProcessedFileRepository TYPO3\CMS\Core\Resource\StorageRepository ExtbaseTeam\BlogExample\Domain\Repository\BlogRepository ExtbaseTeam\BlogExample\Domain\Repository\PersonRepository ExtbaseTeam\BlogExample\Domain\Repository\PostRepository ExtbaseTeam\BlogExample\Domain\Repository\TtContentRepository OliverHader\IrreTutorial\Domain\Repository\ContentRepository TYPO3\CMS\About\Domain\Repository\ExtensionRepository TYPO3\CMS\Belog\Domain\Repository\HistoryEntryRepository TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository TYPO3\CMS\Belog\Domain\Repository\WorkspaceRepository TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository TYPO3\CMS\Beuser\Domain\Repository\BackendUserSessionRepository TYPO3\CMS\Extbase\Domain\Repository\BackendUserGroupRepository TYPO3\CMS\Extbase\Domain\Repository\BackendUserRepository TYPO3\CMS\Extbase\Domain\Repository\CategoryRepository TYPO3\CMS\Extbase\Domain\Repository\FileMountRepository TYPO3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository

Public Member Functions

 add ($object)
 
 remove ($object)
 
 update ($modifiedObject)
 
 findAll ()
 
 countAll ()
 
 removeAll ()
 
 findByUid ($uid)
 
 findByIdentifier ($identifier)
 
 setDefaultOrderings (array $defaultOrderings)
 
 setDefaultQuerySettings (\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $defaultQuerySettings)
 
 createQuery ()
 

Detailed Description

Contract for a repository

Definition at line 22 of file RepositoryInterface.php.

Member Function Documentation

◆ add()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::add (   $object)

Adds an object to this repository.

Parameters
object$objectThe object to add
Returns
void

Implemented in TYPO3\CMS\Core\Resource\ProcessedFileRepository, TYPO3\CMS\Extbase\Persistence\Repository, and TYPO3\CMS\Core\Resource\AbstractRepository.

◆ countAll()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::countAll ( )

Returns the total number objects of this repository.

Returns
int The object count

Implemented in TYPO3\CMS\Core\Resource\AbstractRepository, TYPO3\CMS\Extbase\Persistence\Repository, and TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository.

◆ createQuery()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::createQuery ( )

◆ findAll()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::findAll ( )

◆ findByIdentifier()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::findByIdentifier (   $identifier)

Finds an object matching the given identifier.

Parameters
mixed$identifierThe identifier of the object to find
Returns
object The matching object if found, otherwise NULL

Implemented in TYPO3\CMS\Core\Resource\AbstractRepository, and TYPO3\CMS\Extbase\Persistence\Repository.

◆ findByUid()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::findByUid (   $uid)

Finds an object matching the given identifier.

Parameters
int$uidThe identifier of the object to find
Returns
object The matching object if found, otherwise NULL

Implemented in TYPO3\CMS\Core\Resource\AbstractRepository, TYPO3\CMS\Extbase\Persistence\Repository, and TYPO3\CMS\Core\Resource\StorageRepository.

◆ remove()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::remove (   $object)

Removes an object from this repository.

Parameters
object$objectThe object to remove
Returns
void

Implemented in TYPO3\CMS\Extbase\Persistence\Repository, and TYPO3\CMS\Core\Resource\AbstractRepository.

◆ removeAll()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::removeAll ( )

Removes all objects of this repository as if remove() was called for all of them.

Returns
void

Implemented in TYPO3\CMS\Core\Resource\AbstractRepository, and TYPO3\CMS\Extbase\Persistence\Repository.

◆ setDefaultOrderings()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::setDefaultOrderings ( array  $defaultOrderings)

Sets the property names to order the result by per default. Expected like this: array( 'foo' => ::ORDER_ASCENDING, 'bar' => ::ORDER_DESCENDING )

Parameters
array$defaultOrderingsThe property names to order by
Returns
void

Implemented in TYPO3\CMS\Core\Resource\AbstractRepository, and TYPO3\CMS\Extbase\Persistence\Repository.

◆ setDefaultQuerySettings()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::setDefaultQuerySettings ( \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface  $defaultQuerySettings)

Sets the default query settings to be used in this repository

Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface$defaultQuerySettingsThe query settings to be used by default
Returns
void

Implemented in TYPO3\CMS\Core\Resource\AbstractRepository, and TYPO3\CMS\Extbase\Persistence\Repository.

◆ update()

TYPO3\CMS\Extbase\Persistence\RepositoryInterface::update (   $modifiedObject)

Replaces an existing object with the same identifier by the given object

Parameters
object$modifiedObjectThe modified object

Implemented in TYPO3\CMS\Core\Resource\ProcessedFileRepository, TYPO3\CMS\Extbase\Persistence\Repository, and TYPO3\CMS\Core\Resource\AbstractRepository.