diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-04-24 04:26:39 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2018-04-24 04:26:39 +0300 |
commit | 34c4a857126cd936ff1e9b1a4fb590306be1c879 (patch) | |
tree | 65dece270b9cbc891953f6cdc89824d825c1ca54 /core/Plugin/LogTablesProvider.php | |
parent | 718eb0e315e4d47c6a72185be6e8d097b1df4765 (diff) |
GDPR + Add a couple of new platform features especially around validating settings (#12558)
* add a couple of new platform features especially around validating settings
* more validators and other tweaks
* few tweaks
* allow plugins to add header script in JS tests
* some work on gdpr
* remove email feature
* menu update
* add date tooltip
* make sure privacy has its own icon
* added some text
* add opt out info
* better titles
* add some information about webserver logs
* add log import notice
* give angular some time to render
* show border around iframe
* make sure to place a notification in modal dialog if needed
* when opening a modal, make sure the top part is visible
* disable newsletter sign up by default
* command line tool to anonymize and remove previously tracked raw data
* implement some basic consent features into piwik.js
* minor tweak
* schedule entries to anonymize data in past
* let users anonymize historical data
* better overview
* better naming
* explain consent tracking
* add legitimate interest
* new menu structure for privacy
* use a proper db table for scheduled anonymizations
* add some tracker tests
* some tests and fixes
* couple of fixes and tests
* starting to add some UI tests
* more tweaks
* add missing file
* fix jslint
* have the field full width
* more tweaks
* create directory if needed
* various fixes
* fix some tests
* make sure keys will be always returned in same order
* more fixes
* fix some tests
* apply feedback from review
* fix some tests
* this might fix mysqli tests
* fix some tests
* trying to fix mysqli tests
* fix system test
* fix comment
* remove some duplicated code
* update method name
* trigger event when logs need to be deleted
* add possibility to anonymize userId and orderId
* trigger event in tracking code page
* expire consent in hours
* post another event
* update wording for privacy GDPR
* fix various ui tests
* fix some tests
* trying to fix ui tests
* trigger another test run
* fix system test
* fix some ui tests
* show a table of contents on tracking code page, fix title, add mobile apps and API
* fix ui test
* 3.5.0-b2 update
* Re-generate piwik.js
* fix job status and selector style
* make sure to include only sites with admin access
* some tweaks
* fix some ui tests
* fix some ui tests
* fix test
Diffstat (limited to 'core/Plugin/LogTablesProvider.php')
-rw-r--r-- | core/Plugin/LogTablesProvider.php | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/core/Plugin/LogTablesProvider.php b/core/Plugin/LogTablesProvider.php index 92afca14c7..904e618445 100644 --- a/core/Plugin/LogTablesProvider.php +++ b/core/Plugin/LogTablesProvider.php @@ -9,6 +9,7 @@ namespace Piwik\Plugin; use Piwik\Container\StaticContainer; +use Piwik\Piwik; use Piwik\Tracker\LogTable; class LogTablesProvider { @@ -53,10 +54,32 @@ class LogTablesProvider { if (!isset($this->tablesCache)) { $tables = $this->pluginManager->findMultipleComponents('Tracker', 'Piwik\\Tracker\\LogTable'); - $this->tablesCache = array(); + $logTables = array(); + + /** + * Only used for tests. Triggered to add custom log tables which are not automatically picked up. + * In case you need to define a log table, please put them inside the "Tracker" directory of your plugin. + * Please note custom log tables are currently not an official API. + * + * **Example** + * + * public function addLogTable(&$logTables) + * { + * $logTables[] = new LogTable(); + * } + * + * @param array &$logTables An array containing a list of log entries. + * + * @deprecated Only used for tests + * @ignore + */ + Piwik::postEvent('LogTables.addLogTables', array(&$logTables)); + foreach ($tables as $table) { - $this->tablesCache[] = StaticContainer::get($table); + $logTables[] = StaticContainer::get($table); } + + $this->tablesCache = $logTables; } return $this->tablesCache; |