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

Fires before returning the array of subscription orders.


Description

Trigger hook to manipulate at runtime the response of the query used to load the items to display, under the Subscriptions History 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 Subscriptions History 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 onBuildSubscriptionOrdersData(&$orders, $model)
{
    /**
     * @todo do stuff here
     */
}

Changelog

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