New hook to let plugins change the attributes for a website #4325

Closed
mattab opened this Issue Nov 20, 2013 · 2 comments

1 participant

@mattab
Piwik Open Source Analytics member

The Site object holds information about a particular website.

There are already a few ways a plugin developer can modify data for a website: updating it via the SitesManager API, create new tables to store data, create new APIs to expose new website features.

However when building plugins we sometimes simply need to filter the website attribute data.

For this I propose to add a new hook in the Site object, that would let plugin developers change website data in memory. Several plugins could filter this way.

@mattab
Piwik Open Source Analytics member

In 9b2cfaf: Fixes #4325 New hook to let plugins change the attributes for a website + moving helper getMinMaxDateAcrossWebsites to Site object

@mattab
Piwik Open Source Analytics member

In d87c9a6: Refs #4325 Making the new Site hook used piwik wide so that when eg. a site name is decorated, it appears in most places decorated.

@mattab mattab added this to the 2.0 - Piwik 2.0 milestone Jul 8, 2014
@mattab mattab self-assigned this Jul 8, 2014
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab mattab Fixes #4325 New hook to let plugins change the attributes for a websi…
…te + moving helper getMinMaxDateAcrossWebsites to Site object
9b2cfaf
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab mattab Refs #4325 Making the new Site hook used piwik wide so that when eg. …
…a site name is decorated, it appears in most places decorated.
d87c9a6
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment