Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_external\external_function_parameters Class Reference
Inheritance diagram for core_external\external_function_parameters:
core_external\external_single_structure core_external\external_description

Public Member Functions

 __construct (array $keys, $desc='', $required=VALUE_REQUIRED, $default=null)
 Constructor - does extra checking to prevent top level optional parameters.
 

Public Attributes

bool $allownull
 Allow null values.
 
mixed $default
 Default value.
 
string $desc
 Description of element.
 
array $keys
 Description of array keys key=>external_description.
 
bool $required
 Element value required, null not allowed.
 

Constructor & Destructor Documentation

◆ __construct()

core_external\external_function_parameters::__construct ( array $keys,
$desc = '',
$required = VALUE_REQUIRED,
$default = null )

Constructor - does extra checking to prevent top level optional parameters.

Parameters
array$keys
string$desc
int$required
array$default

The documentation for this class was generated from the following file: