getDomain() 공개 메소드

Get the domain that is used in order to access the Marketplace. Eg http://plugins.piwik.org
public getDomain ( ) : string
리턴 string
예제 #1
0
파일: Client.php 프로젝트: piwik/piwik
 /**
  * @param  $pluginOrThemeName
  * @throws Exception
  * @return string
  */
 public function getDownloadUrl($pluginOrThemeName)
 {
     $plugin = $this->getPluginInfo($pluginOrThemeName);
     if (empty($plugin['versions'])) {
         throw new Exception('Plugin has no versions.');
     }
     $latestVersion = array_pop($plugin['versions']);
     $downloadUrl = $latestVersion['download'];
     return $this->service->getDomain() . $downloadUrl . '?coreVersion=' . $this->environment->getPiwikVersion();
 }