Exemple #1
0
 /**
  * Get the URL of the zone directory, or a particular file if $suffix is specified
  *
  * @param string $zone Name of requested zone
  * @param bool|string $suffix If not false, the name of a file in zone
  * @return string Path
  */
 function getZoneUrl($zone, $suffix = false)
 {
     $this->assertRepoDefined();
     $ext = $this->getExtension();
     $path = $this->repo->getZoneUrl($zone, $ext) . '/' . $this->getUrlRel();
     if ($suffix !== false) {
         $path .= '/' . rawurlencode($suffix);
     }
     return $path;
 }