English (United Kingdom)
Knowledge Base  >  Vik Appointments  >  Hooks  >  Site Pages  >  Employees Area  >  Dashboard  >  Build Appointments Data

apply_filters_ref_array( 'vikappointments_build_emplogin_appointments_data', bool $status, array &$ordersmixed $authJModelVAP $model )

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

$status

(bool)  True on success, false otherwise.

&$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.


Example

/**
 * Trigger hook to manipulate the query response at runtime. Third party
 * plugins can alter the resulting list of appointments.
 *
 * @param  bool             $status  True on success, false otherwise.
 * @param  array            &$rows   An array of fetched appointments.
 * @param  VAPEmployeeAuth  $auth    The authenticated employee instance.
 * @param  JModel           $model   The current model.
 *
 * @since  1.2.19
 */
add_filter('vikappointments_build_emplogin_appointments_data', function($status, &$rows, $auth, $model)
{
    /**
     * @todo do stuff here
     */

    return $status;
}, 10, 4);

Changelog

Version Description
1.2.19 Introduced.
Last Update: 1 day ago
Helpful?