Piwik\Plugins\SitesManager\SitesManager::getTrackerExcludedIps PHP Method

getTrackerExcludedIps() private method

Returns the array of excluded IPs to save in the config file
private getTrackerExcludedIps ( array $website ) : array
$website array
return array
    private function getTrackerExcludedIps($website)
    {
        $excludedIps = $website['excluded_ips'];
        $globalExcludedIps = API::getInstance()->getExcludedIpsGlobal();
        $excludedIps .= ',' . $globalExcludedIps;
        $ipRanges = array();
        foreach (explode(',', $excludedIps) as $ip) {
            $ipRange = API::getInstance()->getIpsForRange($ip);
            if ($ipRange !== false) {
                $ipRanges[] = $ipRange;
            }
        }
        return $ipRanges;
    }