Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/filters.php File Reference

Go to the source code of this file.

Namespaces

namespace  administration

Functions

 filters_action_url ($filterpath, $action)
 Display helper functions ===================================================.
 get_table_row ($filterinfo, $isfirstrow, $islastactive, $applytostrings)

Variables

 $action = optional_param('action', '', PARAM_ACTION)
 $filterpath = optional_param('filterpath', '', PARAM_PATH)
 $systemcontext = get_context_instance(CONTEXT_SYSTEM)
 $returnurl = "$CFG->wwwroot/$CFG->admin/filters.php"
 $filters = filter_get_global_states()
 $fitlernames = filter_get_all_installed()
 $newfilters = $fitlernames
foreach($filters as $filter=>
$notused) if($action) switch($action)
foreach($newfilters as $filter=>
$notused) 
if ($action)
 Process actions ============================================================.
 $activechoices
 $applytochoices
 $filternames = filter_get_all_installed()
foreach($filters as $filter=>
$notused) 
$stringfilters = filter_get_string_filters()
 $table = new html_table()
$table head
$table align = array('left', 'left', 'center', 'left', 'left')
$table width = '100%'
$table data = array()
 $lastactive = null
foreach($filters as $filter=>
$filterinfo) 
$firstrow = true
foreach($filters as $filter=>
$filterinfo) 
foreach ($newfilters as $filter=> $filtername)

Function Documentation

filters_action_url ( filterpath,
action 
)

Display helper functions ===================================================.

Definition at line 227 of file filters.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_table_row ( filterinfo,
isfirstrow,
islastactive,
applytostrings 
)

Definition at line 231 of file filters.php.

Here is the call graph for this function:


Variable Documentation

Definition at line 37 of file filters.php.

$activechoices
Initial value:
 array(
        TEXTFILTER_DISABLED => get_string('disabled', 'filters'),
        TEXTFILTER_OFF => get_string('offbutavailable', 'filters'),
        TEXTFILTER_ON => get_string('on', 'filters'),
    )

Definition at line 165 of file filters.php.

$applytochoices
Initial value:
 array(
        0 => get_string('content', 'filters'),
        1 => get_string('contentandheadings', 'filters'),
    )

Definition at line 170 of file filters.php.

$filternames = filter_get_all_installed()

Definition at line 178 of file filters.php.

$filterpath = optional_param('filterpath', '', PARAM_PATH)

Definition at line 38 of file filters.php.

Definition at line 47 of file filters.php.

foreach ($filters as $filter=> $filterinfo) $firstrow = true

Definition at line 200 of file filters.php.

$fitlernames = filter_get_all_installed()

Definition at line 50 of file filters.php.

$lastactive = null

Definition at line 192 of file filters.php.

$newfilters = $fitlernames

Definition at line 51 of file filters.php.

$returnurl = "$CFG->wwwroot/$CFG->admin/filters.php"

Definition at line 44 of file filters.php.

foreach ($filters as $filter=> $notused) $stringfilters = filter_get_string_filters()

Definition at line 183 of file filters.php.

Definition at line 41 of file filters.php.

$table = new html_table()

Definition at line 185 of file filters.php.

$learningtable align = array('left', 'left', 'center', 'left', 'left')

Definition at line 188 of file filters.php.

$controlstable data = array()

Definition at line 190 of file filters.php.

foreach ($filters as $filter=> $filterinfo) foreach($newfilters as $filter=> $filtername)

Definition at line 212 of file filters.php.

$learningtable head
Initial value:
 array(get_string('filter'), get_string('isactive', 'filters'),
            get_string('order'), get_string('applyto', 'filters'), get_string('settings'), get_string('delete'))

Definition at line 186 of file filters.php.

foreach ($filters as $filter=> $notused) if ($action) switch ($action) foreach ($newfilters as $filter=> $notused) if($action)

Process actions ============================================================.

End of process actions ===================================================== Print the page heading.

Definition at line 154 of file filters.php.

$table width = '100%'

Definition at line 189 of file filters.php.

 All Data Structures Namespaces Files Functions Variables Enumerations