MgdSchema method is_in_parent_tree
is_in_parent_tree(int root, int id)
Minimum version: Midgard 1.7
Check whether a MgdSchema object is in a tree.
<?php
$root = 1;
$id = 12345;
$object = new NewMidgardArticle();
if ($object->is_in_parent_tree($root, $id))
{
echo "The object {$id} is in tree {$root}";
}
?>
Returns TRUE or FALSE.
