public function getTrackingFailures()
    {
        if (Piwik::hasUserSuperUserAccess()) {
            $failures = $this->trackingFailures->getAllFailures();
        } else {
            Piwik::checkUserHasSomeAdminAccess();
            $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
            Piwik::checkUserHasAdminAccess($idSites);

            $failures = $this->trackingFailures->getFailuresForSites($idSites);
        }

        return $failures;
    }
public function getTrackingFailures()
    {
        if (Piwik::hasUserSuperUserAccess()) {
            $failures = $this->trackingFailures->getAllFailures();
        } else {
            Piwik::checkUserHasSomeAdminAccess();
            $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
            Piwik::checkUserHasAdminAccess($idSites);

            $failures = $this->trackingFailures->getFailuresForSites($idSites);
        }

        return $failures;
    }
public function getTrackingFailures ( ) { if ( Piwik :: hasUserSuperUserAccess ( ) ) { $ failures = $ this -> trackingFailures -> getAllFailures ( ) ; } else { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ idSites = Access :: getInstance ( ) -> getSitesIdWithAdminAccess ( ) ; Piwik :: checkUserHasAdminAccess ( $ idSites ) ; $ failures = $ this -> trackingFailures -> getFailuresForSites ( $ idSites ) ; } return $ failures ; }
Get all tracking failures. A user retrieves only tracking failures for sites with at least admin access.
A super user will also retrieve failed requests for sites that don't exist.
@return array
Get all tracking failures . A user retrieves only tracking failures for sites with at least admin access . A super user will also retrieve failed requests for sites that don t exist .