JamesMoss\Flywheel\Repository::getPathForDocument PHP Метод

getPathForDocument() публичный Метод

Get the filesystem path for a document based on it's ID.
public getPathForDocument ( string $id ) : string
$id string The ID of the document.
Результат string The full filesystem path of the document.
    public function getPathForDocument($id)
    {
        if (!$this->validateId($id)) {
            throw new \Exception(sprintf('`%s` is not a valid document ID.', $id));
        }
        return $this->path . DIRECTORY_SEPARATOR . $this->getFilename($id);
    }