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