public function onBuildEmploginAppointmentsData(array &$orders, mixed $authJModelVAP $model) : void

Fires before returning the array of upcoming appointments.


Description

Trigger hook to manipulate at runtime the response of the query used to load the upcoming appointments to display, under the dashboard of the Employees Area page.

Third party plugins can alter the resulting list of appointments.


Parameters

&$rows

(array)  An array of appointments.

$auth

(VAPEmployeeAuth)  The authenticated employee instance.

$model

(JModelVAP)  The model responsible of loading the data needed to the All Orders page.

Return Value

None.


Example

/**
 * Trigger hook to manipulate the query response at runtime. Third party
 * plugins can alter the resulting list of appointments.
 *
 * @param   array            &$rows  An array of fetched appointments.
 * @param   VAPEmployeeAuth  $auth   The authenticated employee instance.
 * @param   JModel           $model  The current model.
 *
 * @return  void
 *
 * @since   1.7.9
 */
public function onBuildEmploginAppointmentsData(&$rows, $auth, $model)
{
    /**
     * @todo do stuff here
     */
}

Changelog

Version Description
1.7.9 Introduced.
Last Update: 3 weeks ago.
Helpful?