|
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) | |
| $rid = optional_param('rid', 0, PARAM_INT) | |
| $cancel = optional_param('cancel', '', PARAM_RAW) | |
| $mode = 'addtemplate' | |
| $url = new moodle_url('/mod/data/edit.php') | |
| if(isguestuser()) | $context = get_context_instance(CONTEXT_MODULE, $cm->id) |
| if(empty($cm->visible) and!has_capability('moodle/course:viewhiddenactivities', $context)) if(has_capability('mod/data:managetemplates', $context)) if($rid) if($cancel) if(!empty($CFG->enablerssfeeds)&&!empty($CFG-> data_enablerssfeeds)&&$data-> rssarticles > 0) if($data-> csstemplate) if($data-> jstemplate) | $possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id') |
| If it's hidden then it doesn't show anything. :) | |
| foreach($possiblefields as $field) | $strdata = get_string('modulenameplural','data') |
| Define page variables. | |
| $currentgroup = groups_get_activity_group($cm) | |
| Check to see if groups are being used here. | |
| $groupmode = groups_get_activity_groupmode($cm) | |
| $currenttab = 'add' | |
| Print the tabs. | |
| if ($rid) | |
| $patterns = array() | |
| Print the browsing interface. | |
| $replacement = array() | |
| if(!$fields=$DB->get_records('data_fields', array('dataid'=> $data->id))) | foreach ($fields as $eachfield) |
| Finish the page. | |
| if (isguestuser()) $context = get_context_instance(CONTEXT_MODULE, $cm->id) |
| $currentgroup = groups_get_activity_group($cm) |
| $d = optional_param('d', 0, PARAM_INT) |
| if (empty($cm->visible) and!has_capability('moodle/course:viewhiddenactivities', $context)) if (has_capability('mod/data:managetemplates', $context)) if ($rid) if ($cancel) if (!empty($CFG->enablerssfeeds)&&!empty($CFG->data_enablerssfeeds)&&$data->rssarticles > 0) if ($data->csstemplate) if ($data->jstemplate) $possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id') |
| $rid = optional_param('rid', 0, PARAM_INT) |
| foreach ($possiblefields as $field) $strdata = get_string('modulenameplural','data') |
| $url = new moodle_url('/mod/data/edit.php') |