|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Variables | |
| $id = optional_param('id', 0, PARAM_INT) | |
| $d = optional_param('d', 0, PARAM_INT) | |
| $mode = optional_param('mode', 'singletemplate', PARAM_ALPHA) | |
| $disableeditor = optional_param('switcheditor', false, PARAM_RAW) | |
| $enableeditor = optional_param('useeditor', false, PARAM_RAW) | |
| $url = new moodle_url('/mod/data/templates.php') | |
| $context = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| $strdata = get_string('modulenameplural','data') | |
| Print the page header. | |
| $currentgroup = groups_get_activity_group($cm) | |
| Groups needed for Add entry tab. | |
| $groupmode = groups_get_activity_groupmode($cm) | |
| $currenttab = 'templates' | |
| Print the tabs. | |
| $resettemplate = false | |
| Processing submitted data, i.e updating form. | |
| $format = FORMAT_HTML | |
| if($mode=== 'csstemplate'or $mode=== 'jstemplate') if($disableeditor) | $editor = editors_get_preferred_editor($format) |
| $strformats = format_text_menu() | |
| $formats = $editor->get_supported_formats() | |
| foreach($formats as $fid) | $options = array() |
| $options ['trusttext'] = false | |
| $options ['forcehttps'] = false | |
| $options ['subdirs'] = false | |
| $options ['maxfiles'] = 0 | |
| $options ['maxbytes'] = 0 | |
| $options ['changeformat'] = 0 | |
| $options ['noclean'] = false | |
| if (!$resettemplate) | |
| $usehtmleditor = can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate') && !$disableeditor | |
| Add the HTML editor(s). | |
Definition at line 69 of file templates.php.
| $currentgroup = groups_get_activity_group($cm) |
Groups needed for Add entry tab.
Definition at line 99 of file templates.php.
| $currenttab = 'templates' |
Print the tabs.
Definition at line 103 of file templates.php.
| $d = optional_param('d', 0, PARAM_INT) |
Definition at line 30 of file templates.php.
| $disableeditor = optional_param('switcheditor', false, PARAM_RAW) |
Definition at line 32 of file templates.php.
| if ($mode=== 'csstemplate'or $mode=== 'jstemplate') if ($disableeditor) $editor = editors_get_preferred_editor($format) |
Definition at line 167 of file templates.php.
| $enableeditor = optional_param('useeditor', false, PARAM_RAW) |
Definition at line 33 of file templates.php.
Definition at line 158 of file templates.php.
| $formats = $editor->get_supported_formats() |
Definition at line 169 of file templates.php.
Definition at line 100 of file templates.php.
| $id = optional_param('id', 0, PARAM_INT) |
Definition at line 29 of file templates.php.
| $mode = optional_param('mode', 'singletemplate', PARAM_ALPHA) |
Definition at line 31 of file templates.php.
Definition at line 173 of file templates.php.
| $options['trusttext'] = false |
Definition at line 174 of file templates.php.
| $options['forcehttps'] = false |
Definition at line 175 of file templates.php.
| $options['subdirs'] = false |
Definition at line 176 of file templates.php.
| $options['maxfiles'] = 0 |
Definition at line 177 of file templates.php.
| $options['maxbytes'] = 0 |
Definition at line 178 of file templates.php.
| $options['changeformat'] = 0 |
Definition at line 179 of file templates.php.
| $options['noclean'] = false |
Definition at line 180 of file templates.php.
| $resettemplate = false |
Processing submitted data, i.e updating form.
Definition at line 107 of file templates.php.
| $strdata = get_string('modulenameplural','data') |
Print the page header.
Definition at line 81 of file templates.php.
| $strformats = format_text_menu() |
Definition at line 168 of file templates.php.
| $url = new moodle_url('/mod/data/templates.php') |
Definition at line 35 of file templates.php.
| $usehtmleditor = can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate') && !$disableeditor |
Add the HTML editor(s).
Definition at line 195 of file templates.php.