public function getIdFromUri($binaryFileUri) { if (isset($this->urlDecorator)) { return $this->urlDecorator->undecorate($binaryFileUri); } else { return ltrim($binaryFileUri, '/'); } }
/** * Removes the internal prefix string from $prefixedId * * @param string $prefixedId * * @return string the id without the prefix * @throws InvalidBinaryFileIdException if the prefix isn't found in $prefixedId */ protected function removePrefix($prefixedId) { return isset($this->urlDecorator) ? $this->urlDecorator->undecorate($prefixedId) : $prefixedId; }