Class JObserver

Description

Abstract observer class to implement the observer design pattern

  • deprecated: 12.3
  • abstract:
  • since: 11.1

Located in /libraries/joomla/base/observer.php (line 21)

JObject
   |
   --JObserver
Variable Summary
object $_subject
Method Summary
JObserver __construct (object &$subject)
mixed update (array &$args)
Variables
object $_subject = null (line 30)

Event object to observe.

  • deprecated: 12.3
  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JObject

JObject::$_errors
Methods
Constructor __construct (line 40)

Constructor

  • deprecated: 12.3
  • since: 11.1
  • access: public
JObserver __construct (object &$subject)
  • object &$subject: The object to observe.

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

Method to update the state of observable objects

  • deprecated: 12.3
  • abstract:
  • since: 11.1
  • access: public
mixed update (array &$args)
  • array &$args: An array of arguments to pass to the listener.

Inherited Methods

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:58:20 -0500 by phpDocumentor 1.4.4