Support Joomla!

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

Abstract Class JObservable

Description

Abstract observable class to implement the observer design pattern

  • since: 1.5
  • abstract:

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

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

Constructor

JObservable __construct ()

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

Redefined in descendants as:
attach (line 87)

Attach an observer object

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

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

Get the state of the JObservable object

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

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 Sat, 14 Nov 2009 11:16:25 +0000 by phpDocumentor 1.3.1