Jackalope\Transport\Jackrabbit\Client::addWorkspacePathToUri PHP Method

addWorkspacePathToUri() protected method

Prepends the workspace root to the uris that contain an absolute path
protected addWorkspacePathToUri ( string $uri ) : string
$uri string The absolute path in the current workspace or server uri
return string The server uri with this path
    protected function addWorkspacePathToUri($uri)
    {
        if (empty($uri) || '/' === $uri[0]) {
            if (empty($this->workspaceUri)) {
                throw new RepositoryException("Implementation error: Please login before accessing content");
            }
            $uri = $this->workspaceUriRoot . $uri;
        }
        return $uri;
    }