Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_external\external_description Class Reference
Inheritance diagram for core_external\external_description:
core_external\external_multiple_structure core_external\external_single_structure core_external\external_value core_external\external_files core_external\external_warnings core_external\external_function_parameters core_external\external_format_value

Public Member Functions

 __construct ($desc, $required, $default)
 Contructor.
 

Public Attributes

mixed $default
 Default value.
 
string $desc
 Description of element.
 
bool $required
 Element value required, null not allowed.
 

Constructor & Destructor Documentation

◆ __construct()

core_external\external_description::__construct ( $desc,
$required,
$default )

Contructor.

Parameters
string$descDescription of element
int$requiredWhether the element value is required. Valid values are VALUE_DEFAULT, VALUE_REQUIRED, VALUE_OPTIONAL.
mixed$defaultThe default value

Reimplemented in core_external\external_format_value, and core_external\external_warnings.


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