// CategoryNames returns hierarchized category names from top level category name to current category name
CategoryNames returns hierarchized category names from top level category name to current category name
// CategoryNames returns hierarchized category names from top level category name to current category name
func (i *ItemCategoryWithParent) CategoryNames() []string {
	categoryNames := []string{i.Name}
	parentCategory := i.Parent
	for parentCategory != nil {
		categoryNames = append([]string{parentCategory.Name}, categoryNames...)
		parentCategory = parentCategory.Parent
	}
	return categoryNames
}
func ( i * ItemCategoryWithParent ) CategoryNames ( ) [ ] string { categoryNames := [ ] string { i . Name } parentCategory := i . Parent for parentCategory != nil { categoryNames = append ( [ ] string { parentCategory . Name } , categoryNames ... ) parentCategory = parentCategory . Parent } return categoryNames }
CategoryNames returns hierarchized category names from top level category name to current category name
CategoryNames returns hierarchized category names from top level category name to current category name