TYPO3
7.6
|
Public Member Functions | |
persistAll () | |
clearState () | |
isNewObject ($object) | |
getIdentifierByObject ($object) | |
getObjectByIdentifier ($identifier, $objectType=null, $useLazyLoading=false) | |
getObjectCountByQuery (QueryInterface $query) | |
getObjectDataByQuery (QueryInterface $query) | |
registerRepositoryClassName ($className) | |
add ($object) | |
remove ($object) | |
update ($object) | |
injectSettings (array $settings) | |
convertObjectToIdentityArray ($object) | |
convertObjectsToIdentityArrays (array $array) | |
createQueryForType ($type) | |
The Extbase Persistence Manager interface
Definition at line 20 of file PersistenceManagerInterface.php.
add | ( | $object | ) |
Adds an object to the persistence.
object | $object | The object to add |
Implemented in PersistenceManager.
clearState | ( | ) |
Clears the in-memory state of the persistence.
Managed instances become detached, any fetches will return data directly from the persistence "backend".
Implemented in PersistenceManager.
convertObjectsToIdentityArrays | ( | array | $array | ) |
Recursively iterates through the given array and turns objects into arrays containing the identity of the domain object.
array | $array | The array to be iterated over |
\TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException | if array contains objects that are not known to the Persistence Manager |
Implemented in PersistenceManager.
convertObjectToIdentityArray | ( | $object | ) |
Converts the given object into an array containing the identity of the domain object.
object | $object | The object to be converted |
\TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException | if the given object is not known to the Persistence Manager |
Implemented in PersistenceManager.
createQueryForType | ( | $type | ) |
Return a query object for the given type.
string | $type |
Implemented in PersistenceManager.
getIdentifierByObject | ( | $object | ) |
Returns the (internal) identifier for the object, if it is known to the backend. Otherwise NULL is returned.
Note: this returns an identifier even if the object has not been persisted in case of AOP-managed entities. Use isNewObject() if you need to distinguish those cases.
object | $object |
Implemented in PersistenceManager.
getObjectByIdentifier | ( | $identifier, | |
$objectType = null , |
|||
$useLazyLoading = false |
|||
) |
Returns the object with the (internal) identifier, if it is known to the backend. Otherwise NULL is returned.
mixed | $identifier | |
string | $objectType | |
bool | $useLazyLoading | Set to TRUE if you want to use lazy loading for this object |
Implemented in PersistenceManager.
getObjectCountByQuery | ( | QueryInterface | $query | ) |
Returns the number of records matching the query.
QueryInterface | $query |
Implemented in PersistenceManager.
getObjectDataByQuery | ( | QueryInterface | $query | ) |
Returns the object data matching the $query.
QueryInterface | $query |
Implemented in PersistenceManager.
injectSettings | ( | array | $settings | ) |
Injects the Extbase settings, called by Extbase.
array | $settings |
Implemented in PersistenceManager.
isNewObject | ( | $object | ) |
Checks if the given object has ever been persisted.
object | $object | The object to check |
Implemented in PersistenceManager.
persistAll | ( | ) |
Commits new objects and changes to objects in the current persistence session into the backend
Implemented in PersistenceManager.
registerRepositoryClassName | ( | $className | ) |
Registers a repository
string | $className | The class name of the repository to be registered |
Implemented in PersistenceManager.
remove | ( | $object | ) |
Removes an object to the persistence.
object | $object | The object to remove |
Implemented in PersistenceManager.
update | ( | $object | ) |
Update an object in the persistence.
object | $object | The modified object |
\TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException |
Implemented in PersistenceManager.