Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Review list of Event names, Piwik 2 plugin hooks #4134

Closed
mattab opened this Issue · 15 comments

3 participants

Matthieu Aubry Thomas Steur Fabian Becker
Matthieu Aubry
Owner

Review hook names and make them consistent.

See suggestion in this doc https://docs.google.com/spreadsheet/ccc?key=0AvPareR6i0gfdFp4SUVNSy1qdE0zbTNhU3pRS0lLYnc#gid=0

Matthieu Aubry
Owner

In d91d0d8: * Renaming getCssFiles hook to getStylesheetFiles

  • Renaming function names
  • Removing getCss and getJs from CoreHome module since they are expected in the Proxy module

Refs #4134

Thomas Steur
Owner

In e476ef0: refs #4134 renamed some hooks

Thomas Steur
Owner

In 43883bd: refs #4134 renamed hook

Thomas Steur
Owner

In 7b7df45: refs #4134 better name for constant after renaming the hook

Thomas Steur
Owner

In 7abaeb9: refs #4134 renamed template hooks

Thomas Steur
Owner

In 676327f: refs #4134 trigger general API event for all actions

Thomas Steur
Owner

In c19465f: refs #4134 added general event for controllers

Thomas Steur
Owner

In 2c5e854: refs #4134 renamed some more hooks

Thomas Steur
Owner

In f00d2f8: refs #4134 use plural to indicate a developer can add multiple entries or widgets

Thomas Steur
Owner

In cc422d3: refs #4134 added generic API hook

Thomas Steur
Owner

In f185beb: refs #4134 renamed some more hooks and removed some not used and not needed hooks

Fabian Becker
Collaborator

Is there a list of changed hooks? This would be important to have since people need to rewrite their plugins.

Thomas Steur
Owner

new: API.Request.dispatch
API.Proxy.processReturnValue --> API.Request.dispatch.end
ArchiveProcessing_Day.compute --> ArchiveProcessor.Day.compute
ArchiveProcessing_Period.compute --> ArchiveProcessor.Period.compute
AssetManager.filterMergedJs --> AssetManager.filterMergedJavaScripts
AssetManager.filterMergedCss --> AssetManager.filterMergedStylesheets
AssetManager.getJsFiles --> AssetManager.getJavaScriptFiles
FrontController.badConfigurationFile --> Config.badConfigurationFile
FrontController.NoConfigurationFile --> Config.noConfigurationFile
AdminMenu.add --> Menu.Admin.addItems
Menu.add --> Menu.Reporting.addItems
TopMenu.add --> Menu.Top.addItems
FrontController.dispatch --> Request.dispatch
new: Request.dispatch.end
FrontController.dispatchCoreAndPluginUpdatesScreen --> Request.dispatchCoreAndPluginUpdatesScreen
FrontController.initAuthenticationObject --> Request.initAuthenticationObject
Piwik.getKnownSegmentsToArchiveAllSites --> Segments.getKnownSegmentsToArchiveAllSites
Piwik.getKnownSegmentsToArchiveForSite --> Segments.getKnownSegmentsToArchiveForSite
Common.fetchWebsiteAttributes --> Site.getSiteAttributes
SitesManager.deleteSite --> SitesManager.deleteSite.end
template_footerUserCountry --> Template.footerUserCountry
template_footerVisitsFrequency --> Template.footerVisitsFrequency
template_headerVisitsFrequency --> Template.headerVisitsFrequency
template_leftColumnUserCountry --> Template.leftColumnUserCountry
template_nextToCalendar --> Template.nextToCalendar
template_reportParametersPDFReports --> Template.reportParametersPDFReports
template_topBar --> Template.topBar
Tracker.detectRefererSearchEngine --> Tracker.detectReferrerSearchEngine
Tracker.Visit.isExcluded --> Tracker.isExcludedVisit
Tracker.Action.record --> Tracker.recordAction
Tracker.setRequest.idSite --> Tracker.setSiteId
Tracker.Visit.setVisitorIp --> Tracker.setVisitorIp
Tracker.saveVisitorInformation --> Tracker.visitorInformation
FrontController.checkForUpdates --> Updater.checkForUpdates
Translate.getLanguageToLoad --> User.getLanguage
FrontController.NoAccessException --> User.isNotAuthorized
ViewDataTable.Visualization.getAvailable --> Visualization.addVisualizations
ViewDataTable.configureFooterIcons --> Visualization.configureFooterIcons
ViewDataTable.getReportDisplayProperties --> Visualization.getReportDisplayProperties
ViewDataTable.configureReportView --> Visualization.initView
WidgetsList.add --> WidgetsList.addWidgets
WidgetsList.get --> WidgetsList.getWidgets

Matthieu Aubry
Owner

See also next step: #4199 Document Hook events

Matthieu Aubry mattab added this to the 2.0 - Piwik 2.0 milestone
Thomas Steur tsteur was assigned by mattab
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry mattab * Renaming getCssFiles hook to getStylesheetFiles
* Renaming function names
* Removing getCss and getJs from CoreHome module since they are expected in the Proxy module

Refs #4134
d91d0d8
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 renamed some hooks e476ef0
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 renamed hook 43883bd
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 renamed template hooks 7abaeb9
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 trigger general API event for all actions 676327f
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 added general event for controllers c19465f
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 renamed some more hooks 2c5e854
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 use plural to indicate a developer can add multiple entrie…
…s or widgets
f00d2f8
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 added generic API hook cc422d3
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4134 renamed some more hooks and removed some not used and not …
…needed hooks
f185beb
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.