public function render(&$definition)
	{
		// Initialise some variables
		$html   = null;
		$cls    = array();
		if (isset($definition[9]))
		{
			$cls = array_pop($definition);
		}
		$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 .= '<li class="button ' . implode(' ', $cls) . '" ' . $id . ">\n";
		$html .= $action;
		$html .= "</li>\n";

		return $html;
	}
public function render(&$definition)
	{
		// Initialise some variables
		$html   = null;
		$cls    = array();
		if (isset($definition[9]))
		{
			$cls = array_pop($definition);
		}
		$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 .= '<li class="button ' . implode(' ', $cls) . '" ' . $id . ">\n";
		$html .= $action;
		$html .= "</li>\n";

		return $html;
	}
public function render ( & $ definition ) { // Initialise some variables $ html = null ; $ cls = array ( ) ; if ( isset ( $ definition [ 9 ] ) ) { $ cls = array_pop ( $ definition ) ; } $ 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 .= '<li class="button ' . implode ( ' ' , $ cls ) . '" ' . $ id . ">\n" ; $ html .= $ action ; $ html .= "</li>\n" ; return $ html ; }
Get the HTML to render the button

@param   array  &$definition  Parameters to be passed
@return  string
Get the HTML to render the button