Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Base class for text filters. More...
Public Member Functions | |
__construct ($context, array $localconfig) | |
Set any context-specific configuration for this filter. More... | |
filter ($text, array $options=array()) | |
Override this function to actually implement the filtering. More... | |
hash () | |
setup ($page, $context) | |
Setup page with filter requirements and other prepare stuff. More... | |
Protected Attributes | |
context | $context |
The context we are in. | |
array | $localconfig |
Any local configuration for this filter in this context. | |
Base class for text filters.
You just need to override this class and implement the filter method.