Abstract Class JObserver

Description

Abstract observer class to implement the observer design pattern

  • deprecated: 12.3 (Platform) & 4.0 (CMS)
  • abstract:
  • since: 11.1

Located in /libraries/legacy/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()

Documentation generated on Tue, 19 Nov 2013 15:09:46 +0100 by phpDocumentor 1.4.3