protected function buildCategoryIdRootline($uid)
    {
        $rootlineIds = [];
        $parentCategory = intval($uid);

        while ($parentCategory !== 0) {
            $rootlineIds[] = $parentCategory;
            $childCategory = $this->systemCategoryRepository->findOneByUid($parentCategory);
            if ($childCategory === null) {
                $parentCategory = 0;
            } else {
                $parentCategory = intval($childCategory['parent']);
            }
        }
        krsort($rootlineIds);

        return array_values($rootlineIds);
    }
protected function buildCategoryIdRootline($uid)
    {
        $rootlineIds = [];
        $parentCategory = intval($uid);

        while ($parentCategory !== 0) {
            $rootlineIds[] = $parentCategory;
            $childCategory = $this->systemCategoryRepository->findOneByUid($parentCategory);
            if ($childCategory === null) {
                $parentCategory = 0;
            } else {
                $parentCategory = intval($childCategory['parent']);
            }
        }
        krsort($rootlineIds);

        return array_values($rootlineIds);
    }
protected function buildCategoryIdRootline ( $ uid ) { $ rootlineIds = [ ] ; $ parentCategory = intval ( $ uid ) ; while ( $ parentCategory !== 0 ) { $ rootlineIds [ ] = $ parentCategory ; $ childCategory = $ this -> systemCategoryRepository -> findOneByUid ( $ parentCategory ) ; if ( $ childCategory === null ) { $ parentCategory = 0 ; } else { $ parentCategory = intval ( $ childCategory [ 'parent' ] ) ; } } krsort ( $ rootlineIds ) ; return array_values ( $ rootlineIds ) ; }
Builds a category's rootline of parent category Ids

@param int $uid The category ID to build the rootline for
@return array Category ID rootline as array
Builds a category s rootline of parent category Ids