src/Tree.php
protected function getNode($id)
    {
        $config = $this->config;
        return $this->table()
                        ->select(null)
                        ->select("$config[id] AS id, $config[lft] AS lft, $config[rgt] AS rgt, $config[dpt] AS dpt, $config[prt] AS prt")
                        ->where($config['id'], $id)
                        ->fetch();
    }
protected function getNode($id)
    {
        $config = $this->config;
        return $this->table()
                        ->select(null)
                        ->select("$config[id] AS id, $config[lft] AS lft, $config[rgt] AS rgt, $config[dpt] AS dpt, $config[prt] AS prt")
                        ->where($config['id'], $id)
                        ->fetch();
    }
protected function getNode ( $ id ) { $ config = $ this -> config ; return $ this -> table ( ) -> select ( null ) -> select ( "$config[id] AS id, $config[lft] AS lft, $config[rgt] AS rgt, $config[dpt] AS dpt, $config[prt] AS prt" ) -> where ( $ config [ 'id' ] , $ id ) -> fetch ( ) ; }
Return single node tree data.
@param mixed $id
@return array
Return single node tree data .