Beispiel #1
0
 /**
  * Returns HTML for element attributes
  * 
  * @return string HTML for element attributes
  */
 public function getAttrsHtml()
 {
     // Making sure 'value' is not displayed on the `<select>` opening tag
     $value = $this->getAttr('value');
     $this->removeAttr('value');
     $html = parent::getAttrsHtml();
     $this->setAttr('value', $value);
     return $html;
 }
Beispiel #2
0
 /**
  * Returns HTML for element attributes
  * 
  * @return string HTML for element attributes
  */
 public function getAttrsHtml()
 {
     // Making sure 'name' is not displayed on the `<option>` opening tag
     $name = $this->getAttr('name');
     $this->removeAttr('name');
     $html = parent::getAttrsHtml();
     $this->setAttr('name', $name);
     return $html;
 }