references:joomla.framework:base:jobserver-updateupdate
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. Syntaxmixed update () ExamplesThe update method is called by the JEventDispatcher class. For an example of a child class which implements this method, see the JPlugin class. |


