Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Attributes | List of all members
filter_censor Class Reference
Inheritance diagram for filter_censor:
moodle_text_filter

Public Member Functions

 filter ($text, array $options=array())
 Override this function to actually implement the filtering. More...
 
 hash ()
 
 setup ($page, $context)
 Setup page with filter requirements and other prepare stuff. More...
 

Protected Attributes

context $context
 The context we are in.
 
array $localconfig
 Any local configuration for this filter in this context.
 

Member Function Documentation

◆ filter()

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

Override this function to actually implement the filtering.

Parameters
string$textsome HTML content to process.
array$optionsoptions passed to the filters
Return values
stringthe HTML content after the filtering has been applied.

Reimplemented from moodle_text_filter.

◆ hash()

filter_censor::hash ( )
Deprecated:
Since Moodle 3.0 MDL-50491. This was used by the old text filtering system, but no more.

Reimplemented from moodle_text_filter.


The documentation for this class was generated from the following file: