|
Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250711) (4ea86454947)
|
Public Member Functions | |
| filter ($text, array $options=[]) | |
| Apply the filter to the text. | |
| filter_stage_post_clean (string $text, array $options) | |
| Filter HTML text at the very end after text is sanitised. | |
| filter_stage_pre_clean (string $text, array $options) | |
| Filter HTML text before sanitising text. | |
| filter_stage_pre_format (string $text, array $options) | |
| Filter text before changing format to HTML. | |
| filter_stage_string (string $text, array $options) | |
| Filter simple text coming from format_string(). | |
| hash () | |
| setup ($page, $context) | |
| Setup page with filter requirements and other prepare stuff. | |
Protected Attributes | |
| context | $context |
| The context we are in. | |
| array | $localconfig |
| Any local configuration for this filter in this context. | |
| filter_codehighlighter::filter | ( | $text, | |
| array | $options = [] ) |
Apply the filter to the text.
| string | $text | to be processed by the text |
| array | $options | filter options |
| string | text after processing |
Reimplemented from moodle_text_filter.