FOF30\View\DataView\Json::_removeURIBase PHP Метод

_removeURIBase() защищенный Метод

Convert an absolute URI to a relative one
protected _removeURIBase ( string $uri ) : string
$uri string The URI to convert
Результат string The relative URL
    protected function _removeURIBase($uri)
    {
        static $root = null, $rootlen = 0;
        if (is_null($root)) {
            $root = rtrim(\JUri::base(false), '/');
            $rootlen = strlen($root);
        }
        if (substr($uri, 0, $rootlen) == $root) {
            $uri = substr($uri, $rootlen);
        }
        return ltrim($uri, '/');
    }