Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 606 Bytes

getobjectparents.adoc

File metadata and controls

40 lines (32 loc) · 606 Bytes

GetObjectParents()

Important

Deprecated in 3.0.

Please use parents attribute in [class-netobj].

GetObjectParents(object) => Array

Return array of object parents.

Table 1. Parameters

object

Target object.

Return

Array of [class-netobj] instances.

Example
// Log names and ids of all accessible parents for current node
parents = GetObjectParents($node);
for(p : parents)
{
	trace(1, "Parent object: name='" .. p.name .. "' id=" .. p.id);
}