Move DateHelper::getLabel() to $item->label()

Created on 10 January 2024, 6 months ago
Updated 24 January 2024, 5 months ago

Problem/Motivation

In the attempt to go away from arrays and only use the OfficeHoursItem objects, the static function DateHelper::getLabel() should not be used anymore. However, only OfficeHoursItem->label() should be used.

Proposed resolution

Move parts of DateHelper::getLabel() into OfficeHoursItem->getLabel() (and subclasses)
Move remainder of DateHelper::getLabel() to OfficeHoursItem->formatLabel(). We keep this as a static function to avoid recursive calling in Item->label() for grouped days.
Rename irtem->getLabel() to Item->label() (core used label() for objects, and static function getLabel() for static functions.

πŸ“Œ Task
Status

Fixed

Version

1.12

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024