Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Class representing event times. More...
Public Member Functions | |
__construct (DateTimeImmutable $start, DateTimeImmutable $end, DateTimeImmutable $sort, DateTimeImmutable $modified) | |
Constructor. More... | |
get_duration () | |
Get the duration (the time between start and end). More... | |
get_end_time () | |
Get the end time. More... | |
get_modified_time () | |
Get the modified time. More... | |
get_sort_time () | |
Get the sort time. More... | |
get_start_time () | |
Get the start time. More... | |
Class representing event times.
core_calendar\local\event\value_objects\event_times::__construct | ( | DateTimeImmutable | $start, |
DateTimeImmutable | $end, | ||
DateTimeImmutable | $sort, | ||
DateTimeImmutable | $modified | ||
) |
Constructor.
DateTimeImmutable | $start | Event start time. |
DateTimeImmutable | $end | Event end time. |
DateTimeImmutable | $sort | Date used to sort events. |
DateTimeImmutable | $modified | Time event was last updated. |
core_calendar\local\event\value_objects\event_times::get_duration | ( | ) |
Get the duration (the time between start and end).
DateInterval |
Implements core_calendar\local\event\value_objects\times_interface.
core_calendar\local\event\value_objects\event_times::get_end_time | ( | ) |
Get the end time.
DateTimeImmutable |
Implements core_calendar\local\event\value_objects\times_interface.
core_calendar\local\event\value_objects\event_times::get_modified_time | ( | ) |
Get the modified time.
DateTimeImmutable |
Implements core_calendar\local\event\value_objects\times_interface.
core_calendar\local\event\value_objects\event_times::get_sort_time | ( | ) |
Get the sort time.
DateTimeImmutable |
Implements core_calendar\local\event\value_objects\times_interface.
core_calendar\local\event\value_objects\event_times::get_start_time | ( | ) |
Get the start time.
DateTimeImmutable |
Implements core_calendar\local\event\value_objects\times_interface.