Class: Context
Context
new Context()
Constructor containing all the login user information.
Properties:
| Name | Type | Description |
|---|---|---|
link |
Array | Array of links. |
Source: Resources/Context.js, line 30
Methods
generateFilters(fArray)
Generates the filter string to be posted to the server
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
fArray |
Array | List of filters to me generated with the following parameters | |
fArray[index].constructor |
String | \ |
The constructor for which the filter is required |
fArray[index].filter |
String | \ |
the filter to be used |
fArray[index].operator |
String | \ |
the operator of the filter |
fArray[index].value |
String | \ |
the value of the filter |
Source: Resources/Context.js, line 166
init(options)
Initializes the context variable with the data from the login user
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object | options to be used during the call |
options Properties:
| Name | Type | Argument | Description |
|---|---|---|---|
onSuccess |
Resource~onSuccess | a callback function called in case of a success | |
onFailure |
Resource~onFailure | \ |
a callback function called in case of a failure |
baseUrl |
String | \ |
base URL. If not set the current base URL will be used |
Source: Resources/Context.js, line 43
See: