src/DlcCategory/Service/Category.php
public function getAllCategoryTreesAsArray()
    {
        $rootIds = $this->getAllRootIds();

        $trees = array();
        foreach ($rootIds as $rootId) {
            $trees[$rootId] = $this->getCategoryTreeAsArray($rootId);
        }

        return $trees;
    }
public function getAllCategoryTreesAsArray()
    {
        $rootIds = $this->getAllRootIds();

        $trees = array();
        foreach ($rootIds as $rootId) {
            $trees[$rootId] = $this->getCategoryTreeAsArray($rootId);
        }

        return $trees;
    }
public function getAllCategoryTreesAsArray ( ) { $ rootIds = $ this -> getAllRootIds ( ) ; $ trees = array ( ) ; foreach ( $ rootIds as $ rootId ) { $ trees [ $ rootId ] = $ this -> getCategoryTreeAsArray ( $ rootId ) ; } return $ trees ; }
Returns an array of all category trees

@return array
Returns an array of all category trees