[Piwik-hackers] how to access to db from LogStats hook?
Matthieu Aubry
matthieu.aubry at gmail.com
Wed Jul 23 00:35:03 CEST 2008
With the last SVN version, you can
Piwik_LogStats::getDb()
(I've just commited the patch so you can use the Db from your plugin!)
Sergey Stoyan wrote:
> 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
> _______________________________________________
> Piwik-hackers mailing list
> Piwik-hackers at piwik.org
> http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
>
>
More information about the Piwik-hackers
mailing list