isDescendantOf() публичный Метод

Returns true if we are a descendant of $otherNode
public isDescendantOf ( TreeModel $otherNode ) : boolean
$otherNode TreeModel
Результат boolean
Пример #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);
 }