Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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, $allownull=NULL_NOT_ALLOWED)
 Contructor.
 

Public Attributes

bool $allownull
 Allow null values.
 
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,
$allownull = NULL_NOT_ALLOWED )

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
bool$allownullAllow null value

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