function __construct($name, $value='') {
$this->name = $name;
- $this->mValue = $value;
+ $this->value = $value;
}
function setKeyField($value) {
}
function _process() {
- $this->mProccessed = true;
+ $this->mProccessed = true;
- if ($this->mInteractive) {
+ if ($this->mInteractive) {
// Add a column of clickable checkboxes.
$column = new TableColumn("","<input type=\"checkbox\" name=\"".$this->getName()."_all\" onclick=\"setAll(this.checked)\">");
import('form.CheckboxCellRenderer');
}
function toStringControl() {
- if (!$this->isRenderable()) return "";
if (!$this->mProccessed) $this->_process();
$html = "";
if (0 == $col && strtolower(get_class($this->mColumns[$col]->getRenderer())) == 'checkboxcellrenderer') {
// Checkbox for the row. Determine if selected.
$selected = false;
- if (is_array($this->mValue)) {
- foreach ($this->mValue as $p) {
+ if (is_array($this->value)) {
+ foreach ($this->value as $p) {
if ($p == $this->mData[$row][$this->mKeyField]) {
$selected = true;
break;