X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCheckboxGroup.class.php;h=9488b5cce24bcb180d0562ce6a2a256ee2459183;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=f6722704bfacfb36b165dc466b3c13e8db6ce48e;hpb=cd5e077ecb497431decde4835138b877d63b261c;p=timetracker.git diff --git a/WEB-INF/lib/form/CheckboxGroup.class.php b/WEB-INF/lib/form/CheckboxGroup.class.php index f6722704..9488b5cc 100644 --- a/WEB-INF/lib/form/CheckboxGroup.class.php +++ b/WEB-INF/lib/form/CheckboxGroup.class.php @@ -38,10 +38,9 @@ class CheckboxGroup extends FormElement { var $lSelAll = "All"; var $lSelNone = "None"; - function __construct($name, $value = '') { + function __construct($name) { $this->class = 'CheckboxGroup'; $this->name = $name; - $this->value = $value; } function setChecked($value) { $this->mChecked = $value; } @@ -59,9 +58,10 @@ class CheckboxGroup extends FormElement { function setGroupIn($value) { $this->mGroupIn = $value; if ($this->mGroupIn<1) $this->mGroupIn = 1;} function getGroupIn() { return $this->mGroupIn; } - function localize($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 getHtml() {