function nstDelete($thandle, $node) { $leftanchor = $node['l']; $this->RecordClassFinder->deleteAll($thandle['lvalname'] . ">=" . $node['l'] . " AND " . $thandle['rvalname'] . "<=" . $node['r']); _shiftRLValues($thandle, $node['r'] + 1, $node['l'] - $node['r'] - 1); return nstGetNodeWhere($thandle, $thandle['lvalname'] . "<" . $leftanchor . " ORDER BY " . $thandle['lvalname'] . " DESC"); }
function nstAncestor($thandle, $node) { return nstGetNodeWhere($thandle, $thandle['lvalname'] . "<" . $node['l'] . " AND " . $thandle['rvalname'] . ">" . $node['r'] . " ORDER BY " . $thandle['rvalname']); }