src/Paths.php
public function p($ipath, $context = null)
    {
        $ipath = Utilities::convertPath($ipath);
        if (!isset($context)) {
            $context = $this->basePath;
        }
        if ($ipath == '') {
            return $context;
        }
        $splits = explode('/', $ipath, 2);
        $key = $splits[0];
        $path = '';
        if (isset($splits[1])) {
            $path = $splits[1];
        }
        if ($key == '.') {
            return self::combinePaths($context, $path);
        }
        return self::combinePaths($this->__get($key), $path);
    }
public function p($ipath, $context = null)
    {
        $ipath = Utilities::convertPath($ipath);
        if (!isset($context)) {
            $context = $this->basePath;
        }
        if ($ipath == '') {
            return $context;
        }
        $splits = explode('/', $ipath, 2);
        $key = $splits[0];
        $path = '';
        if (isset($splits[1])) {
            $path = $splits[1];
        }
        if ($key == '.') {
            return self::combinePaths($context, $path);
        }
        return self::combinePaths($this->__get($key), $path);
    }
public function p ( $ ipath , $ context = null ) { $ ipath = Utilities :: convertPath ( $ ipath ) ; if ( ! isset ( $ context ) ) { $ context = $ this -> basePath ; } if ( $ ipath == '' ) { return $ context ; } $ splits = explode ( '/' , $ ipath , 2 ) ; $ key = $ splits [ 0 ] ; $ path = '' ; if ( isset ( $ splits [ 1 ] ) ) { $ path = $ splits [ 1 ] ; } if ( $ key == '.' ) { return self :: combinePaths ( $ context , $ path ) ; } return self :: combinePaths ( $ this -> __get ( $ key ) , $ path ) ; }
Convert an internal path.
@param string $ipath Internal path, e.g. 'key/followed/by/subpath'.
@param string $context Optional context for relative paths (paths starting
with './'). The default is the {@see $basePath}.
Convert an internal path .