public function onAfterFetchCalendarData(object $dataarray $options) : void

Fires after fetching the calendar data in the front-end.


Description

Trigger hook after fetching the data needed to display a calendar in the front-end.

Useful, in example, to include additional information about the calendar or to implement a new layout type.


Parameters

$data

(object)  The object holding the calendar data.

$options

(array)  An array of search options.

  • id_ser - the ID of the selected service;
  • id_emp - the ID of the selected employee;
  • layout - the type of layout to use (weekly or monthly).

Return Value

None.


Example

/**
 * Trigger hook after fetching the data needed to display a calendar.
 * Useful, in example, to include additional information about the calendar
 * or to implement a new layout type.
 *
 * @param   object  $data     The object holding the calendar data.
 * @param   array   $options  An array of search options.
 *
 * @return  void
 */
public function onAfterFetchCalendarData($data, $options)
{
    /**
     * @todo do stuff here
     */
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-06 16:12
Helpful?