_parent = $parent; } /** * get the element name * * @access public * @return string type of the parameter */ function getName() { return $this->_name; } function render( &$definition ) { /* * Initialize some variables */ $html = null; $id = call_user_func_array(array(&$this, 'fetchId'), $definition); $action = call_user_func_array(array(&$this, 'fetchButton'), $definition); // Build id attribute if ($id) { $id = "id=\"$id\""; } // Build the HTML Button $html .= "\n"; $html .= $action; $html .= "\n"; return $html; } /** * Method to get the CSS class name for an icon identifier * * Can be redefined in the final class * * @access public * @param string $identifier Icon identification string * @return string CSS class name * @since 1.5 */ function fetchIconClass($identifier) { return "icon-32-$identifier"; } /** * Get the button id * * Can be redefined in the final button class * * @access public * @since 1.5 */ function fetchId() { return; } /** * Get the button * * Defined in the final button class * * @abstract * @access public * @since 1.5 */ function fetchButton() { return; } }