protected function getNodes($class, $id)
    {
        $records = [];
        $records['nodes'] = [];
        $models = $this->getNodeModels($class, $id);
        foreach ($models as $model) {
            $records['nodes'][] = $this->getNodeValues($model);
        }
        return $records;
    }
protected function getNodes($class, $id)
    {
        $records = [];
        $records['nodes'] = [];
        $models = $this->getNodeModels($class, $id);
        foreach ($models as $model) {
            $records['nodes'][] = $this->getNodeValues($model);
        }
        return $records;
    }
protected function getNodes ( $ class , $ id ) { $ records = [ ] ; $ records [ 'nodes' ] = [ ] ; $ models = $ this -> getNodeModels ( $ class , $ id ) ; foreach ( $ models as $ model ) { $ records [ 'nodes' ] [ ] = $ this -> getNodeValues ( $ model ) ; } return $ records ; }
get nestable nodes

@param $class
@param integer|null $id
@return array
get nestable nodes