Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

Abstract Class JObservable

Description

Abstract observable class to implement the observer design pattern

Located in /joomla/base/observable.php (line 27)

Class JObject

Abstract class JObservable   (Subpackage Base)
Direct descendents
Class Description
ClassJDispatcher Class to handle dispatching of events.
ClassJEditor JEditor class to handle WYSIWYG editors
ClassJAuthentication Authenthication class, provides an interface for the Joomla authentication system
Method Summary
Constructor JObservable __construct ()
Method void attach ( &$observer, object $observer)
Method boolean detach (object $observer)
Method mixed getState ()
Method array notify ()
Variables

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
Constructor __construct (line 49)

Constructor

JObservable __construct ()

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

Redefined in descendants as:
attach (line 88)

Attach an observer object

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

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 60)

Get the state of the JObservable object

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

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::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::getPublicProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()

Documentation generated on Tue, 29 Jan 2008 18:48:43 +0000 by phpDocumentor 1.3.1