Support Joomla!

references:joomla.framework:html:jbutton-__construct

Table of Contents

__construct

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage HTML Class JButton Method __construct Reference __construct() Never Work in Progress

Button constructor. Stores a reference to the instantiating object (parent).

Syntax

JButton __construct ( $parent )

$parent object is a reference to the object that instantiated the button.

Examples

The button classes are instantiated by the JToolBar class in the following way:

Example

$this->_buttons[$signature] = new $buttonClass($this);

The JToolBar object passes a reference to itself as the parent object.


Discussion

Full name:
E-Mail:
 
references/joomla.framework/html/jbutton-__construct.txt (644 views) · Last modified: 2007/09/22 02:47