/** * Get the URL of the thumbnail directory, or a particular file if $suffix is specified * * @param $suffix bool|string if not false, the name of a thumbnail file * * @return path */ function getThumbUrl($suffix = false) { $path = $this->repo->getZoneUrl('thumb') . '/' . $this->getUrlRel(); if ($suffix !== false) { $path .= '/' . rawurlencode($suffix); } return $path; }
/** * 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; }