|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
| enum CALENDAR_EVENT_GROUP |
| enum CALENDAR_EVENT_USER |
CALENDAR_STARTING_WEEKDAY has since been deprecated please call calendar_get_starting_weekday() instead
| enum CALENDAR_TF_12 |
| enum CALENDAR_TF_24 |
| enum CALENDAR_URL |
| calendar_add_event_allowed | ( | $ | event | ) |
| calendar_add_event_metadata | ( | $ | event | ) |
| calendar_add_month | ( | $ | month, |
| $ | year | ||
| ) |
| calendar_day_representation | ( | $ | tstamp, |
| $ | now = false, |
||
| $ | usecommonwords = true |
||
| ) |
| calendar_days_in_month | ( | $ | month, |
| $ | year | ||
| ) |
| calendar_edit_event_allowed | ( | $ | event | ) |
| calendar_events_by_day | ( | $ | events, |
| $ | month, | ||
| $ | year, | ||
| &$ | eventsbyday, | ||
| &$ | durationbyday, | ||
| &$ | typesbyday, | ||
| &$ | courses | ||
| ) |
| calendar_filter_controls | ( | moodle_url $ | returnurl | ) |
| calendar_format_event_time | ( | $ | event, |
| $ | now, | ||
| $ | linkparams = null, |
||
| $ | usecommonwords = true, |
||
| $ | showtime = 0 |
||
| ) |
| calendar_get_allowed_types | ( | &$ | allowed, |
| $ | course = null |
||
| ) |
| calendar_get_block_upcoming | ( | $ | events, |
| $ | linkhref = NULL |
||
| ) |
| calendar_get_course_cached | ( | &$ | coursecache, |
| $ | courseid | ||
| ) |
Returns the default courses to display on the calendar when there isn't a specific course to display.
moodle_database $DB
Definition at line 1344 of file lib.php.


| calendar_get_events | ( | $ | tstart, |
| $ | tend, | ||
| $ | users, | ||
| $ | groups, | ||
| $ | courses, | ||
| $ | withduration = true, |
||
| $ | ignorehidden = true |
||
| ) |
Get calendar events
| int | $tstart | Start time of time range for events |
| int | $tend | End time of time range for events |
| array/int/boolean | $users array of users, user id or boolean for all/no user events | |
| array/int/boolean | $groups array of groups, group id or boolean for all/no group events | |
| array/int/boolean | $courses array of courses, course id or boolean for all/no course events | |
| boolean | $withduration | whether only events starting within time range selected or events in progress/already started selected as well |
| boolean | $ignorehidden | whether to select only visible events or all events |
Definition at line 598 of file lib.php.

| calendar_get_link_href | ( | $ | linkbase, |
| $ | d, | ||
| $ | m, | ||
| $ | y | ||
| ) |
Adds day, month, year arguments to a URL and returns a moodle_url object.
| string | moodle_url | $linkbase | |
| int | $d | |
| int | $m | |
| int | $y |
Definition at line 966 of file lib.php.

| calendar_get_link_next | ( | $ | text, |
| $ | linkbase, | ||
| $ | d, | ||
| $ | m, | ||
| $ | y, | ||
| $ | accesshide = false |
||
| ) |
Build and return a next month HTML link, with an arrow.
| string | $text | The text label. |
| string | moodle_url | $linkbase | The URL stub. |
| int | $d | $m $y Day of month, month and year numbers. |
| bool | $accesshide | Default visible, or hide from all except screenreaders. |
Definition at line 1032 of file lib.php.


| calendar_get_link_previous | ( | $ | text, |
| $ | linkbase, | ||
| $ | d, | ||
| $ | m, | ||
| $ | y, | ||
| $ | accesshide = false |
||
| ) |
Build and return a previous month HTML link, with an arrow.
| string | $text | The text label. |
| string | moodle_url | $linkbase | The URL stub. |
| int | $d | $m $y Day of month, month and year numbers. |
| bool | $accesshide | Default visible, or hide from all except screenreaders. |
Definition at line 1015 of file lib.php.


