Example #1
0
 /**
  * Get category path.
  *
  * @param Category $category Category
  *
  * @return string
  */
 public function getPathCat(Category $category)
 {
     $rootline = $category->getParentCategoriesUidlist();
     array_pop($rootline);
     $active = array_reverse($rootline);
     $this->mDepth = 0;
     $path = '';
     foreach ($active as $actCat) {
         if ($path === '') {
             $path = $actCat;
         } else {
             $path .= ',' . $actCat;
             ++$this->mDepth;
         }
     }
     return $path;
 }