[Piwik-hackers] how to access to db from LogStats hook?
Sergey Stoyan
stoyan at cliversoft.com
Tue Jul 22 16:33:48 CEST 2008
Hi all,
I implemented a hook on visitor's action:
function getListHooksRegistered()
{
$hooks = array(
'LogStats.newAction' => 'logOrderId',
);
return $hooks;
}
Now I need to perform a query to db in my logOrderId().
I found that $notification->getNotificationObject() does not contain db object.
Please advise a way to get the db connection there.
Thank you,
Sergey
More information about the Piwik-hackers
mailing list