Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
filter_activitynames Class Reference

Activity name filtering. More...

Inheritance diagram for filter_activitynames:
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 Member Functions

 get_activity_list ($courseid)
 Get all the activity list for a course. More...
 
 get_cached_activity_list ($courseid)
 Get all the cached activity list for a course. More...
 

Protected Attributes

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

Detailed Description

Activity name filtering.

Member Function Documentation

◆ filter()

filter_activitynames::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.

◆ get_activity_list()

filter_activitynames::get_activity_list (   $courseid)
protected

Get all the activity list for a course.

Parameters
int$courseidid of the course
Return values
filterobject[]the activities

◆ get_cached_activity_list()

filter_activitynames::get_cached_activity_list (   $courseid)
protected

Get all the cached activity list for a course.

Parameters
int$courseidid of the course
Return values
filterobject[]the activities

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