Joomla! Platform 12.1

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

Class JObject   (Subpackage Object)

Abstract class JObserver   (Subpackage Base)
Variable Summary
Variable object $_subject
Method Summary
Constructor JObserver __construct (object &$subject)
Abstract method 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

Variable 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()
/html>