Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
A pre-filled external_value class for text format. More...
Public Member Functions | |
__construct ($textfieldname, $required=VALUE_REQUIRED, $default=null) | |
Constructor. More... | |
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. | |
A pre-filled external_value class for text format.
Default is FORMAT_HTML This should be used all the time in external xxx_params()/xxx_returns functions as it is the standard way to implement text format param/return values.
external_format_value::__construct | ( | $textfieldname, | |
$required = VALUE_REQUIRED , |
|||
$default = null |
|||
) |
Constructor.
string | $textfieldname | Name of the text field |
int | $required | if VALUE_REQUIRED then set standard default FORMAT_HTML |
int | $default | Default value. |
Reimplemented from external_description.