Important
|
Deprecated in 3.0. Please use parents attribute of [class-netobj] class. |
GetNodeParents(node) => Array
Get accessible parent objects for given node.
node |
Node object |
Return
Array of objects of class NetObj or inherited from it, with first object placed at index 0. End of list indicated by array element with null value. Return value also affected by trusted nodes settings.
Example
// Log names and ids of all accessible parents for current node parents = GetNodeParents($node); foreach(p : parents) { trace(1, "Parent object: name='" .. p.name .. "' id=" .. p.id); }