Documentation
ApplyChanges
Require: IP-Symcon >= 4.0
void ApplyChanges ()
Returns
No Return
Description
Is executed when "Apply" is pressed on the configuration page and immediately after the instance has been created.
The ApplyChanges function is called by IP-Symcon. It must therefore be overwritten by the base class in order to add custom extensions
Example
// IPSModuleStrict
public function ApplyChanges(): void {
// Do not delete this line
parent::ApplyChanges();
// ConnectParent/RequireParent/ForceParent is not available - but can be replaced by the new function 'GetCompatibleParents()'.
}
// IPSModule
public function ApplyChanges() {
// Do not delete this line
parent::ApplyChanges();
// If there is no parent instance, create a new own VirtualIO instance
$this->RequireParent("{6179ED6A-FC31-413C-BB8E-1204150CF376}");
}