public function getSocialNetworkFromDomain($url)
    {
        foreach ($this->getDefinitions() as $domain => $name) {

            if (preg_match('/(^|[\.\/])'.$domain.'([\.\/]|$)/', $url)) {

                return $name;
            }
        }

        return Piwik::translate('General_Unknown');
    }
public function getSocialNetworkFromDomain($url)
    {
        foreach ($this->getDefinitions() as $domain => $name) {

            if (preg_match('/(^|[\.\/])'.$domain.'([\.\/]|$)/', $url)) {

                return $name;
            }
        }

        return Piwik::translate('General_Unknown');
    }
public function getSocialNetworkFromDomain ( $ url ) { foreach ( $ this -> getDefinitions ( ) as $ domain => $ name ) { if ( preg_match ( '/(^|[\.\/])' . $ domain . '([\.\/]|$)/' , $ url ) ) { return $ name ; } } return Piwik :: translate ( 'General_Unknown' ) ; }
Get's social network name from URL.

@param string $url
@return string
Get s social network name from URL .