Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/glossary/edit.php File Reference

Go to the source code of this file.

Variables

 $cmid = required_param('cmid', PARAM_INT)
 $id = optional_param('id', 0, PARAM_INT)
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
if(!$glossary=$DB->get_record('glossary',
array('id'=> $cm->instance))) 
$url = new moodle_url('/mod/glossary/edit.php', array('cmid'=>$cm->id))
 $maxbytes = $course->maxbytes
 $definitionoptions = array('trusttext'=>true, 'subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes, 'context'=>$context)
 $attachmentoptions = array('subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes)
 $entry = file_prepare_standard_editor($entry, 'definition', $definitionoptions, $context, 'mod_glossary', 'entry', $entry->id)
$entry cmid = $cm->id
 $mform

Variable Documentation

$attachmentoptions = array('subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes)

Definition at line 70 of file edit.php.

Definition at line 7 of file edit.php.

Definition at line 20 of file edit.php.

$definitionoptions = array('trusttext'=>true, 'subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes, 'context'=>$context)

Definition at line 69 of file edit.php.

$entry = file_prepare_standard_editor($entry, 'definition', $definitionoptions, $context, 'mod_glossary', 'entry', $entry->id)

Definition at line 72 of file edit.php.

Definition at line 8 of file edit.php.

$maxbytes = $course->maxbytes

Definition at line 67 of file edit.php.

$mform
Initial value:
 new mod_glossary_entry_form(null, array('current'=>$entry, 'cm'=>$cm, 'glossary'=>$glossary,
                                                 'definitionoptions'=>$definitionoptions, 'attachmentoptions'=>$attachmentoptions))

Definition at line 78 of file edit.php.

if (!$glossary=$DB->get_record('glossary', array('id'=> $cm->instance))) $url = new moodle_url('/mod/glossary/edit.php', array('cmid'=>$cm->id))

Definition at line 26 of file edit.php.

$entry cmid = $cm->id

Definition at line 75 of file edit.php.

 All Data Structures Namespaces Files Functions Variables Enumerations