/**
  * Class constructor
  *
  * @param     string    Input field name attribute
  * @param     string    Input field value
  * @param     mixed     Either a typical HTML attribute string or an associative array
  * @since     1.0
  * @access    public
  * @return    void
  */
 public function HTML_QuickForm_stylesubmitbutton($elementName = null, $value = null, $attributes = null, $img = null)
 {
     if (empty($attributes)) {
         $attributes = array();
     }
     if (!isset($attributes['class'])) {
         if (is_array($attributes)) {
             $attributes['class'] = 'btn btn-primary';
         }
     }
     HTML_QuickForm_stylebutton::HTML_QuickForm_stylebutton($elementName, null, $attributes, $value, $img);
     $this->setValue($value);
     $this->setType('submit');
 }
Exemplo n.º 2
0
 /**
  * Class constructor
  *
  * @param     string    Input field name attribute
  * @param     string    Input field value
  * @param     mixed     Either a typical HTML attribute string or an associative array
  * @since     1.0
  * @access    public
  * @return    void
  */
 function HTML_QuickForm_styleresetbutton($elementName = null, $value = null, $attributes = null)
 {
     HTML_QuickForm_stylebutton::HTML_QuickForm_stylebutton($elementName, null, $attributes, $value);
     $this->setValue($value);
     $this->setType('reset');
 }