public function isAncestorOf(AbstractNestedNode $node, $strict = true)
    {
        if (true === $strict) {
            return (($node->getRoot() === $this->getRoot()) && ($node->getLeftnode() > $this->getLeftnode()) && ($node->getRightnode() < $this->getRightnode()));
        } else {
            return (($node->getRoot() === $this->getRoot()) && ($node->getLeftnode() >= $this->getLeftnode()) && ($node->getRightnode() <= $this->getRightnode()));
        }
    }
public function isAncestorOf(AbstractNestedNode $node, $strict = true)
    {
        if (true === $strict) {
            return (($node->getRoot() === $this->getRoot()) && ($node->getLeftnode() > $this->getLeftnode()) && ($node->getRightnode() < $this->getRightnode()));
        } else {
            return (($node->getRoot() === $this->getRoot()) && ($node->getLeftnode() >= $this->getLeftnode()) && ($node->getRightnode() <= $this->getRightnode()));
        }
    }
public function isAncestorOf ( AbstractNestedNode $ node , $ strict = true ) { if ( true === $ strict ) { return ( ( $ node -> getRoot ( ) === $ this -> getRoot ( ) ) && ( $ node -> getLeftnode ( ) > $ this -> getLeftnode ( ) ) && ( $ node -> getRightnode ( ) < $ this -> getRightnode ( ) ) ) ; } else { return ( ( $ node -> getRoot ( ) === $ this -> getRoot ( ) ) && ( $ node -> getLeftnode ( ) >= $ this -> getLeftnode ( ) ) && ( $ node -> getRightnode ( ) <= $ this -> getRightnode ( ) ) ) ; } }
Is this node is an ancestor of the provided one ?

@param  \BackBee\NestedNode\AbstractNestedNode $node
@param  Boolean                         $strict Optional, if TRUE (default) this node is excluded of ancestors list

@return Boolean                         TRUE if this node is an anscestor or provided node, FALSE otherwise
Is this node is an ancestor of the provided one ?