X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/04bc6bdd39d67bcf9f63d8af4b067f1fafc06f8a..cd5e077ecb497431decde4835138b877d63b261c:/WEB-INF/lib/form/Checkbox.class.php diff --git a/WEB-INF/lib/form/Checkbox.class.php b/WEB-INF/lib/form/Checkbox.class.php index 6fe7ca18..e3d9cf2e 100644 --- a/WEB-INF/lib/form/Checkbox.class.php +++ b/WEB-INF/lib/form/Checkbox.class.php @@ -31,13 +31,12 @@ import('form.FormElement'); class Checkbox extends FormElement { var $mChecked = false; var $mOptions = null; - var $cClassName = "Checkbox"; - function __construct($name,$value="") - { - $this->name = $name; - $this->value = $value; - } + function __construct($name, $value = '') { + $this->class = 'Checkbox'; + $this->name = $name; + $this->value = $value; + } function setChecked($value) { $this->mChecked = $value; } function isChecked() { return $this->mChecked; } @@ -45,7 +44,7 @@ class Checkbox extends FormElement { function setData($value) { $this->mOptions = $value; } function getData() { return $this->mOptions; } - function toStringControl() { + function getHtml() { if ($this->id=="") $this->id = $this->name;