Exemple #1
0
 public static function Factory($name, $value = '', $label = '', $customId = null, $required = false, $attrList = array())
 {
     $element = new InputRadio($name);
     $element->setValue($value);
     $element->setLabel($label);
     $element->setId($customId);
     $element->setRequired($required);
     $element->setOptionList($attrList);
     return $element;
 }
Exemple #2
0
 public function setId($value)
 {
     parent::setId($value);
     $this->extra->setId("e{$value}");
 }