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
InstancePool Class InstancePool
File: /Konquadrat/src/Object/InstancePool.php
Class hierarchy
Implements
Summary
Properties
$active
protected InstancePool::$active = true
Methods
getObjectById()
Get the cached instance of an abstractObject.
Parameters
- $id : int
Exceptions
Throws UnknownObjectException If the object isn't in the cache.
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
