Your cart is empty!
Before Register
public function onBeforeRegisterTakeAwayDeals( array &$rows ) : void
Fires after loading the available take-away deals from the database.
Description
Trigger hook to allow external plugins to manipulate the list of available deals. Here it is possible to attach new take-away deals at runtime or the detach the configured ones.
Parameters
- &$rows
-
(array) An array of objects, holding the information of the deals.
Return Value
None.
Example
/**
* Trigger hook to allow external plugins to manipulate the list of
* available deals through this helper class.
*
* @param object[] &$rows An array of deal records.
*
* @return void
*/
public function onBeforeRegisterTakeAwayDeals(&$rows)
{
/**
* @todo it is possible to manipulate here the query
*/
}
Changelog
| Version | Description |
|---|---|
| 1.9 | Introduced. |
Last Update: 2023-12-29 14:15
Helpful?