GlobalList (PersistentObjectInfo function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
m (→Examples) |
||
Line 14: | Line 14: | ||
==Usage notes== | ==Usage notes== | ||
==Examples== | ==Examples== | ||
The following statement sorts by setting time the contents of the <var>Arraylist</var> returned by <var>GlobalList</var>: | |||
<p class="code">%persInfoList = %(object):globalList:sortNew(descending(setTime))</p> | |||
==See also== | ==See also== | ||
{{Template:PersistentObjectInfo:GlobalList footer}} | {{Template:PersistentObjectInfo:GlobalList footer}} |
Revision as of 01:35, 19 August 2011
Get list of global objects (PersistentObjectInfo class)
[Introduced in Sirius Mods 7.8]
Syntax
%persObjList = %(PersistentObjectInfo):GlobalList[( [matchString])]
Syntax terms
%persObjList | An Arraylist of Object PersistentObjectInfo object variable. |
---|---|
(PersistentObjectInfo) | The class name in parentheses denotes a shared method. GlobalList can also be invoked via a PersistentObjectInfo object variable, which may be Null. |
matchString | An optional, case-sensitive, pattern-matching string that identifies the name(s) of the global(s) whose information is to be returned to %persObjList. The default if no string is provided is to return information of all global objects. |
Usage notes
Examples
The following statement sorts by setting time the contents of the Arraylist returned by GlobalList:
%persInfoList = %(object):globalList:sortNew(descending(setTime))