var $mOptions = array();
var $mLayout = "V";
var $mGroupIn = 1;
- var $class = '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; }
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() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;