public function onBuildPackagesOrdersData(array &$ordersJModelVAP $model) : void

Fires before returning the array of packages orders.


Description

Trigger hook to manipulate at runtime the response of the query used to load the items to display, under the Packages Orders page.

Third party plugins can alter the resulting list of orders.


Parameters

&$orders

(array)  An array of orders.

$model

(JModelVAP)  The model responsible of loading the data needed to the Packages Orders page.

Return Value

None.


Example

/**
 * Trigger hook to manipulate the query response at runtime. Third party
 * plugins can alter the resulting list of orders.
 *
 * @param   array      &$orders  An array of orders
 * @param   JModelVAP  $model    The view model.
 *
 * @return  void
 */
public function onBuildPackagesOrdersData(&$orders, $model)
{
    /**
     * @todo do stuff here
     */
}

Changelog

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