Your cart is empty!
Build Data
public function onBuildAllOrdersData( array &$orders, string $group, JModelVRE $model ) : void
Fires before returning the array of restaurant reservations or take-away orders.
Description
Trigger hook to manipulate at runtime the response of the query used to load the restaurant reservations or the take-away orders to display, under the All Orders page.
Third party plugins can alter the resulting list of reservations/orders.
Parameters
- &$orders
-
(object[]) An array of reservations/orders.
- $group
-
(string) The current group ("restaurant" or "takeaway").
- $model
-
(JModelVRE) The model responsible of loading the data needed to the All Orders page.
Return Value
None.
Example
/**
* Trigger hook to manipulate the query response at runtime. Third party
* plugins can alter the resulting list of reservations/orders.
*
* @param array &$orders An array of reservations/orders.
* @param string $group The group to use ("restaurant" or "takeaway").
* @param JModelVRE $model The view model.
*
* @return void
*/
public function onBuildAllOrdersData(&$orders, $group, $model)
{
/**
* @todo do stuff here
*/
}
Changelog
Version | Description |
---|---|
1.9 | Introduced. |
Last Update: 2023-12-29 14:15
Helpful?