preFillOrganizerPanel()
public function preFillOrganizerPanel($path, &$panel, $refinerName, $refinerId, $mode) { //...your PHP code...// }
This method allows you to alter a panel in Organizer, before Organizer runs its SQL queries.
This method is called when an administrator views a panel in Organizer that you have written.
It's also possible to run your fillOrganizerPanel() method on another module's panel by placing a button or a refiner on that panel.
From Zenario 7.0.0 onwards.
$path
The tag path to the panel that is currently being accessed.
$panel
The tags generated so far will be available to you in the $panel
variable as a PHP associative array.
This variable is passed by reference, and you have the ability to add/edit/remove tags as needed to alter the behaviour of your Panel.
$refinerName
The name of the refiner that is being applied to the Panel, if there is one.
$refinerId
The value of the refiner that is being applied to the Panel, if there is one.
Note that if you wish to access the values of refiners used on previous panels then they will be available in the $_GET
request.
$mode
The mode that Organizer is currently running in; you can see a list of modes here.
No return value is needed.