Documentation
IPS_GetPresentation
Require: IP-Symcon >= 8.0
array IPS_GetPresentation (string $PresentationID)
Parameters
PresentationID | The ID of the presentation, formatted as GUID |
Returns
The following information is available as key => value pairs:
Index | Type | Description |
---|---|---|
caption | string | The display name of the presentation. |
chart | array | An array with parameters for the display of a chart (see chart table) |
condition | array | A list of conditions that the parameters of the chart must fulfill. |
conversions | array | A list of statements that are used to adjust parameters for different types of variables |
form | array/string | The configuration form determines how the parameters can be adjusted in the variables dialog or the template manager. |
format | array/string | "The formatting of values within this presentation |
id | string | The ID of the presentation, formatted as GUID |
locale | array | The localization of the presentation |
presentationParameters | array | A list describing the default values of the parameters of this presentation |
presentationValue | string | The default value which is displayed in the presentation preview. Alternatively, can also contain PHP code as a string or array that returns the value |
restrictions | array | A list of restrictions that defines for which variables this presentation is available |
chart table
Each value can either be a number or the name of the parameter whose value is to be used.
Index | Type | Description |
---|---|---|
min | integer/float/string | Parameter for the minimum value |
max | integer/float/string | Parameter for the maximum value |
stepSize | integer/float/string | Parameter for the step size |
Description
The function returns an array with information about the variable presentation with the ID PresentationID.
Example
IPS_GetPresentation('{6B9CAEEC-5958-C223-30F7-BD36569FC57A}' /* Slider */);