Add files via upload
This commit is contained in:
+19
-8
@@ -14,19 +14,15 @@ class Varnamer extends IPSModule {
|
||||
|
||||
|
||||
|
||||
SetValue($this->RegisterVariableString("Name01", "Name Variable 1","~TextBox",10),"Variable 1");
|
||||
$this->RegisterVariableString("Name01", "Name Variable 1","~TextBox",10);
|
||||
$this->EnableAction("Name01");
|
||||
SetValue($this->RegisterVariableString("Name02", "Name Variable 2","~TextBox",10),"Variable 2");
|
||||
$this->RegisterVariableString("Name02", "Name Variable 2","~TextBox",20);
|
||||
$this->EnableAction("Name02");
|
||||
SetValue($this->RegisterVariableString("Name03", "Name Variable 3","~TextBox",10),"Variable 3");
|
||||
$this->RegisterVariableString("Name03", "Name Variable 3","~TextBox",30);
|
||||
$this->EnableAction("Name03");
|
||||
SetValue($this->RegisterVariableString("Name04", "Name Variable 4","~TextBox",10),"Variable 4");
|
||||
$this->RegisterVariableString("Name04", "Name Variable 4","~TextBox",40);
|
||||
$this->EnableAction("Name04");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Überschreibt die intere IPS_ApplyChanges($id) Funktion
|
||||
@@ -34,6 +30,8 @@ class Varnamer extends IPSModule {
|
||||
// Diese Zeile nicht löschen
|
||||
parent::ApplyChanges();
|
||||
|
||||
$this->getInitValues();
|
||||
|
||||
}
|
||||
public function RequestAction($Ident, $Value) {
|
||||
$varid = $this->GetIDForIdent($Ident);
|
||||
@@ -70,6 +68,19 @@ class Varnamer extends IPSModule {
|
||||
|
||||
}
|
||||
|
||||
public function getInitValues(){
|
||||
$Idvalue01 = $this->ReadPropertyInteger("IdVariable01");
|
||||
$Idvalue02 = $this->ReadPropertyInteger("IdVariable02");
|
||||
$Idvalue03 = $this->ReadPropertyInteger("IdVariable03");
|
||||
$Idvalue04 = $this->ReadPropertyInteger("IdVariable04");
|
||||
|
||||
SetValue($this->GetIDForIdent("Name01"),IPS_GetName($Idvalue01));
|
||||
SetValue($this->GetIDForIdent("Name02"),IPS_GetName($Idvalue01));
|
||||
SetValue($this->GetIDForIdent("Name03"),IPS_GetName($Idvalue01));
|
||||
SetValue($this->GetIDForIdent("Name04"),IPS_GetName($Idvalue01));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user