|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
A pre-filled external_value class for text format. More...
Public Member Functions | |
| __construct ($textfieldname, $required=VALUE_REQUIRED, $default=null) | |
| Constructor. More... | |
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.