Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

Abstract Class JEvent

Description

JEvent Class

Located in /joomla/event/event.php (line 29)

Class JObject   (Subpackage Base)

Abstract class JObserver   (Subpackage Base)
   
   Abstract class JEvent   (Subpackage Event)
Direct descendents
Class Description
Abstract classJPlugin JPlugin Class
Method Summary
Constructor JEvent JEvent ( &$subject, object $subject)
Method mixed update (array &$args)
Variables

Inherited Variables

Inherited from JObject

Variable 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 Tue, 29 Jan 2008 18:45:40 +0000 by phpDocumentor 1.3.1