Ejemplo n.º 1
0
 /**
  * 
  * @return object with data
  */
 function getCategories()
 {
     $categoryService = new JBusinessDirectorCategoryLib();
     $categoryTable = $this->getTable();
     $categories = $categoryTable->getAllCategories();
     $categories = $categoryService->processCategories($categories);
     //$categories = $categories[1]["subCategories"];
     $startingLevel = 0;
     $path = array();
     $level = 0;
     $categories["maxLevel"] = $categoryService->setCategoryLevel($categories, $startingLevel, $level, $path);
     return $categories;
 }