Prado\Web\UI\WebControls\TView::getVisible PHP Method

getVisible() public method

public getVisible ( $checkParents = true ) : boolean
return boolean whether this view is visible. The view is visible if it is active and its parent is visible.
    public function getVisible($checkParents = true)
    {
        if (($parent = $this->getParent()) === null) {
            return $this->getActive();
        } else {
            if ($this->getActive()) {
                return $parent->getVisible($checkParents);
            } else {
                return false;
            }
        }
    }