diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-04-28 08:27:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 08:27:16 +0300 |
commit | 69a65613e645cbd153221ca1bbdd5d9d0e2b08b4 (patch) | |
tree | 27875ca1db7f0720b6f7c3254bd47549d8a88aed /plugins/Live | |
parent | 60b5c52d057abeced4d4f7cf4bdf90e7b7526866 (diff) |
Removes deprecated event Live.getAllVisitorDetails (#15866)
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/Visitor.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php index 8892ab94b7..9267b80d73 100644 --- a/plugins/Live/Visitor.php +++ b/plugins/Live/Visitor.php @@ -39,27 +39,6 @@ class Visitor implements VisitorInterface $instance->extendVisitorDetails($visitor); } - /** - * This event can be used to add any details to a visitor. The visitor's details are for instance used in - * API requests like 'Live.getVisitorProfile' and 'Live.getLastVisitDetails'. This can be useful for instance - * in case your plugin defines any visit dimensions and you want to add the value of your dimension to a user. - * It can be also useful if you want to enrich a visitor with custom fields based on other fields or if you - * want to change or remove any fields from the user. - * - * **Example** - * - * Piwik::addAction('Live.getAllVisitorDetails', function (&visitor, $details) { - * $visitor['userPoints'] = $details['actions'] + $details['events'] + $details['searches']; - * unset($visitor['anyFieldYouWantToRemove']); - * }); - * - * @param array &visitor You can add or remove fields to the visitor array and it will reflected in the API output - * @param array $details The details array contains all visit dimensions (columns of log_visit table) - * - * @deprecated will be removed in Piwik 4 - */ - Piwik::postEvent('Live.getAllVisitorDetails', array(&$visitor, $this->details)); - return $visitor; } |