diff options
Diffstat (limited to 'plugins/Live/API.php')
-rw-r--r-- | plugins/Live/API.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php index 883cab4c76..69eeff0c4e 100644 --- a/plugins/Live/API.php +++ b/plugins/Live/API.php @@ -124,28 +124,6 @@ class API extends \Piwik\Plugin\API } /** - * The same functionality can be obtained using segment=visitorId==$visitorId with getLastVisitsDetails - * - * @deprecated - * @ignore - * @param int $visitorId - * @param int $idSite - * @param int $filter_limit - * @param bool $flat Whether to flatten the visitor details array - * - * @return DataTable - */ - public function getLastVisitsForVisitor($visitorId, $idSite, $filter_limit = 10, $flat = false) - { - Piwik::checkUserHasViewAccess($idSite); - - $table = $this->loadLastVisitsDetailsFromDatabase($idSite, $period = false, $date = false, $segment = false, $offset = 0, $filter_limit, $minTimestamp = false, $filterSortOrder = false, $visitorId); - $this->addFilterToCleanVisitors($table, $idSite, $flat); - - return $table; - } - - /** * Returns the last visits tracked in the specified website * You can define any number of filters: none, one, many or all parameters can be defined * @@ -234,26 +212,6 @@ class API extends \Piwik\Plugin\API $profile = new VisitorProfile($idSite); $result = $profile->makeVisitorProfile($visits, $visitorId, $segment, $limitVisits); - /** - * Triggered in the Live.getVisitorProfile API method. Plugins can use this event - * to discover and add extra data to visitor profiles. - * - * This event is deprecated, use [VisitorDetails](/api-reference/Piwik/Plugins/Live/VisitorDetailsAbstract#extendVisitorDetails) classes instead. - * - * For example, if an email address is found in a custom variable, a plugin could load the - * gravatar for the email and add it to the visitor profile, causing it to display in the - * visitor profile popup. - * - * The following visitor profile elements can be set to augment the visitor profile popup: - * - * - **visitorAvatar**: A URL to an image to display in the top left corner of the popup. - * - **visitorDescription**: Text to be used as the tooltip of the avatar image. - * - * @param array &$visitorProfile The unaugmented visitor profile info. - * @deprecated - */ - Piwik::postEvent('Live.getExtraVisitorDetails', array(&$result)); - return $result; } @@ -328,14 +286,6 @@ class API extends \Piwik\Plugin\API } /** - * @deprecated - */ - public function getLastVisits($idSite, $filter_limit = 10, $minTimestamp = false) - { - return $this->getLastVisitsDetails($idSite, $period = false, $date = false, $segment = false, $filter_limit, $minTimestamp, $flat = false); - } - - /** * For an array of visits, query the list of pages for this visit * as well as make the data human readable * @param DataTable $dataTable |