handleAdminToolbarAJAX()
public function handleAdminToolbarAJAX($cID, $cType, $cVersion, $ids) { //...your PHP code...// }
You can handle AJAX requests from the Admin Toolbar by writing this method.
This Method will be called to handle any AJAX requests for any buttons you create on the Admin Toolbar.
From Zenario 7.0 onwards.
$cID
$cType
$cVersion
The Content Id, Type and Version of the current page.
$ids
If you are using a button with the pick_items property, you will be given the id of the item that was selected (or a comma-separated list if multiple items were selected).
No return value is needed.