public static function submit($params = array()) {

        if( !is_array($params) )
        {
            throw new \InvalidArgumentException("Arguments is not a Array". print_r($params, true));
        }

        $o = '<input type="submit"';
        $o .= (isset($params['id'])) ? " id='{$params['id']}'" : '';
        $o .= (isset($params['name'])) ? " name='{$params['name']}'" : '';
        $o .= (isset($params['class'])) ? " class='{$params['class']}'" : '';
        $o .= (isset($params['onclick'])) ? " onclick='{$params['onclick']}'" : '';
        $o .= (isset($params['value'])) ? " value='{$params['value']}'" : '';
        $o .= (isset($params['disabled'])) ? " disabled='{$params['disabled']}'" : '';
        $o .= (isset($params['style'])) ? " style='{$params['style']}'" : '';
        $o .= " />\n";
        return $o;
    }
public static function submit($params = array()) {

        if( !is_array($params) )
        {
            throw new \InvalidArgumentException("Arguments is not a Array". print_r($params, true));
        }

        $o = '<input type="submit"';
        $o .= (isset($params['id'])) ? " id='{$params['id']}'" : '';
        $o .= (isset($params['name'])) ? " name='{$params['name']}'" : '';
        $o .= (isset($params['class'])) ? " class='{$params['class']}'" : '';
        $o .= (isset($params['onclick'])) ? " onclick='{$params['onclick']}'" : '';
        $o .= (isset($params['value'])) ? " value='{$params['value']}'" : '';
        $o .= (isset($params['disabled'])) ? " disabled='{$params['disabled']}'" : '';
        $o .= (isset($params['style'])) ? " style='{$params['style']}'" : '';
        $o .= " />\n";
        return $o;
    }
public static function submit ( $ params = array ( ) ) { if ( ! is_array ( $ params ) ) { throw new \ InvalidArgumentException ( "Arguments is not a Array" . print_r ( $ params , true ) ) ; } $ o = '<input type="submit"' ; $ o .= ( isset ( $ params [ 'id' ] ) ) ? " id='{$params['id']}'" : '' ; $ o .= ( isset ( $ params [ 'name' ] ) ) ? " name='{$params['name']}'" : '' ; $ o .= ( isset ( $ params [ 'class' ] ) ) ? " class='{$params['class']}'" : '' ; $ o .= ( isset ( $ params [ 'onclick' ] ) ) ? " onclick='{$params['onclick']}'" : '' ; $ o .= ( isset ( $ params [ 'value' ] ) ) ? " value='{$params['value']}'" : '' ; $ o .= ( isset ( $ params [ 'disabled' ] ) ) ? " disabled='{$params['disabled']}'" : '' ; $ o .= ( isset ( $ params [ 'style' ] ) ) ? " style='{$params['style']}'" : '' ; $ o .= " />\n" ; return $ o ; }
This method returns a submit button element given the params for settings

@param   array(id, name, class, onclick, value, disabled)

@return  string
This method returns a submit button element given the params for settings