« Back to Product

Documentation

Create

Require: IP-Symcon >= 4.0

 void Create ()

Returns

No Return

Description

In contrast to Construct, this function is called only once when creating the instance and starting IP-Symcon. Therefore, status variables and module properties which the module requires permanently should be created here.

Frequently used functions:
RegisterPropertyString
RegisterPropertyInteger
RegisterPropertyFloat
RegisterPropertyBoolean

Warning

The Create function is called by IP-Symcon. It must therefore be overwritten by the base class in order to add individual extensions

Example

public function Create() {

    // Don't remove this line
    parent::Create();

    // Module property creation
    $this->RegisterPropertyString("Username", "MaxMustermann"); 
    $this->RegisterPropertyInteger("Number", 123);
    $this->RegisterPropertyFloat("Factor", 0.5);
    $this->RegisterPropertyBoolean("Open", true);
    
}
Any questions?