private function recursiveGetChilds($childs, $result)
    {
        foreach ($childs as $node) {
            $result[] = $node[$this->config['id']];
            $result = $this->recursiveGetChilds($node[$this->config['childs']], $result);
        }

        return $result;
    }
private function recursiveGetChilds($childs, $result)
    {
        foreach ($childs as $node) {
            $result[] = $node[$this->config['id']];
            $result = $this->recursiveGetChilds($node[$this->config['childs']], $result);
        }

        return $result;
    }
private function recursiveGetChilds ( $ childs , $ result ) { foreach ( $ childs as $ node ) { $ result [ ] = $ node [ $ this -> config [ 'id' ] ] ; $ result = $ this -> recursiveGetChilds ( $ node [ $ this -> config [ 'childs' ] ] , $ result ) ; } return $ result ; }
Internal recursive function to get children.

@param  array $childs
@param  array $result
@return array
Internal recursive function to get children .