Difference between revisions of "NXSL:GetDCIObject"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Return DCI object or null. == Syntax == GetDCIObject(''node'', ''DCI id''); == Parameters == :{| |- | ''node'' || Node object, you can use predefi...") |
|||
Line 4: | Line 4: | ||
== Syntax == | == Syntax == | ||
GetDCIObject(''node'', '' | GetDCIObject(''node'', ''DCI_id''); | ||
Line 13: | Line 13: | ||
| ''node'' || [[NXSL:Node|Node]] object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information). | | ''node'' || [[NXSL:Node|Node]] object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information). | ||
|- | |- | ||
| '' | | ''DCI_id'' || id of node DCI. | ||
|} | |} | ||
Revision as of 21:00, 22 September 2012
Return DCI object or null.
Syntax
GetDCIObject(node, DCI_id);
Parameters
node Node object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see Security Issues for more information). DCI_id id of node DCI.
Return Value
DCI object with given id on success or null on failure (if id does not exist, or access to it was denied).
Examples
GetDCIObject($node, 2) -> object FindNodeObject($node, "bad_id") -> NULL