Index
-
\com\setasign\Konquadrat
-
Object
- AbstractCachingDocument
- AbstractObject
- AbstractObjectInterface
- AbstractObjectSet
- Action
- ActionResolver
- ActionResolverInterface
- Custom
- Database
- DocumentInterface
- DocumentResolver
- DocumentResolverInterface
- GlobalDiWakeupObjectResolver
- History
- ImportInterface
- InitTraitResolver
- InitTraitResolverInterface
- InstancePool
- InstancePoolInterface
- InstancePoolManager
- ManualQueryBuilder
- MassActionResolver
- MassActionResolverInterface
- MessageList
- MissingConfigurationException
- ObjectConfig
- ObjectFactory
- ObjectFactoryInterface
- ObjectFinder
- ObjectManager
- ObjectSaveException
- ObjectSet
- ObjectSet
- ObjectTableManager
- Scope
- Selector
- SmartObjectSet
- TemporaryReference
- TransactionManager
- UnknownObjectException
- WakeupObjectResolverInterface
-
Object
com\setasign\Konquadrat\Object
InstancePoolInterface Interface InstancePoolInterface
File: /Konquadrat/src/Object/InstancePoolInterface.php
Implemented in
Summary
Methods
getObjectById()
Get the cached instance of an abstractObject.
Parameters
- $id : int
Exceptions
Throws UnknownObjectException If the object isn't in the cache.
hasInstance()
Checks whether an instance of the abstractObject is in the cache and whether the cache is active.
Parameters
- $id : int
reset()
Reset the instance pool to default settings.
Reset cached instances and activates the instance pool (if inactive).
resetObject()
Reset a single cached instance.
It will not be checked whether this instance exists.
Parameters
- $id : int
setActive()
Set the flag whether the instance pool caches the abstractObject.
Parameters
- $flag : bool
setObject()
Enforces an instance for an object id if the pool is active and the object has an id.
Parameters
- $object : AbstractObjectInterface
