Prado\Web\UI\TControl::getEnabled PHP Метод

getEnabled() публичный Метод

A control is enabled if it allows client user interaction. If $checkParents is true, all parent controls will be checked, and unless they are all enabled, false will be returned. The property Enabled is mainly used for {@link TWebControl} derived controls.
public getEnabled ( $checkParents = false ) : boolean
Результат boolean whether the control is enabled.
    public function getEnabled($checkParents = false)
    {
        if ($checkParents) {
            for ($control = $this; $control; $control = $control->_parent) {
                if (!$control->getViewState('Enabled', true)) {
                    return false;
                }
            }
            return true;
        } else {
            return $this->getViewState('Enabled', true);
        }
    }
TControl