DB_NestedSet::getSubBranch (Previous) (Next) DB_NestedSet::moveTree

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Japanese | Plain HTML

DB_NestedSet::isParent()

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

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.

Paramètres

mixed $parent

The parent node as array or object

mixed $child

The child node as array or object

Valeur retournée

returns True if it's a parent

Valeurs renvoyées

throws no exceptions thrown

Note

Cette fonction ne peut pas être appelée de façon statique.

DB_NestedSet::getSubBranch (Previous) (Next) DB_NestedSet::moveTree

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.