NXSL:GetObjectChildren

Revision as of 11:54, 9 July 2012 by Victor (talk | contribs) (Created page with "__NOTOC__ Get accessible child objects for given object. '''Since:''' 1.2.2 == Syntax == GetObjectChildren(''object''); == Parameters == :{| |- | ''object'' || [[NXSL:N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get accessible child objects for given object.

Since: 1.2.2


Syntax

GetObjectChildren(object);


Parameters

object Node, Interface, or NetObj object. Predefined variable $node can be used to refer to current node in transformation script or event processing policy rule.


Return Value

Array of objects of class Node, Interface, or NetObj, 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 (see Security Issues for more information).


Examples

// Log names and ids of all accessible child objects for current node
children = GetObjectChildren($node);
foreach(p : children)
{
	trace(1, "Child object: name='" . p->name . "' id=" . p->id);
}