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);
    }