/** * Override of the base AttachObserver so that when an observer is attached, it * will also be attached to all child objects. Note that some initialization * messages won't be observed unless you provide it in the Phreezer constructor */ public function AttachObserver($observer) { parent::AttachObserver($observer); foreach ($this->DataAdapters as $adapter) { $adapter->AttachObserver($observer); } }
/** * Override of the base AttachObserver so that when an observer is attached, it * will also be attached to all child objects. Note that some initialization * messages won't be observed unless you provide it in the Phreezer constructor */ public function AttachObserver($observer) { parent::AttachObserver($observer); $this->DataAdapter->AttachObserver($observer); }