Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

Abstract Class JPlugin

Description

JPlugin Class

Located in /joomla/application/plugin/plugin.php (line 29)

Class JObject   (Subpackage Base)

Abstract class JObserver   (Subpackage Base)
   
   Abstract class JPlugin   (Subpackage Application)
Method Summary
Constructor JPlugin JPlugin ( &$subject, object $subject)
Method mixed update (array &$args)
Methods
Constructor JPlugin (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
JPlugin JPlugin ( &$subject, object $subject)
  • object $subject: The object to observe
  • &$subject
update (line 54)

Method to trigger events based upon the JAuthenticate object

  • 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::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 21:19:08 +0000 by phpDocumentor 1.3.1