Documentation
RegisterOnceTimer
Require: IP-Symcon >= 5.5
void RegisterOnceTimer (string $Name, string $ScriptContent)
Parameters
Name | Name of the timer |
ScriptContent | PHP script without PHP tags (<?php ... ) |
Returns
No Return
Description
This function creates a timer with name name and content ScriptContent. The timer is executed once and immediately.
The content of script content is overwritten every time, therefore the correct content can always be guaranteed, even after changes.
Example
// Creates a timer called "Update".
$this->RegisterOnceTimer("Update", "echo 'Hallo World';");