![]() |
TYPO3
7.6
|
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 () | |
Contract for a repository
Definition at line 22 of file RepositoryInterface.php.
add | ( | $object | ) |
Adds an object to this repository.
object | $object | The object to add |
Implemented in ProcessedFileRepository, Repository, and AbstractRepository.
countAll | ( | ) |
Returns the total number objects of this repository.
Implemented in AbstractRepository, Repository, and ExtensionRepository.
createQuery | ( | ) |
Returns a query for objects of this repository
Implemented in AbstractRepository, Repository, BackendUserRepository, and BackendUserGroupRepository.
findAll | ( | ) |
Returns all objects of this repository.
Implemented in Repository, AbstractRepository, and ExtensionRepository.
findByIdentifier | ( | $identifier | ) |
Finds an object matching the given identifier.
mixed | $identifier | The identifier of the object to find |
Implemented in AbstractRepository, and Repository.
findByUid | ( | $uid | ) |
Finds an object matching the given identifier.
int | $uid | The identifier of the object to find |
Implemented in AbstractRepository, Repository, and StorageRepository.
remove | ( | $object | ) |
Removes an object from this repository.
object | $object | The object to remove |
Implemented in Repository, and AbstractRepository.
removeAll | ( | ) |
Removes all objects of this repository as if remove() was called for all of them.
Implemented in AbstractRepository, and Repository.
setDefaultOrderings | ( | array | $defaultOrderings | ) |
Sets the property names to order the result by per default. Expected like this: array( 'foo' => ::ORDER_ASCENDING, 'bar' => ::ORDER_DESCENDING )
array | $defaultOrderings | The property names to order by |
Implemented in AbstractRepository, and Repository.
setDefaultQuerySettings | ( | \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface | $defaultQuerySettings | ) |
Sets the default query settings to be used in this repository
\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface | $defaultQuerySettings | The query settings to be used by default |
Implemented in AbstractRepository, and Repository.
update | ( | $modifiedObject | ) |
Replaces an existing object with the same identifier by the given object
object | $modifiedObject | The modified object |
Implemented in ProcessedFileRepository, Repository, and AbstractRepository.