DmitryDulepov\Realurl\EncodeDecoderBase::restoreIgnoredUrlParametersInURL PHP 메소드

restoreIgnoredUrlParametersInURL() 보호된 메소드

Restores ignored URL parameters.
protected restoreIgnoredUrlParametersInURL ( string $url ) : string
$url string
리턴 string
    protected function restoreIgnoredUrlParametersInURL($url)
    {
        if (count($this->ignoredUrlParameters) > 0) {
            list($path, $queryString) = explode('?', $url);
            $appendedPart = $this->createQueryStringFromParameters($this->ignoredUrlParameters);
            if (!empty($queryString)) {
                $queryString .= '&';
            }
            $queryString .= $appendedPart;
            $url = $path . '?' . $queryString;
        }
        return $url;
    }