| calendar_get_link_tag | ( | $ | text, |
| $ | linkbase, | ||
| $ | d, | ||
| $ | m, | ||
| $ | y | ||
| ) |
This function has been deprecated as of Moodle 2.0... DO NOT USE!!!!!
| string | $text | |
| string | moodle_url | $linkbase | |
| int | null | $d | |
| int | null | $m | |
| int | null | $y |
Definition at line 998 of file lib.php.

| calendar_get_mini | ( | $ | courses, |
| $ | groups, | ||
| $ | users, | ||
| $ | cal_month = false, |
||
| $ | cal_year = false |
||
| ) |
Generates the HTML for a miniature calendar
core_renderer $OUTPUT
| array | $courses | |
| array | $groups | |
| array | $users | |
| int | $cal_month | |
| int | $cal_year |
Definition at line 106 of file lib.php.


| calendar_get_module_cached | ( | &$ | coursecache, |
| $ | modulename, | ||
| $ | instance | ||
| ) |
| calendar_get_popup | ( | $ | is_today, |
| $ | event_timestart, | ||
| $ | popupcontent = '' |
||
| ) |
calendar_get_popup, called at multiple points in from calendar_get_mini. Copied and modified from calendar_get_mini. moodle_page $PAGE
| $is_today | bool, false except when called on the current day. |
| $event_timestart | mixed, $events[$eventid]->timestart, OR false if there are no events. |
| $popupcontent | string. |
Definition at line 386 of file lib.php.


| calendar_get_upcoming | ( | $ | courses, |
| $ | groups, | ||
| $ | users, | ||
| $ | daysinfuture, | ||
| $ | maxevents, | ||
| $ | fromtime = 0 |
||
| ) |
| calendar_preferences_button | ( | stdClass $ | course | ) |
| calendar_print_event | ( | $ | event, |
| $ | showactions = true |
||
| ) |
Prints a calendar event
Definition at line 576 of file lib.php.

| calendar_print_month_selector | ( | $ | name, |
| $ | selected | ||
| ) |
| calendar_set_event_type_display | ( | $ | type, |
| $ | display = null, |
||
| $ | user = null |
||
| ) |
Sets the display of the event type given $display. If $display = true the event type will be shown. If $display = false the event type will NOT be shown. If $display = null the current value will be toggled and saved.
| CALENDAR_EVENT_GLOBAL | CALENDAR_EVENT_COURSE | CALENDAR_EVENT_GROUP | CALENDAR_EVENT_USER | $type | |
| true | false | null | $display | |
| stdClass | int | null | $user |
Definition at line 1509 of file lib.php.

| calendar_set_filters | ( | array $ | courseeventsfrom, |
| $ | ignorefilters = false |
||
| ) |
Returns the courses to load events for, the
moodle_database $DB
| array | $courseeventsfrom | An array of courses to load calendar events for |
| bool | $ignorefilters |
Definition at line 1218 of file lib.php.


| calendar_show_event_type | ( | $ | type, |
| $ | user = null |
||
| ) |
Checks to see if the requested type of event should be shown for the given user.
| CALENDAR_EVENT_GLOBAL | CALENDAR_EVENT_COURSE | CALENDAR_EVENT_GROUP | CALENDAR_EVENT_USER | $type | The type to check the display for (default is to display all) |
| stdClass | int | null | $user | The user to check for - by default the current user |
Definition at line 1486 of file lib.php.


| calendar_sub_month | ( | $ | month, |
| $ | year | ||
| ) |
| calendar_time_representation | ( | $ | time | ) |
| calendar_top_controls | ( | $ | type, |
| $ | data | ||
| ) |
| calendar_user_can_add_event | ( | $ | course | ) |
| calendar_wday_name | ( | $ | englishname | ) |