Support Joomla!

references:joomla.framework:base:jobserver-update

Table of Contents

update

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

Method to update the state of observable objects. The default implementation of this method does nothing, but will raise an JError|error if called directly.

Event distribution is handled by the JEventDispatcher class which is instantiated by JApplication. When an event is triggered, all registered Observers are checked to see if they provided a valid *callback method* to handle the event. If the callback exists in the Observer class, then the update function is called with an array passed as its parameter. The update function should return the results of the function call.

Syntax

mixed update ()

Examples

The update method is called by the JEventDispatcher class. For an example of a child class which implements this method, see the JPlugin class.

 
references/joomla.framework/base/jobserver-update.txt (426 views) · Last modified: 2007/08/15 15:08