Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
performance_measuring_filter_manager Class Reference

Filter manager subclass that tracks how much work it does. More...

Inheritance diagram for performance_measuring_filter_manager:
filter_manager

Public Member Functions

 filter_string ($string, $context)
 Filter a piece of string. More...
 
 filter_text ($text, $context, array $options=array(), array $skipfilters=null)
 Filter some text. More...
 
 get_performance_summary ()
 Return performance information, in the form required by get_performance_info(). More...
 
 setup_page_for_filters ($page, $context)
 Setup page with filters requirements and other prepare stuff. More...
 
 setup_page_for_globally_available_filters ($page)
 Setup the page for globally available filters. More...
 
 text_filtering_hash ()
 

Static Public Member Functions

static instance ()
 Factory method. More...
 
static reset_caches ()
 Resets the caches, usually to be called between unit tests.
 

Protected Member Functions

 apply_filter_chain ($text, $filterchain, array $options=array(), array $skipfilters=null)
 Apply a list of filters to some content. More...
 
 get_string_filters ($context)
 Get all the filters that apply to a given context for calls to format_string. More...
 
 get_text_filters ($context)
 Get all the filters that apply to a given context for calls to format_text. More...
 
 load_filters ($context)
 Load all the filters required by this context. More...
 
 make_filter_object ($filtername, $context, $localconfig)
 Factory method for creating a filter. More...
 
 unload_all_filters ()
 Unloads all filters and other cached information.
 

Protected Attributes

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. More...
 
int $stringsfiltered = 0
 number of calls to filter_string.
 
moodle_text_filter[][] $textfilters = array()
 This list of active filters, by context, for filtering content. More...
 
int $textsfiltered = 0
 number of calls to filter_text.
 

Static Protected Attributes

static filter_manager $singletoninstance
 Holds the singleton instance.
 

Detailed Description

Filter manager subclass that tracks how much work it does.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

The documentation for this class was generated from the following file: