X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cb8e3de960b758147b34d8323054e7de70548619..1cf228c258ba8a8950b1a55bc25b93768bf50184:/WEB-INF/lib/form/CheckboxGroup.class.php
diff --git a/WEB-INF/lib/form/CheckboxGroup.class.php b/WEB-INF/lib/form/CheckboxGroup.class.php
index 13f207d9..9488b5cc 100644
--- a/WEB-INF/lib/form/CheckboxGroup.class.php
+++ b/WEB-INF/lib/form/CheckboxGroup.class.php
@@ -33,17 +33,15 @@ class CheckboxGroup extends FormElement {
var $mOptions = array();
var $mLayout = "V";
var $mGroupIn = 1;
- var $cClassName = "CheckboxGroup";
var $mDataKeys = array();
var $mDataDeep = 1;
var $lSelAll = "All";
var $lSelNone = "None";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name) {
+ $this->class = 'CheckboxGroup';
+ $this->name = $name;
+ }
function setChecked($value) { $this->mChecked = $value; }
function isChecked() { return $this->mChecked; }
@@ -60,15 +58,14 @@ class CheckboxGroup extends FormElement {
function setGroupIn($value) { $this->mGroupIn = $value; if ($this->mGroupIn<1) $this->mGroupIn = 1;}
function getGroupIn() { return $this->mGroupIn; }
- function setLocalization($i18n) {
- FormElement::setLocalization($i18n);
- $this->lSelAll = $i18n->getKey('label.select_all');
- $this->lSelNone = $i18n->getKey('label.select_none');
+ function localize() {
+ global $i18n;
+ $this->lSelAll = $i18n->get('label.select_all');
+ $this->lSelNone = $i18n->get('label.select_none');
}
- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
+ function getHtml() {
+
if ($this->id=="") $this->id = $this->name;
$renderArray = array();
@@ -132,8 +129,8 @@ class CheckboxGroup extends FormElement {
}
- $html = "\n\t