references:joomla.framework:html:jbuttoncustom-fetchbuttonTable of Contents
fetchButton
Returns the HTML code for the button. The output is actually directly copied from the $html parameter. Therefore the HTML produced by the custom button can be easily modified. This method returns the value of the $html parameter. Syntaxvoid fetchButton ( $type, $html, $id )
ExamplesExample $bar =& new JToolBar( 'My ToolBar' ); $button =& $bar->loadButtonType( 'Custom' ); echo $button->fetchButton( 'Custom', '<a href="http://www.joomla.org">Joomla!</a>', 'example' ); mightproduce: Result <a href="http://www.joomla.org">Joomla!</a>
Discussion |


