|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| filter_text ($text, $context, array $options=array()) | |
| filter_string ($string, $context) | |
| text_filtering_hash ($context) | |
Static Public Member Functions | |
| static | instance () |
Protected Member Functions | |
| __construct () | |
| load_filters ($context) | |
| make_filter_object ($filtername, $context, $localconfig) | |
| apply_filter_chain ($text, $filterchain, array $options=array()) | |
| get_text_filters ($context) | |
| get_string_filters ($context) | |
Protected Attributes | |
| $textfilters = array() | |
| $stringfilters = array() | |
| $stringfilternames = array() | |
Static Protected Attributes | |
| static | $singletoninstance |
Definition at line 58 of file filterlib.php.
| __construct | ( | ) | [protected] |
Reimplemented in testable_filter_manager.
Definition at line 77 of file filterlib.php.

| apply_filter_chain | ( | $ | text, |
| $ | filterchain, | ||
| array $ | options = array() |
||
| ) | [protected] |
| string | $text | |
| array | $filterchain | |
| array | $options | options passed to the filters |
Definition at line 155 of file filterlib.php.

| filter_string | ( | $ | string, |
| $ | context | ||
| ) |
Filter a piece of string
| string | $string | The text to filter |
| object | $context |
Reimplemented in performance_measuring_filter_manager.
Definition at line 208 of file filterlib.php.

| filter_text | ( | $ | text, |
| $ | context, | ||
| array $ | options = array() |
||
| ) |
Filter some text
| string | $text | The text to filter |
| object | $context | |
| array | $options | options passed to the filters |
<nolink> tags removed for XHTML compatibility
Reimplemented in performance_measuring_filter_manager.
Definition at line 194 of file filterlib.php.

| get_string_filters | ( | $ | context | ) | [protected] |
| object | $context |
Definition at line 179 of file filterlib.php.


| get_text_filters | ( | $ | context | ) | [protected] |
| object | $context |
Definition at line 167 of file filterlib.php.


| static instance | ( | ) | [static] |
Definition at line 84 of file filterlib.php.

| load_filters | ( | $ | context | ) | [protected] |
Load all the filters required by this context.
| object | $context |
Definition at line 101 of file filterlib.php.


| make_filter_object | ( | $ | filtername, |
| $ | context, | ||
| $ | localconfig | ||
| ) | [protected] |
Factory method for creating a filter
| string | $filter | The filter name, for example 'filter/tex' or 'mod/glossary'. |
| object | $context | context object. |
| array | $localconfig | array of local configuration variables for this filter. |
Reimplemented in performance_measuring_filter_manager.
Definition at line 126 of file filterlib.php.

| text_filtering_hash | ( | $ | context | ) |
| object | $context |
Definition at line 217 of file filterlib.php.

$singletoninstance [static, protected] |
Definition at line 75 of file filterlib.php.
$stringfilternames = array() [protected] |
Definition at line 72 of file filterlib.php.
$stringfilters = array() [protected] |
Definition at line 69 of file filterlib.php.
$textfilters = array() [protected] |
Definition at line 63 of file filterlib.php.