Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 39 and 401]

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