Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 133 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions


Functions that are not part of a class:

initialiseHelper($arguments)   X-Ref

param: array|false $arguments Can be changed to array for Php8.1+

evaluateSingleArgumentArray(callable $method, array $values)   X-Ref
Handles array argument processing when the function accepts a single argument that can be an array argument.
Example use for:
DAYOFMONTH() or FACT().


evaluateArrayArguments(callable $method, ...$arguments)   X-Ref
Handles array argument processing when the function accepts multiple arguments,
and any of them can be an array argument.
Example use for:
ROUND() or DATE().

param: mixed ...$arguments

evaluateArrayArgumentsSubset(callable $method, int $limit, ...$arguments)   X-Ref
Handles array argument processing when the function accepts multiple arguments,
but only the first few (up to limit) can be an array arguments.
Example use for:
NETWORKDAYS() or CONCATENATE(), where the last argument is a matrix (or a series of values) that need
to be treated as a such rather than as an array arguments.

param: mixed ...$arguments

testFalse($value)   X-Ref

param: mixed $value

evaluateArrayArgumentsSubsetFrom(callable $method, int $start, ...$arguments)   X-Ref
Handles array argument processing when the function accepts multiple arguments,
but only the last few (from start) can be an array arguments.
Example use for:
Z.TEST() or INDEX(), where the first argument 1 is a matrix that needs to be treated as a dataset
rather than as an array argument.

param: mixed ...$arguments

evaluateArrayArgumentsIgnore(callable $method, int $ignore, ...$arguments)   X-Ref
Handles array argument processing when the function accepts multiple arguments,
and any of them can be an array argument except for the one specified by ignore.
Example use for:
HLOOKUP() and VLOOKUP(), where argument 1 is a matrix that needs to be treated as a database
rather than as an array argument.

param: mixed ...$arguments