See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]
Front-end class.
Copyright: | 2014 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 174 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
frontend:: (4 methods):
get_javascript_strings()
get_time_from_fields()
get_fields_from_time()
get_javascript_init_params()
get_javascript_strings() X-Ref |
The date selector popup is not currently supported because the date selector is in a messy state (about to be replaced with a new YUI3 implementation) and MDL-44814 was rejected. I have left the code in place, but disabled. When the date selector situation is finalised, then this constant should be removed (either applying MDL-44814 if old selector is still in use, or modifying the JavaScript code to support the new date selector if it has landed). |
get_time_from_fields($year, $month, $day, $hour, $minute) X-Ref |
Given field values, obtains the corresponding timestamp. param: int $year Year param: int $month Month param: int $day Day param: int $hour Hour param: int $minute Minute return: int Timestamp |
get_fields_from_time($time) X-Ref |
Given a timestamp, obtains corresponding field values. param: int $time Timestamp return: \stdClass Object with fields for year, month, day, hour, minute |
get_javascript_init_params($course, \cm_info $cm = null,\section_info $section = null) X-Ref |
No description |