. if (!defined('EG')) die('Direct access not allowed!'); /** create the HTML of an input text entry */ class Form_Checkbox 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::checkbox($this->entryName, $value, $this->options, $this->className,$this->idName); $returnString .= $wrap[3]; $returnString .="
\n"; $returnString .= $wrap[4]; return $returnString; } }