コード例 #1
0
 function nstHasAncestor($thandle, $node)
 {
     return nstValidNode($thandle, nstAncestor($thandle, $node));
 }
コード例 #2
0
ファイル: nested_set.php プロジェクト: nrueckmann/yeager
function nstBreadcrumbsString($thandle, $node)
{
    // current node
    $ret = nstNodeAttribute($thandle, $node, "name");
    // treat ancestor nodes
    while (nstAncestor($thandle, $node) != array("l" => 0, "r" => 0)) {
        $ret = "" . nstNodeAttribute($thandle, nstAncestor($thandle, $node), "name") . " > " . $ret;
        $node = nstAncestor($thandle, $node);
    }
    return $ret;
    //return "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;breadcrumb: <font size='1'>".$ret."</font>";
}