public function getObjectUrl($repositoryId, $objectId, $selector = null)
    {
        if ($this->getRootUrl($repositoryId) === null) {
            return null;
        }

        $url = $this->buildUrl($this->getRootUrl($repositoryId));
        $urlQuery = $url->getQuery();
        $urlQuery->modify([Constants::PARAM_OBJECT_ID => (string) $objectId]);

        if (!empty($selector)) {
            $urlQuery->modify([Constants::PARAM_SELECTOR => (string) $selector]);
        }

        return $url;
    }
public function getObjectUrl($repositoryId, $objectId, $selector = null)
    {
        if ($this->getRootUrl($repositoryId) === null) {
            return null;
        }

        $url = $this->buildUrl($this->getRootUrl($repositoryId));
        $urlQuery = $url->getQuery();
        $urlQuery->modify([Constants::PARAM_OBJECT_ID => (string) $objectId]);

        if (!empty($selector)) {
            $urlQuery->modify([Constants::PARAM_SELECTOR => (string) $selector]);
        }

        return $url;
    }
public function getObjectUrl ( $ repositoryId , $ objectId , $ selector = null ) { if ( $ this -> getRootUrl ( $ repositoryId ) === null ) { return null ; } $ url = $ this -> buildUrl ( $ this -> getRootUrl ( $ repositoryId ) ) ; $ urlQuery = $ url -> getQuery ( ) ; $ urlQuery -> modify ( [ Constants :: PARAM_OBJECT_ID => ( string ) $ objectId ] ) ; if ( ! empty ( $ selector ) ) { $ urlQuery -> modify ( [ Constants :: PARAM_SELECTOR => ( string ) $ selector ] ) ; } return $ url ; }
Get URL for an object request

@param string $repositoryId
@param string $objectId
@param string|null $selector
@return Url|null
Get URL for an object request