|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($day=0, $month=0, $year=0) | |
| prepare_for_view (stdClass $course, array $coursestoload, $ignorefilters=false) | |
| checkdate ($defaultonow=true) | |
| timestamp_today () | |
| timestamp_tomorrow () | |
| add_sidecalendar_blocks (core_calendar_renderer $renderer, $showfilters=false, $view=null) | |
Data Fields | |
| $day | |
| $month | |
| $year | |
| $courseid = null | |
| $courses = array() | |
| $groups = array() | |
| $users = array() | |
Calendar information class
This class is used simply to organise the information pertaining to a calendar and is used primarily to make information easily available.
| __construct | ( | $ | day = 0, |
| $ | month = 0, |
||
| $ | year = 0 |
||
| ) |
| add_sidecalendar_blocks | ( | core_calendar_renderer $ | renderer, |
| $ | showfilters = false, |
||
| $ | view = null |
||
| ) |
Adds the pretend blocks for teh calendar
| core_calendar_renderer | $renderer | |
| bool | $showfilters | |
| string | null | $view |
Definition at line 2443 of file lib.php.

Ensures the date for the calendar is correct and either sets it to now or throws a moodle_exception if not
| bool | $defaultonow |
Definition at line 2408 of file lib.php.


| prepare_for_view | ( | stdClass $ | course, |
| array $ | coursestoload, | ||
| $ | ignorefilters = false |
||
| ) |
| timestamp_today | ( | ) |