ObjectCollection (class)
Class ObjectCollection
Deals with Collections of objects. Keeping registries of those objects, loading and constructing new objects and triggering callbacks. Each subclass needs to implement its own load() functionality.
All core subclasses of ObjectCollection by convention loaded objects are stored in $this->_loaded
. Enabled objects are stored in $this->_enabled
. In addition, they all support an enabled
option that controls the enabled/disabled state of the object when loaded.