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

Go to the source code of this file.

Variables

 $id = required_param('id', PARAM_INT)
 $context = get_context_instance(CONTEXT_COURSE, $course->id)
 $strglossarys = get_string("modulenameplural", "glossary")
 Get all required strings.
 $strglossary = get_string("modulename", "glossary")
 $strrss = get_string("rss")
if(!$glossarys=get_all_instances_in_course("glossary",
$course)) 
$usesections = course_format_uses_sections($course->format)
 Get all the appropriate data.
if($usesections) $timenow = time()
 Print the list of instances (your module will probably extend this)
 $strsectionname = get_string('sectionname', 'format_'.$course->format)
 $strname = get_string("name")
 $strentries = get_string("entries", "glossary")
 $table = new html_table()
 foreach ($glossarys as $glossary)

Variable Documentation

Definition at line 21 of file index.php.

This page lists all the instances of glossary in a particular course Replace glossary with the name of your module

Definition at line 11 of file index.php.

$strentries = get_string("entries", "glossary")

Definition at line 56 of file index.php.

$strglossary = get_string("modulename", "glossary")

Definition at line 29 of file index.php.

$strglossarys = get_string("modulenameplural", "glossary")

Get all required strings.

Definition at line 28 of file index.php.

$strname = get_string("name")

Definition at line 55 of file index.php.

$strrss = get_string("rss")

Definition at line 30 of file index.php.

$strsectionname = get_string('sectionname', 'format_'.$course->format)

Definition at line 54 of file index.php.

$table = new html_table()

Definition at line 58 of file index.php.

if ($usesections) $timenow = time()

Print the list of instances (your module will probably extend this)

Definition at line 53 of file index.php.

if (!$glossarys=get_all_instances_in_course("glossary", $course)) $usesections = course_format_uses_sections($course->format)

Get all the appropriate data.

Definition at line 46 of file index.php.

foreach($glossarys as $glossary)

Definition at line 76 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations