Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 813 Bytes

getnodeparents.adoc

File metadata and controls

39 lines (32 loc) · 813 Bytes

GetNodeParents()

Important

Deprecated in 3.0.

Please use parents attribute of [class-netobj] class.

GetNodeParents(node) => Array

Get accessible parent objects for given node.

Table 1. Parameters

node

[class-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);
}