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

Public Member Functions

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

Static Public Attributes

static $activitylist = null
static $cachedcourseid

Detailed Description

Activity name filtering

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.

It may be cached

Casting $course->modinfo to string prevents one notice when the field is null

We will store all the activities here

Avoid empty or unlinkable activity names

If name has some entity (& " < >) add that filter too. MDL-17545

Reimplemented from moodle_text_filter.

Definition at line 38 of file filter.php.

Here is the call graph for this function:


Field Documentation

$activitylist = null [static]

Definition at line 35 of file filter.php.

$cachedcourseid [static]

Definition at line 36 of file filter.php.


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