public function onBuildEmployeeSearchData(object $employeeJModelVAP $model) : void

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

$employee

(object)  The object holding the employee details.

$model

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

Return Value

None.


Example

/**
 * Trigger hook to manipulate the query response at runtime. Third party
 * plugins can include further details into the employee object.
 *
 * @param   object     $employee  An object holding the employee details.
 * @param   JModelVAP  $model     The view model.
 *
 * @return  void
 */
public function onBuildEmployeeSearchData($employee, $model)
{
    /**
     * @todo do stuff here
     */
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-11 09:30
Helpful?
See Also: