public function isVisible()
    {
        $c = $this;
        while($c) {
            if (isset($c->invisible) && $c->invisible) {
                return false;
            }
            $c = $c->parent;
        }
        return true;
    }
public function isVisible()
    {
        $c = $this;
        while($c) {
            if (isset($c->invisible) && $c->invisible) {
                return false;
            }
            $c = $c->parent;
        }
        return true;
    }
public function isVisible ( ) { $ c = $ this ; while ( $ c ) { if ( isset ( $ c -> invisible ) && $ c -> invisible ) { return false ; } $ c = $ c -> parent ; } return true ; }
Returns if this component is visible

A component is visible if all parents are visible.

@return bool
Returns if this component is visible