Documentation
RegisterPropertyString
Require: IP-Symcon >= 4.0
boolean RegisterPropertyString (string $Name, string $DefaultValue)
Parameters
Name | Name of the property |
DefaultValue | Default value of the property |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
This function creates a property of type String with name Name and default value DefaultValue
This function can be called in the Create method only!
Example
public function Create(): void {
// Don't delete or change this line.
parent::Create();
$this->RegisterPropertyString("Username", "MaxMustermann");
}