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

Public Member Functions

 __construct ($context, array $localconfig)
 hash ()
 filter ($text, array $options=array())

Protected Attributes

 $context
 $localconfig

Detailed Description

Definition at line 336 of file filterlib.php.


Constructor & Destructor Documentation

__construct ( context,
array localconfig 
)

Set any context-specific configuration for this filter.

Parameters:
object$contextThe current course id.
object$contextThe current context.
array$configAny context-specific configuration for this filter.

Definition at line 348 of file filterlib.php.


Member Function Documentation

filter ( text,
array options = array() 
) [abstract]

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.

Reimplemented in legacy_filter, filter_tex, filter_algebra, filter_mediaplugin, filter_censor, filter_emoticon, filter_urltolink, filter_multilang, filter_tidy, filter_activitynames, filter_glossary, filter_data, and filter_emailprotect.

hash ( )
Returns:
string The class name of the current class

Reimplemented in filter_censor.

Definition at line 356 of file filterlib.php.


Field Documentation

$context [protected]

Definition at line 338 of file filterlib.php.

$localconfig [protected]

Definition at line 340 of file filterlib.php.


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