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; }
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->getKey('label.select_all');
+ $this->lSelNone = $i18n->getKey('label.select_none');
}
function getHtml() {