FOF30\Form\Header\HeaderBase::__get PHP Method

__get() public method

Method to get certain otherwise inaccessible properties from the form field object.
Since: 2.0
public __get ( string $name ) : mixed
$name string The property name for which to the the value.
return mixed The property value or null.
    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;
    }