This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

GetObjectParents()

Deprecated in 3.0.

Please use parents attribute in NetObj.

GetObjectParents(object): Array

Return array of object parents.

Table 1. Parameters

object

Target object.

Return

Array of NetObj instances.

// 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);
}