|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| filter ($text, array $options=array()) | |
Protected Member Functions | |
| get_global_config ($name=null) | |
| load_global_config () | |
| replace_emoticons (&$text) | |
Static Protected Attributes | |
| static | $globalconfig |
Definition at line 33 of file filter.php.
Apply the filter to the text
| string | $text | to be processed by the text |
| array | $options | filter options |
This might be eventually moved into parent class if we found it useful for other filters, too.
Reimplemented from moodle_text_filter.
Definition at line 51 of file filter.php.
| get_global_config | ( | $ | name = null | ) | [protected] |
Returns the global filter setting
If the $name is provided, returns single value. Otherwise returns all global settings in object. Returns null if the named setting is not found.
| mixed | $name | optional config variable name, defaults to null for all |
Definition at line 79 of file filter.php.
| load_global_config | ( | ) | [protected] |
Makes sure that the global config is loaded in $this->globalconfig
Definition at line 97 of file filter.php.
| replace_emoticons | ( | &$ | text | ) | [protected] |
Replace emoticons found in the text with their images
| string | $text | to modify |
Definition at line 109 of file filter.php.
$globalconfig [static, protected] |
Definition at line 41 of file filter.php.