CategoryRepositoryInterface
in
Interface CategoryRepositoryInterface.
Tags
Table of Contents
Methods
- deleteAllBelongTo() : bool
- deleteCategory() : bool
- getCategoryDefault() : Category|null
- getChildrenIds() : array<string|int, mixed>
- getDefaultCategoryParentIds() : array<string|int, mixed>
- getRelationModel() : CategoryRelation
- model() : string
- moveToNewCategory() : void
- viewCategory() : Category
Methods
deleteAllBelongTo()
public
deleteAllBelongTo(Category $category) : bool
Parameters
- $category : Category
Return values
booldeleteCategory()
public
deleteCategory(User $context, int $id, array<string, mixed> $attributes) : bool
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed>
Tags
Return values
boolgetCategoryDefault()
public
getCategoryDefault() : Category|null
Return values
Category|nullgetChildrenIds()
public
getChildrenIds(int $categoryId) : array<string|int, mixed>
Parameters
- $categoryId : int
Return values
array<string|int, mixed>getDefaultCategoryParentIds()
public
getDefaultCategoryParentIds() : array<string|int, mixed>
Return values
array<string|int, mixed>getRelationModel()
public
getRelationModel() : CategoryRelation
Return values
CategoryRelationmodel()
public
model() : string
Return values
stringmoveToNewCategory()
public
moveToNewCategory(Category $category, int $newCategoryId[, bool $isDelete = false ]) : void
Parameters
- $category : Category
- $newCategoryId : int
- $isDelete : bool = false
viewCategory()
public
viewCategory(User $context, int $id) : Category
Parameters
- $context : User
- $id : int