|
Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
|
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.
| 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.