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