public function loadNode($path) {
        $list = @$this->zookeeper->getChildren($path);
        if(!empty($list)) {
            $data = [];
            foreach($list as $key) {
                $value = $this->zookeeper->get($path . '/' . $key);
                if(!empty($value)) {
                    $data[$key] = $value;
                }else {
                    $data[$key] = $this->loadNode($path . '/' . $key);
                }
            }
            return $data;
        }else {
            $value = @$this->zookeeper->get($path);
            return $value;
        }
    }
public function loadNode($path) {
        $list = @$this->zookeeper->getChildren($path);
        if(!empty($list)) {
            $data = [];
            foreach($list as $key) {
                $value = $this->zookeeper->get($path . '/' . $key);
                if(!empty($value)) {
                    $data[$key] = $value;
                }else {
                    $data[$key] = $this->loadNode($path . '/' . $key);
                }
            }
            return $data;
        }else {
            $value = @$this->zookeeper->get($path);
            return $value;
        }
    }
public function loadNode ( $ path ) { $ list = @ $ this -> zookeeper -> getChildren ( $ path ) ; if ( ! empty ( $ list ) ) { $ data = [ ] ; foreach ( $ list as $ key ) { $ value = $ this -> zookeeper -> get ( $ path . '/' . $ key ) ; if ( ! empty ( $ value ) ) { $ data [ $ key ] = $ value ; } else { $ data [ $ key ] = $ this -> loadNode ( $ path . '/' . $ key ) ; } } return $ data ; } else { $ value = @ $ this -> zookeeper -> get ( $ path ) ; return $ value ; } }
return treed-config or string
return treed - config or string