public function __get($name)
{
switch ($name) {
case 'description':
case 'name':
case 'type':
case 'fieldname':
case 'group':
case 'tdwidth':
case 'filterSource':
case 'filterFieldName':
return $this->{$name};
break;
case 'label':
if (empty($this->label)) {
$this->label = $this->getLabel();
}
return $this->label;
case 'value':
if (empty($this->value)) {
$this->value = $this->getValue();
}
return $this->value;
break;
case 'header':
if (empty($this->header)) {
$this->header = $this->onlyFilter ? '' : $this->getHeader();
}
return $this->header;
break;
case 'filter':
if (empty($this->filter)) {
$this->filter = $this->getFilter();
}
return $this->filter;
break;
case 'buttons':
if (empty($this->buttons)) {
$this->buttons = $this->getButtons();
}
return $this->buttons;
break;
case 'options':
if (empty($this->options)) {
$this->options = $this->getOptions();
}
return $this->options;
break;
case 'sortable':
if (empty($this->sortable)) {
$this->sortable = $this->getSortable();
}
return $this->sortable;
break;
}
return null;
}