Moodle  2.2.1
http://www.collinsharper.com
filter_emailprotect Class Reference
Inheritance diagram for filter_emailprotect:
Collaboration diagram for filter_emailprotect:

Public Member Functions

 filter ($text, array $options=array())

Detailed Description

This class looks for email addresses in Moodle text and hides them using the Moodle obfuscate_text function.

Definition at line 33 of file filter.php.


Member Function Documentation

filter ( text,
array options = array() 
)

Override this function to actually implement the filtering.

Parameters:
$textsome HTML content.
array$optionsoptions passed to the filters
Returns:
the HTML content after the filtering has been applied.

Do a quick check using stripos to avoid unnecessary work

There might be an email in here somewhere so continue ...

regular expression to define a standard email string.

pattern to find a mailto link with the linked text.

pattern to find any other email address in the text.

Reimplemented from moodle_text_filter.

Definition at line 34 of file filter.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations