src/Data/BizDataTree.php
public function fetchNodePath($nodeSearchRule, &$pathArray) {
        $recordList = $this->directFetch($nodeSearchRule);
        if (count($recordList) >= 1) {

            if ($recordList[0]['PId'] != '0') {
                $searchRule = "[Id]='" . $recordList[0]['PId'] . "'";
                $this->fetchNodePath($searchRule, $pathArray);
            }
            $nodes = new \NodeRecord($recordList[0]);
            array_push($pathArray, $nodes);
            return $pathArray;
        }
    }
public function fetchNodePath($nodeSearchRule, &$pathArray) {
        $recordList = $this->directFetch($nodeSearchRule);
        if (count($recordList) >= 1) {

            if ($recordList[0]['PId'] != '0') {
                $searchRule = "[Id]='" . $recordList[0]['PId'] . "'";
                $this->fetchNodePath($searchRule, $pathArray);
            }
            $nodes = new \NodeRecord($recordList[0]);
            array_push($pathArray, $nodes);
            return $pathArray;
        }
    }
Fetch node path

@param string $nodeSearchRule
@param array $pathArray
@return <type>