TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Persistence_IdentityMap

Public Member Functions

 hasObject ($object)
 
 hasIdentifier ($uuid, $className)
 
 getObjectByIdentifier ($uuid, $className)
 
 getIdentifierByObject ($object)
 
 registerObject ($object, $uuid)
 
 unregisterObject ($object)
 

Protected Attributes

 $persistenceSession
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! An identity mapper to map nodes to objects

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

See also
Deprecated:
since 6.1, will be removed two versions later, use the persistence session instead

Definition at line 24 of file IdentityMap.php.

Member Function Documentation

◆ getIdentifierByObject()

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::getIdentifierByObject (   $object)

Returns the node identifier for the given object

Parameters
object$object
Exceptions

Definition at line 76 of file IdentityMap.php.

◆ getObjectByIdentifier()

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::getObjectByIdentifier (   $uuid,
  $className 
)

Returns the object for the given UUID

Parameters
string$uuid
string$className
Returns
object
Deprecated:
since 6.1, will be removed two versions later, use the persistence session instead

Definition at line 63 of file IdentityMap.php.

◆ hasIdentifier()

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::hasIdentifier (   $uuid,
  $className 
)

Checks whether the given UUID is known to the identity map

Parameters
string$uuid
string$className
Returns
boolean
Deprecated:
since 6.1, will be removed two versions later, use the persistence session instead

Definition at line 51 of file IdentityMap.php.

◆ hasObject()

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::hasObject (   $object)

Checks whether the given object is known to the identity map

Parameters
object$object
Returns
boolean
Deprecated:
since 6.1, will be removed two versions later, use the persistence session instead

Definition at line 39 of file IdentityMap.php.

◆ registerObject()

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::registerObject (   $object,
  $uuid 
)

Register a node identifier for an object

Parameters
object$object
string$uuid
Deprecated:
since 6.1, will be removed two versions later, use the persistence session instead

Definition at line 87 of file IdentityMap.php.

◆ unregisterObject()

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::unregisterObject (   $object)

Unregister an object

Parameters
object$object
Returns
void
Deprecated:
since 6.1, will be removed two versions later, use the persistence session instead

Definition at line 98 of file IdentityMap.php.

Member Data Documentation

◆ $persistenceSession

TYPO3\CMS\Extbase\Persistence\Generic\IdentityMap::$persistenceSession
protected

Definition at line 30 of file IdentityMap.php.