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