Prado\Web\UI\TControl::isDescendentOf PHP 메소드

isDescendentOf() 최종 보호된 메소드

final protected isDescendentOf ( $ancestor ) : boolean
리턴 boolean if the control is a descendent (parent, parent of parent, etc.) of the specified control
    protected final function isDescendentOf($ancestor)
    {
        $control = $this;
        while ($control !== $ancestor && $control->_parent) {
            $control = $control->_parent;
        }
        return $control === $ancestor;
    }
TControl