Your cart is empty!
Build Employees Data
public function onBuildServiceSearchEmployeesData(array &$employees, object $service, array $options) : void
Fires before assigning the employees list to the service.
Description
Trigger hook to manipulate at runtime the response of the query used to load the available employees for the service to display, under the Service Details page.
Third party plugins can alter the details of the loaded employees.
Parameters
- &$employees
-
(array) The list holding the available employees.
- $service
-
(object) The object holding the service details.
- $options
-
(array) An array of options.
Return Value
None.
Example
/**
* Trigger hook to manipulate the query response at runtime. Third party
* plugins can include further details into the service object.
*
* @param array &$employees A list of fetched employees.
* @param object $service An object holding the service details.
* @param array $options An array of options.
*
* @return void
*/
public function onBuildServiceSearchEmployeesData(&$employees, $service, $options)
{
/**
* @todo do stuff here
*/
}
Changelog
Version | Description |
---|---|
1.7.4 | Introduced. |
Last Update: 2024-05-14 14:11
Helpful?