Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/course/format/weeks/format.php File Reference

Go to the source code of this file.

Variables

 $week = optional_param('week', -1, PARAM_INT)
 $stradd = get_string('add')
 $stractivities = get_string('activities')
 $strshowallweeks = get_string('showallweeks')
 $strweek = get_string('week')
 $strgroups = get_string('groups')
 $strgroupmy = get_string('groupmy')
 $editing = $PAGE->user_is_editing()
if($editing) $context = get_context_instance(CONTEXT_COURSE, $course->id)
 $completioninfo = new completion_info($course)
if(ismoving($course->id)) $section = 0
 If currently moving a file then show the current clipboard.
 $thissection = $sections[$section]
if($thissection->summary or
$thissection->sequence or
$PAGE->user_is_editing()) 
$timenow = time()
 $weekdate = $course->startdate
 $sectionmenu = array()
 $weekofseconds = 604800
$course enddate = $course->startdate + ($weekofseconds * $course->numsections)
 $strftimedateshort = ' '.get_string('strftimedateshort')
while($weekdate< $course->enddateif (!$displaysection and $PAGE->user_is_editing() and has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id)))

Variable Documentation

$completioninfo = new completion_info($course)

Definition at line 59 of file format.php.

Definition at line 56 of file format.php.

$editing = $PAGE->user_is_editing()

Definition at line 47 of file format.php.

$section = 0

If currently moving a file then show the current clipboard.

Print Section 0 with general activities

Definition at line 78 of file format.php.

$sectionmenu = array()

Definition at line 128 of file format.php.

$stractivities = get_string('activities')

Definition at line 42 of file format.php.

$stradd = get_string('add')

Definition at line 41 of file format.php.

$strftimedateshort = ' '.get_string('strftimedateshort')

Definition at line 132 of file format.php.

$strgroupmy = get_string('groupmy')

Definition at line 46 of file format.php.

$strgroups = get_string('groups')

Definition at line 45 of file format.php.

$strshowallweeks = get_string('showallweeks')

Definition at line 43 of file format.php.

$strweek = get_string('week')

Definition at line 44 of file format.php.

$thissection = $sections[$section]

Definition at line 79 of file format.php.

if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing()) $timenow = time()

Now all the normal modules by week Everything below uses "section" terminology - each "section" is a week.

Definition at line 124 of file format.php.

$week = optional_param('week', -1, PARAM_INT)

Definition at line 32 of file format.php.

$weekdate = $course->startdate

Definition at line 125 of file format.php.

$weekofseconds = 604800

Definition at line 129 of file format.php.

$course enddate = $course->startdate + ($weekofseconds * $course->numsections)

Definition at line 130 of file format.php.

while ($weekdate< $course->enddate) if(!$displaysection and $PAGE->user_is_editing() and has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id)))

Definition at line 257 of file format.php.

 All Data Structures Namespaces Files Functions Variables Enumerations