Filter manager subclass that tracks how much work it does.
More...
|
static | instance () |
| Factory method.
|
|
static | reset_caches () |
| Resets the caches, usually to be called between unit tests.
|
|
|
| apply_filter_chain ($text, $filterchain, array $options=array(), array $skipfilters=null) |
| Apply a list of filters to some content.
|
|
| get_string_filters ($context) |
| Get all the filters that apply to a given context for calls to format_string.
|
|
| get_text_filters ($context) |
| Get all the filters that apply to a given context for calls to format_text.
|
|
| load_filters ($context) |
| Load all the filters required by this context.
|
|
| make_filter_object ($filtername, $context, $localconfig) |
| Factory method for creating a filter.
|
|
| unload_all_filters () |
| Unloads all filters and other cached information.
|
|
|
int | $filterscreated = 0 |
| number of filter objects created.
|
|
array | $stringfilternames = array() |
| Exploded version of $CFG->stringfilters.
|
|
moodle_text_filter[][] | $stringfilters = array() |
| This list of active filters, by context, for filtering strings.
|
|
int | $stringsfiltered = 0 |
| number of calls to filter_string.
|
|
moodle_text_filter[][] | $textfilters = array() |
| This list of active filters, by context, for filtering content.
|
|
int | $textsfiltered = 0 |
| number of calls to filter_text.
|
|
|
static filter_manager | $singletoninstance |
| Holds the singleton instance.
|
|
Filter manager subclass that tracks how much work it does.
- Copyright
- 1999 onwards Martin Dougiamas
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
The documentation for this class was generated from the following file: