Ejemplo n.º 1
0
 /**
  * Fecth categories and related sub-Categories
  *
  * @return array $categoryList An array with the categories
  *                             and sub categories
  */
 public function getCategorySubCategory()
 {
     $oSubCat = new SubCategoriesObject();
     $oCategory = new CatalogCategoriesObject();
     $categories = $oCategory->getAll($this->_currentLang);
     $fieldCatId = $oCategory->getDataId();
     foreach ($categories as $category) {
         $sousCategories = $oSubCat->getSousCatByCategory($category[$fieldCatId], true, $this->_currentLang);
         $categoryList[$category['CCI_Name']] = $sousCategories;
     }
     return $categoryList;
 }