|
const | SMW_ERROR_FIELD = 'error' |
|
GNU GPL v2+
- Since
- 1.0
- Author
- mwjames
◆ ask()
SMW\Scribunto\ScribuntoLuaLibrary::ask |
( |
|
$arguments = null | ) |
|
This mirrors the functionality of the parser function ask and makes it available in lua.
- Since
- 1.0
- Parameters
-
string | array | $arguments | parameters passed from lua, string or array depending on call |
- Returns
- array array( null ) or array[]
◆ getPropertyType()
SMW\Scribunto\ScribuntoLuaLibrary::getPropertyType |
( |
|
$propertyName = null | ) |
|
Returns property type
- Since
- 1.0
- Parameters
-
- Returns
- array
◆ getQueryResult()
SMW\Scribunto\ScribuntoLuaLibrary::getQueryResult |
( |
|
$arguments = null | ) |
|
Returns query results in for of the standard API return format
- Since
- 1.0
- Parameters
-
- Returns
- array
◆ info()
SMW\Scribunto\ScribuntoLuaLibrary::info |
( |
|
$text, |
|
|
|
$icon = 'info' |
|
) |
| |
This mirrors the functionality of the parser function info and makes it available to lua.
- Since
- 1.0
- Parameters
-
string | $text | text to show inside the info popup |
string | $icon | identifier for the icon to use |
- Returns
- string[]
◆ register()
SMW\Scribunto\ScribuntoLuaLibrary::register |
( |
| ) |
|
◆ set()
SMW\Scribunto\ScribuntoLuaLibrary::set |
( |
|
$arguments | ) |
|
This mirrors the functionality of the parser function set and makes it available in lua.
- Since
- 1.0
- Parameters
-
string | array | $arguments | arguments passed from lua, string or array depending on call |
- Returns
- null|array|array[]
◆ subobject()
SMW\Scribunto\ScribuntoLuaLibrary::subobject |
( |
|
$arguments, |
|
|
|
$subobjectId = null |
|
) |
| |
This mirrors the functionality of the parser function subobject and makes it available to lua.
- Parameters
-
string | array | $arguments | arguments passed from lua, string or array depending on call |
string | $subobjectId | if you need to manually assign an id, do this here |
- Returns
- null|array|array[]
The documentation for this class was generated from the following file: