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

Go to the source code of this file.

Variables

 $courseid = required_param('course', PARAM_INT)
 $course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST)
 $defaultlookahead = CALENDAR_DEFAULT_UPCOMING_LOOKAHEAD
if(isset($CFG->calendar_lookahead)) $defaultmaxevents = CALENDAR_DEFAULT_UPCOMING_MAXEVENTS
if(isset($CFG->calendar_maxevents)) $prefs = new stdClass
$prefs timeformat = get_user_preferences('calendar_timeformat', '')
$prefs startwday = get_user_preferences('calendar_startwday', calendar_get_starting_weekday())
$prefs maxevents = get_user_preferences('calendar_maxevents', $defaultmaxevents)
$prefs lookahead = get_user_preferences('calendar_lookahead', $defaultlookahead)
$prefs persistflt = get_user_preferences('calendar_persistflt', 0)
 $form = new calendar_preferences_form($PAGE->url)
if($form->is_cancelled()) else
if($form->is_submitted()&&$form->
is_validated()&&confirm_sesskey()) 
$strcalendar = get_string('calendar', 'calendar')
 $strpreferences = get_string('calendarpreferences', 'calendar')

Variable Documentation

Definition at line 10 of file preferences.php.

Definition at line 9 of file preferences.php.

Definition at line 24 of file preferences.php.

if (isset($CFG->calendar_lookahead)) $defaultmaxevents = CALENDAR_DEFAULT_UPCOMING_MAXEVENTS

Definition at line 28 of file preferences.php.

$form = new calendar_preferences_form($PAGE->url)

Definition at line 40 of file preferences.php.

if (isset($CFG->calendar_maxevents)) $prefs = new stdClass

Definition at line 33 of file preferences.php.

if ($form->is_cancelled()) else if ($form->is_submitted()&&$form->is_validated()&&confirm_sesskey()) $strcalendar = get_string('calendar', 'calendar')

Definition at line 71 of file preferences.php.

$strpreferences = get_string('calendarpreferences', 'calendar')

Definition at line 72 of file preferences.php.

$prefs lookahead = get_user_preferences('calendar_lookahead', $defaultlookahead)

Definition at line 37 of file preferences.php.

$prefs maxevents = get_user_preferences('calendar_maxevents', $defaultmaxevents)

Definition at line 36 of file preferences.php.

$prefs persistflt = get_user_preferences('calendar_persistflt', 0)

Definition at line 38 of file preferences.php.

Definition at line 35 of file preferences.php.

$prefs timeformat = get_user_preferences('calendar_timeformat', '')

Definition at line 34 of file preferences.php.

 All Data Structures Namespaces Files Functions Variables Enumerations