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

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

Variable Documentation

$attemptscount = $DB->count_records('lesson_grades', array('lessonid'=>$lesson->id))

user attempt count for reports link hover (completed attempts - much faster)

Definition at line 50 of file tabs.php.

global $DB

This file to be included so we can assume config.php has already been included.

Definition at line 32 of file tabs.php.

$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)))

Definition at line 52 of file tabs.php.

if (empty($lesson)) if (!isset($currenttab)) if (!isset($cm)) if (!isset($course)) $tabs = $row = $inactive = $activated = array()

Definition at line 47 of file tabs.php.

if (has_capability('mod/lesson:edit', $context)) if ($lesson->highscores) $tabs[] = $row

Definition at line 62 of file tabs.php.

 All Data Structures Namespaces Files Functions Variables Enumerations