Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

Defines 1 class


Class: frontend  - X-Ref

Front-end class.

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