public function getCategoriesTree($limit = 1000, $orderBy = 'hierarchy', $orderDir = 'asc')
    {
        return $this->dataset->getResult('tree', [
            'limit'     => $limit,
            'order_by'  => $orderBy,
            'order_dir' => $orderDir
        ]);
    }
public function getCategoriesTree($limit = 1000, $orderBy = 'hierarchy', $orderDir = 'asc')
    {
        return $this->dataset->getResult('tree', [
            'limit'     => $limit,
            'order_by'  => $orderBy,
            'order_dir' => $orderDir
        ]);
    }
public function getCategoriesTree ( $ limit = 1000 , $ orderBy = 'hierarchy' , $ orderDir = 'asc' ) { return $ this -> dataset -> getResult ( 'tree' , [ 'limit' => $ limit , 'order_by' => $ orderBy , 'order_dir' => $ orderDir ] ) ; }
Returns categories tree

@param int    $limit
@param string $orderBy
@param string $orderDir

@return array
Returns categories tree