. if (!defined('EG')) die('Direct access not allowed!'); //create the HTML of a radio entry class Form_Radio extends Form_Entry { public function __construct($entryName = null) { $this->entryName = $entryName; } public function render($value = null) { $wrap = $this->getWrapElements($value); $returnString = $wrap[0]; $returnString .= "
\n\t"; $returnString .= $wrap[1]; $returnString .= $this->getLabelTag(); $returnString .= $wrap[2]; $returnString .= Html_Form::radio($this->entryName,$value,$this->options,$this->className, 'after', $this->idName); $returnString .= $wrap[3]; $returnString .="
\n"; $returnString .= $wrap[4]; return $returnString; } }