« Back to Product

Documentation

GetConfigurationForm

Require: IP-Symcon >= 4.1

 string GetConfigurationForm ()

Returns

Content of the configuration page

Description

The content can be overwritten in order to transfer a self-created configuration page. This way, content can be generated dynamically. In this case, the "form.json" on the file system is completely ignored.

Warning

If this function is not defined in a module, the content of form.json is passed on by default.

Example

// IPSModuleStrict
public function GetConfigurationForm() {

    return '{ "actions": [ { "type": "Label", "label": "The current time is '.date("d.m.y H:i").'" } ] }';

}

// IPSModule
public function GetConfigurationForm() {

    // xxx

}
Any questions?