‪TYPO3CMS  ‪main
PersistenceManagerInterface.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
24 {
29  public function ‪persistAll(): void;
30 
37  public function ‪clearState(): void;
38 
45  public function ‪isNewObject(object $object): bool;
46 
58  public function ‪getIdentifierByObject(object $object): ?string;
59 
67  public function ‪getObjectByIdentifier(string|int ‪$identifier, ?string $objectType = null, bool $useLazyLoading = false): ?object;
68 
72  public function ‪getObjectCountByQuery(‪QueryInterface $query): int;
73 
77  public function ‪getObjectDataByQuery(‪QueryInterface $query): array;
78 
84  public function ‪registerRepositoryClassName(string $className): void;
85 
91  public function ‪add(object $object): void;
92 
98  public function remove(object $object): void;
99 
106  public function ‪update(object $object): void;
107 
117  public function ‪createQueryForType(string $type): ‪QueryInterface;
118 }
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
Definition: PersistenceManagerInterface.php:24
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.php:30
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\clearState
‪clearState()
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\registerRepositoryClassName
‪registerRepositoryClassName(string $className)
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\getObjectDataByQuery
‪getObjectDataByQuery(QueryInterface $query)
‪TYPO3\CMS\Extbase\Persistence
Definition: ClassesConfiguration.php:18
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\persistAll
‪persistAll()
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\isNewObject
‪bool isNewObject(object $object)
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\getObjectByIdentifier
‪object null getObjectByIdentifier(string|int $identifier, ?string $objectType=null, bool $useLazyLoading=false)
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\add
‪add(object $object)
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\getObjectCountByQuery
‪getObjectCountByQuery(QueryInterface $query)
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\update
‪update(object $object)
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\getIdentifierByObject
‪string null getIdentifierByObject(object $object)
‪TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface\createQueryForType
‪QueryInterface< T > createQueryForType(string $type)