English (United Kingdom)

apply_filters( 'vikappointments_build_employee_search_data', bool $status, object $employeeJModelVAP $model )

Fires before returning the employee details.


Description

Trigger hook to manipulate at runtime the response of the query used to load the employee to display, under the Employee Details page.

Third party plugins can alter the details of the loaded employee.


Parameters

$status

(bool)  True on success, false otherwise.

$employee

(object)  The object holding the employee details.

$model

(JModelVAP)  The model responsible of loading the data needed to the Employee Search page.


Example

/**
 * Trigger hook to manipulate the query response at runtime. Third party
 * plugins can include further details into the employee object.
 *
 * @param  boolean    $status    True on success, false otherwise.
 * @param  object     $employee  An object holding the employee details.
 * @param  JModelVAP  $model     The view model.
 */
add_filter('vikappointments_build_employee_search_data', function($status, $employee, $model)
{
    /**
     * @todo do stuff here
     */

    return true;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-07-30
Helpful?
See Also: