isDescendantOf() public method

Returns true if we are a descendant of $otherNode
public isDescendantOf ( TreeModel $otherNode ) : boolean
$otherNode TreeModel
return boolean
Example #1
0
 /**
  * Returns true if we are an ancestor of $otherNode
  *
  * @codeCoverageIgnore
  * @param TreeModel $otherNode
  *
  * @return bool
  */
 public function isAncestorOf(TreeModel $otherNode)
 {
     return $otherNode->isDescendantOf($this);
 }