Beispiel #1
0
 /**
  * @return array
  */
 public function get_all_attributes()
 {
     $attributes = $this->attributes->get_all_attributes();
     $attributes['type'] = $this->type;
     $attributes['value'] = $this->get_attribute('value');
     return $attributes;
 }
Beispiel #2
0
 public function get_all_attributes()
 {
     $attributes = $this->attributes->get_all_attributes();
     if (!isset($attributes['action'])) {
         $attributes['action'] = '';
         // required attributes
     }
     // TODO: automatically set enctype to multipart/form-data if a file input is included
     return $attributes;
 }