‪TYPO3CMS  10.4
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\A\Domain\Model\ARepository ExtbaseTeam\B\Domain\Model\BRepository 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\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\Extbase\Tests\Unit\Persistence\Fixture\Domain\Repository\EntityRepository TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyModelRepository TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository

Public Member Functions

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

Detailed Description

Contract for a repository

Definition at line 23 of file RepositoryInterface.php.

Member Function Documentation

◆ add()

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

Adds an object to this repository.

Parameters
object$object‪The object to add

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

◆ countAll()

int 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 QueryInterface TYPO3\CMS\Extbase\Persistence\RepositoryInterface::createQuery ( )

◆ findAll()

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

Returns all objects of this repository.

Returns
‪\TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array The query result

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

◆ findByIdentifier()

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

Finds an object matching the given identifier.

Parameters
mixed$identifier‪The 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()

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

Finds an object matching the given identifier.

Parameters
int$uid‪The 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$object‪The object to remove

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.

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' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING )

Parameters
array$defaultOrderings‪The property names to order by

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

◆ setDefaultQuerySettings()

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

Sets the default query settings to be used in this repository

Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface$defaultQuerySettings‪The query settings to be used by default

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$modifiedObject‪The modified object

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