|
Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Public Member Functions | |
| filter ($text, array $options=array()) | |
| Apply the filter to the text. More... | |
| hash () | |
| setup ($page, $context) | |
| Setup page with filter requirements and other prepare stuff. More... | |
Protected Member Functions | |
| convert_urls_into_links (&$text) | |
| Given some text this function converts any URLs it finds into HTML links. More... | |
Protected Attributes | |
| context | $context |
| The context we are in. | |
| array | $localconfig |
| Any local configuration for this filter in this context. | |
Static Protected Attributes | |
| static array | $globalconfig |
| global configuration for this filter More... | |
|
protected |
Given some text this function converts any URLs it finds into HTML links.
| string | $text | Passed in by reference. The string to be searched for urls. |
| filter_urltolink::filter | ( | $text, | |
| array | $options = array() |
||
| ) |
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.
|
staticprotected |
global configuration for this filter
This might be eventually moved into parent class if we found it useful for other filters, too.