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

Go to the source code of this file.

Variables

 $id = required_param('id',PARAM_INT)
 $strchoice = get_string("modulename", "choice")
 $strchoices = get_string("modulenameplural", "choice")
 $strsectionname = get_string('sectionname', 'format_'.$course->format)
if(!$choices=get_all_instances_in_course("choice",
$course)) 
$usesections = course_format_uses_sections($course->format)
if($usesections) $sql
 $answers = array ()
if(isloggedin()
and!isguestuser() and
$allanswers=$DB->
get_records_sql($sql, array($course->
id, $USER->id))) 
$timenow = time()
 $table = new html_table()
 foreach ($choices as $choice)

Variable Documentation

$answers = array ()

Definition at line 41 of file index.php.

Definition at line 6 of file index.php.

if ($usesections) $sql
Initial value:
"SELECT cha.*
              FROM {choice} ch, {choice_answers} cha
             WHERE cha.choiceid = ch.id AND
                   ch.course = ? AND cha.userid = ?"

Definition at line 36 of file index.php.

$strchoice = get_string("modulename", "choice")

Definition at line 19 of file index.php.

$strchoices = get_string("modulenameplural", "choice")

Definition at line 20 of file index.php.

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

Definition at line 21 of file index.php.

$table = new html_table()

Definition at line 52 of file index.php.

if (isloggedin() and!isguestuser() and $allanswers=$DB->get_records_sql($sql, array($course->id, $USER->id))) $timenow = time()

Definition at line 50 of file index.php.

if (!$choices=get_all_instances_in_course("choice", $course)) $usesections = course_format_uses_sections($course->format)

Definition at line 31 of file index.php.

foreach($choices as $choice)

Definition at line 64 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations