====== __construct ====== {#JAPI Joomla.Framework HTML JButton::__construct #} 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: $this->_buttons[$signature] = new $buttonClass($this); The JToolBar object passes a reference to itself as the parent object. ---- ~~DISCUSSION~~