Your cart is empty!
Build Data
public function onBuildServiceSearchData(object $service, JModelVAP $model) : void
Fires before returning the service details.
Description
Trigger hook to manipulate at runtime the response of the query used to load the service to display, under the Service Details page.
Third party plugins can alter the details of the loaded service.
Parameters
- $service
-
(object) The object holding the service details.
- $model
-
(JModelVAP) The model responsible of loading the data needed to the Service Search page.
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 object $service An object holding the service details.
* @param JModelVAP $model The view model.
*
* @return void
*/
public function onBuildServiceSearchData($service, $model)
{
/**
* @todo do stuff here
*/
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-10 10:31
Helpful?