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

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

DB_NestedSet::isParent()

DB_NestedSet::isParent()  -- 指定したノードが他のノードの親かどうかを調べる

説明

あるノードが親ノードかどうかは、子ノードの上にあるかどうかで判断します。 つまりそのノードが実際の親かどうかはわかりません。 この情報を取得するには、単純にふたつのノードのレベルを比較します。

パラメータ

mixed $parent

親ノード。配列あるいはオブジェクトで指定します。

mixed $child

子ノード。配列あるいはオブジェクトで指定します。

返り値

親ノードである場合に true を返します。

例外・エラー

例外はスローされません。

注意

この関数は、スタティックにコールする ことはできません。

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

Download Documentation Last updated: Sun, 17 Aug 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.