array IPS_GetVariable (integer $VariablenID)
VariablenID | Die zu zeigende VariablenID |
Folgende Informationen stehen als key => value Paare zur Verfügung:
Tabelle: VariablenWert (bis 3.4)
|
Die Funktion liefert ein Array mit Informationen über die Variable mit der ID VariablenID.
Um den Wert einer Variable zu bekommen muss ab Version 4.0 die Funktion [GetValue][getvalue] genutzt werden
Ab Version 4.0 wird die bis 3.4 vorhandene Funktion als
"array IPS_GetVariableCompatibility( integer $VariablenID )" zur Verfügung gestellt.
// Ab Version 4.0 print_r(IPS_GetVariable(40770)); /* Beispielausgabe: Array ( [VariableChanged] => 1246039629 [VariableCustomAction] => 0 [VariableCustomProfile] => BoolProfile [VariableID] => 40770 [VariableIsLocked] => [VariableProfile] => ~Switch [VariableType] => 0 [VariableUpdated] => 1246039629 ) */ print_r(IPS_GetVariableCompatibility(40770)); // Ab Version 4.0 /* Beispielausgabe: Array ( [VariableChanged] => 1246039629 [VariableCustomAction] => 0 [VariableCustomProfile] => BoolProfile [VariableID] => 40770 [VariableIsLocked] => [VariableProfile] => ~Switch [VariableUpdated] => 1246039629 [VariableValue] => Array ( [ValueArray] => Array ( ) [ValueBoolean] => 1 [ValueFloat] => 0 [ValueIndex] => Array ( [IndexInt] => 0 [IndexStr] => [IndexType] => 0 ) [ValueInteger] => 0 [ValueString] => [ValueType] => 0 ) ) */ // Bis Version 3.4 print_r(IPS_GetVariable(40770)); /* Beispielausgabe: Array ( [VariableChanged] => 1246039629 [VariableCustomAction] => 0 [VariableCustomProfile] => BoolProfile [VariableID] => 40770 [VariableIsLocked] => [VariableProfile] => ~Switch [VariableUpdated] => 1246039629 [VariableValue] => Array ( [ValueArray] => Array ( ) [ValueBoolean] => 1 [ValueFloat] => 0 [ValueIndex] => Array ( [IndexInt] => 0 [IndexStr] => [IndexType] => 0 ) [ValueInteger] => 0 [ValueString] => [ValueType] => 0 ) ) */