X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCheckboxGroup.class.php;h=cb7c9f1f4ed4b1d68bae8af4b3df4168bf07139e;hb=60d2288b7fca6caf0f5d9d3eee972f040eb24fb0;hp=21a9e35c436b2f2f41ea9dbf265e4123a2b72c7f;hpb=bd569da4f1d6ada00f5e48eac9716c068003748a;p=timetracker.git diff --git a/WEB-INF/lib/form/CheckboxGroup.class.php b/WEB-INF/lib/form/CheckboxGroup.class.php index 21a9e35c..cb7c9f1f 100644 --- a/WEB-INF/lib/form/CheckboxGroup.class.php +++ b/WEB-INF/lib/form/CheckboxGroup.class.php @@ -33,7 +33,7 @@ class CheckboxGroup extends FormElement { var $mOptions = array(); var $mLayout = "V"; var $mGroupIn = 1; - var $cClassName = "CheckboxGroup"; + var $class = 'CheckboxGroup'; var $mDataKeys = array(); var $mDataDeep = 1; var $lSelAll = "All"; @@ -60,15 +60,13 @@ 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); + function localize($i18n) { $this->lSelAll = $i18n->getKey('label.select_all'); $this->lSelNone = $i18n->getKey('label.select_none'); } - function toStringControl() { - if (!$this->isRenderable()) return ""; - + function getHtml() { + if ($this->id=="") $this->id = $this->name; $renderArray = array(); @@ -133,7 +131,7 @@ class CheckboxGroup extends FormElement { $html = "\n\tstyle."\">\n"; $html .= "
\n"; - $html .= ''.$this->lSelAll.' / '.$this->lSelNone.''; + $html .= ''.$this->lSelAll.' / '.$this->lSelNone.''; $html .= "
"; $html .= "\n\t\n"; @@ -148,10 +146,10 @@ class CheckboxGroup extends FormElement { $html .= "
\n"; $str = "