edoc automate Guide
Breadcrumbs

utils\HelpFunction - edoc automate

You can use the HelpFunction action to call various PHP functions.

Functions with a variable number of parameters
There are functions to which a variable number of parameters can be passed, e.g. sprintf.
The name of the corresponding parameters must be numbered. Values then becomes value1, value2, etc.

Enable functions
You can add additional functions, which you can then select in the action. You must specify the function in the system configuration of edoc automate in the actions.helper area. For more information see the edoc automate help.

Restrictions

  • You can only use functions that are passed a string or a number for all parameters.

  • You can only use PHP functions that return a string or a number. Arrays, objects, etc. are not supported.

Example

PHP
<?php

return  [
  'actions' => [
     'helper' => [
         'mb_convert_case' => [
             'function' => 'mb_convert_case',
             'params' => [
                 'default' => [
                     'mode' => 'MB_CASE_UPPER'
                 ]
             ]
         ]
     ]
  ]
];

Parameters

None

Return

Type

Description

SINGLEVALUE

Returns the value of the called function.