DB_NestedSet::isParent

DB_NestedSet::isParent() – See if a given node is a parent of another given node

Synopsis

require_once 'DB/NestedSet.php';

bool
DB_NestedSet::isParent
(
mixed
$parent
,
mixed
$child
)

Description

A node is considered to be a parent if it resides above the child So it doesn't mean that the node has to be an immediate parent. To get this information simply compare the levels of the two nodes after you know that you have a parent relation.