|
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 | |
| global | $DB |
| This file to be included so we can assume config.php has already been included. | |
| if(empty($lesson)) if(!isset($currenttab)) if(!isset($cm)) if(!isset($course)) | $tabs = $row = $inactive = $activated = array() |
| $attemptscount = $DB->count_records('lesson_grades', array('lessonid'=>$lesson->id)) | |
| user attempt count for reports link hover (completed attempts - much faster) | |
| $row [] = new tabobject('view', "$CFG->wwwroot/mod/lesson/view.php?id=$cm->id", get_string('preview', 'lesson'), get_string('previewlesson', 'lesson', format_string($lesson->name))) | |
| if(has_capability('mod/lesson:edit', $context)) if($lesson-> highscores) | $tabs [] = $row |
| $attemptscount = $DB->count_records('lesson_grades', array('lessonid'=>$lesson->id)) |
| global $DB |