After you have created a new PHP function and opened it in edit mode, your PHP editor will already contain a class. This class is the basis for your function.

Editing PHP functions
The class already contains an execute method. This method is called up when a PHP function is executed. Therefore your script has to be entered into this function. If necessary further methods can be created within the class and called up within the script.
Please note: The name of the className class must not be change. It will automatically be edited with the process specific class name. The name of the execute method must not be change, either execute. Changes would lead to no longer being able to execute the PHP function!
Example of a simple PHP function (type Rule execution function):
<?php
class className extends JobRouter\Engine\Runtime\PhpFunction\RuleExecutionFunction
{
public function execute($rowId = null)
{
// Change a value of the process table
$this->setTableValue('STATUS','Booked');
}
}
?>