pharext\SourceDir\Pecl::dirOf PHP Метод

dirOf() приватный Метод

Compute the path of a file by parent dir nodes
private dirOf ( SimpleXMLElement $ele ) : string
$ele SimpleXMLElement
Результат string
    private function dirOf($ele)
    {
        $path = "";
        while (($ele = current($ele->xpath(".."))) && $ele->getName() == "dir") {
            $path = trim($ele["name"], "/") . "/" . $path;
        }
        return trim($path, "/");
    }