« Back to Product

Documentation

__construct

Require: IP-Symcon >= 4.0

 void __construct (string $InstanceID) 

Parameters

InstanceID

ID of this instance

Returns

No Return

Description

The constructor is called with every function call and takes care of the instantiation.
The base class, for example, uses the constructor to set the InstanceID.

Warning

If individual extensions are wanted, the constructor must be overwritten by the base class.

Example

// Normally, this function does not need to be overwritten.
Any questions?