DB_NestedSet::getSubBranch | DB_NestedSet::moveTree |
DB_NestedSet | |
PEAR Manual | |
require_once 'DB/NestedSet.php'; |
bool
DB_NestedSet::isParent
(
mixed
$parent
,
mixed
$child
)
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.
The parent node as array or object
The child node as array or object
returns True if it's a parent
throws no exceptions thrown
This function can not be called statically.
IsParent
|
DB_NestedSet::getSubBranch | DB_NestedSet::moveTree |
DB_NestedSet | |
PEAR Manual | |