Table of Contents

notify

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Base Class JObservable Method notify Reference notify() Never Work in Progress

The notify function will traverse each observer that has been attached to it and invoke its update function. Child classes should override this function in order to pass the appropriate arguments on to its observers. An array of the return values from each observer is returned.

Syntax

array notify ()

Examples

The notify function should be called by a class when an event has been triggered or when it needs to notify an observer of a change in status.

Example

$this->notify();