Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

Abstract Class JObservable

Description

Abstract observable class to implement the observer design pattern

Located in /joomla/base/observer.php (line 70)

Class JObject

Abstract class JObservable   (Subpackage Base)
Direct descendents
Class Description
ClassJEditor JEditor class to handle WYSIWYG editors
ClassJEventDispatcher Class to handle dispatching of events.
Method Summary
Constructor JObservable __construct ()
Method void attach ( &$observer, object $observer)
Method boolean detach (object $observer)
Method mixed getState ()
Method array notify ()
Methods
Constructor __construct (line 92)

Constructor

JObservable __construct ()

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.

Redefined in descendants as:
attach (line 131)

Attach an observer object

  • since: 1.5
  • access: public
void attach ( &$observer, object $observer)
  • object $observer: An observer object to attach
  • &$observer
detach (line 156)

Detach an observer object

  • return: True if the observer object was detached
  • since: 1.5
  • access: public
boolean detach (object $observer)
  • object $observer: An observer object to detach
getState (line 103)

Get the state of the JObservable object

  • return: The state of the object
  • since: 1.5
  • access: public
mixed getState ()
notify (line 114)

Update each attached observer object and return an array of their return values

  • return: Array of return values from the observers
  • since: 1.5
  • access: public
array notify ()

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 21:12:12 +0000 by phpDocumentor 1.3.1