Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_external\external_format_value Class Reference
Inheritance diagram for core_external\external_format_value:
core_external\external_value core_external\external_description

Public Member Functions

 __construct ($textfieldname, $required=VALUE_REQUIRED, $default=null)
 Constructor.
 

Public Attributes

bool $allownull
 Allow null values.
 
mixed $default
 Default value.
 
string $desc
 Description of element.
 
bool $required
 Element value required, null not allowed.
 
mixed $type
 Value type PARAM_XX.
 

Constructor & Destructor Documentation

◆ __construct()

core_external\external_format_value::__construct ( $textfieldname,
$required = VALUE_REQUIRED,
$default = null )

Constructor.

Parameters
string$textfieldnameName of the text field
int$requiredif VALUE_REQUIRED then set standard default FORMAT_HTML
int$defaultDefault value.

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