public function toHtmlInternal($value = null)
    {
        $strSelected = "";
        if ($this->__selected && is_null($value)) {
            $strSelected = " selected=\"selected\"";
        }

        if ($value == $this->__value) {
            $strSelected = " selected=\"selected\"";
        }

        $strOutput = "<option value=\"{$this->__value}\"{$strSelected} {$this->__getMetaString()}>{$this->__label}</option>\n";

        return $strOutput;
    }
public function toHtmlInternal($value = null)
    {
        $strSelected = "";
        if ($this->__selected && is_null($value)) {
            $strSelected = " selected=\"selected\"";
        }

        if ($value == $this->__value) {
            $strSelected = " selected=\"selected\"";
        }

        $strOutput = "<option value=\"{$this->__value}\"{$strSelected} {$this->__getMetaString()}>{$this->__label}</option>\n";

        return $strOutput;
    }
public function toHtmlInternal ( $ value = null ) { $ strSelected = "" ; if ( $ this -> __selected && is_null ( $ value ) ) { $ strSelected = " selected=\"selected\"" ; } if ( $ value == $ this -> __value ) { $ strSelected = " selected=\"selected\"" ; } $ strOutput = "<option value=\"{$this->__value}\"{$strSelected} {$this->__getMetaString()}>{$this->__label}</option>\n" ; return $ strOutput ; }
Generate HTMl output

See {@link \ValidFormBuilder\Element::toHtml()}

@see \ValidFormBuilder\Element::toHtml()
Generate HTMl output