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

Go to the source code of this file.

Variables

 $courseid = optional_param('course', SITEID, PARAM_INT)
 retrieve parameters
 $userid = optional_param('user', 0, PARAM_INT)
 $filtertype = optional_param('filtertype', '', PARAM_ALPHA)
 $filterselect = optional_param('filterselect', 0, PARAM_INT)
 $url = new moodle_url('/notes/index.php')
switch($filtertype) if(empty($courseid)) $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST)
 tabs compatibility
 $strnotes = get_string('notes', 'notes')
 output HTML
 $strcoursenotes = get_string('coursenotes', 'notes')
 $strpersonalnotes = get_string('personalnotes', 'notes')
 $straddnewnote = get_string('addnewnote', 'notes')

Variable Documentation

switch ($filtertype) if (empty($courseid)) $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST)

tabs compatibility

locate course information

Definition at line 42 of file index.php.

retrieve parameters

file index.php index page to view notes. if a course id is specified then the entries from that course are shown if a user id is specified only notes related to that user are shown

Definition at line 13 of file index.php.

$filterselect = optional_param('filterselect', 0, PARAM_INT)

Definition at line 16 of file index.php.

$filtertype = optional_param('filtertype', '', PARAM_ALPHA)

Definition at line 15 of file index.php.

$straddnewnote = get_string('addnewnote', 'notes')

Definition at line 103 of file index.php.

$strcoursenotes = get_string('coursenotes', 'notes')

Definition at line 101 of file index.php.

$strnotes = get_string('notes', 'notes')

output HTML

Definition at line 78 of file index.php.

$strpersonalnotes = get_string('personalnotes', 'notes')

Definition at line 102 of file index.php.

$url = new moodle_url('/notes/index.php')

Definition at line 18 of file index.php.

Definition at line 14 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations