GlobalList (Object function): Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
m (→Examples) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Template:Object:GlobalList subtitle}} | {{Template:Object:GlobalList subtitle}} | ||
==Syntax== | ==Syntax== | ||
{{Template:Object:GlobalList syntax}} | {{Template:Object:GlobalList syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%persObjList</th><td>Object</td></tr> | <tr><th>%persObjList</th><td>An <var>Arraylist of Object PersistentObjectInfo</var> object variable.</td></tr> | ||
<tr><th nowrap="true"><var>%(Object)</var></th> | <tr><th nowrap="true"><var>%(Object)</var></th> | ||
<td>The class name in parentheses denotes a shared method. <var>GlobalList</var> can also be invoked via | <td>The class name in parentheses denotes a [[Notation conventions for methods#Shared methods|shared method]]. <var>GlobalList</var> can also be invoked via an <var>Object</var> class object variable, which may be <var>Null</var>.</td></tr> | ||
<tr><th>matchString</th> | <tr><th>matchString</th> | ||
<td>string< | <td>An optional, case-sensitive, pattern-matching string that identifies the name(s) of the global(s) whose information is to be returned to <var class="term">%persObjList</var>. The default if no string is provided is to return the information of all global objects.</td></tr> | ||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
<var>GlobalList</var> is also a shared method in the <var>PersistentObjectInfo</var> class. | |||
Consequently: | |||
<ul> | |||
<li>Both of these statements are valid: | |||
<p class="code">%persInfoList = %(object):globalList | |||
%persInfoList = %(persistentObjectInfo):globalList</p></li> | |||
<li>You can use the <var>Object</var> class <var>GlobalList</var> method the same way the the <var>PersistentObjectInfo</var> class <var>GlobalList</var> method is used in the example in [[PersistentObjectInfo class#Using GlobalList or SessionList|Using GlobalList or SessionList]].</li> | |||
</ul> | |||
==Examples== | ==Examples== | ||
See [[Global and session objects#Using system class methods to access global and session objects|Using system class methods to access global and session objects]] and see the <var>PersistentObjectInfo</var> class <var>GlobalList</var> [[GlobalList (PersistentObjectInfo function)#Examples|Examples]]. | |||
==See also== | ==See also== | ||
{{Template:Object:GlobalList footer}} | {{Template:Object:GlobalList footer}} |
Latest revision as of 19:29, 27 August 2014
Get list of global objects (Object class)
[Introduced in Sirius Mods 7.8]
Syntax
%persObjList = %(Object):GlobalList[( [matchString])]
Syntax terms
%persObjList | An Arraylist of Object PersistentObjectInfo object variable. |
---|---|
%(Object) | The class name in parentheses denotes a shared method. GlobalList can also be invoked via an Object class 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 the information of all global objects. |
Usage notes
GlobalList is also a shared method in the PersistentObjectInfo class. Consequently:
- Both of these statements are valid:
%persInfoList = %(object):globalList %persInfoList = %(persistentObjectInfo):globalList
- You can use the Object class GlobalList method the same way the the PersistentObjectInfo class GlobalList method is used in the example in Using GlobalList or SessionList.
Examples
See Using system class methods to access global and session objects and see the PersistentObjectInfo class GlobalList Examples.