Class JEvent

Description

JEvent Class

Located in /Servers/Apache_2_2/htdocs/Joomla15/libraries/joomla/event/event.php (line 29)

JObject
   |
   --JObserver
      |
      --JEvent
Direct descendents
Class Description
JPlugin JPlugin Class
Method Summary
JEvent JEvent ( &$subject, object $subject)
mixed update (array &$args)
Variables

Inherited Variables

Inherited from JObject

JObject::$_errors
Methods
Constructor JEvent (line 42)

Constructor

For php4 compatability we must not use the __constructor as a constructor for plugins because func_get_args ( void ) returns a copy of all passed arguments NOT references. This causes problems with cross-referencing necessary for the observer design pattern.

  • since: 1.5
JEvent JEvent ( &$subject, object $subject)
  • object $subject: The object to observe
  • &$subject
update (line 54)

Method to trigger events

  • return: Routine return value
  • since: 1.5
  • access: public
mixed update (array &$args)
  • array &$args: Arguments

Redefinition of:
JObserver::update()
Method to update the state of observable objects

Inherited Methods

Inherited From JObserver

JObserver::__construct()
JObserver::update()

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 Sun, 06 Apr 2008 07:13:38 +0200 by phpDocumentor 1.4.0a2