|
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 () | |
| convert_urls_into_links (&$text) | |
Static Protected Attributes | |
| static | $globalconfig |
Definition at line 29 of file filter.php.
| convert_urls_into_links | ( | &$ | text | ) | [protected] |
Given some text this function converts any URLs it finds into HTML links
| string | $text | Passed in by reference. The string to be searched for urls. |
Reversed so "progressive" str_replace() will solve some nesting problems.
Reimplemented in testable_filter_urltolink.
Definition at line 103 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 47 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 74 of file filter.php.


| load_global_config | ( | ) | [protected] |
Makes sure that the global config is loaded in $this->globalconfig
Definition at line 92 of file filter.php.


$globalconfig [static, protected] |
Definition at line 37 of file filter.php.