Esempio n. 1
0
 /**
  * Sets the element's name
  *
  * Passing null here will remove the name attribute
  *
  * @param    string|null
  * @return   HTML_QuickForm2_Element_Static
  */
 public function setName($name)
 {
     if (null !== $name) {
         return parent::setName($name);
     } else {
         return $this->removeAttribute('name');
     }
 }