MetaFox

CategoryRepositoryInterface
in

Interface CategoryRepositoryInterface.

Tags
mixin

BaseRepository

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

deleteCategory()

public deleteCategory(User $context, int $id, array<string, mixed> $attributes) : bool
Parameters
$context : User
$id : int
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
bool

getChildrenIds()

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>

moveToNewCategory()

public moveToNewCategory(Category $category, int $newCategoryId[, bool $isDelete = false ]) : void
Parameters
$category : Category
$newCategoryId : int
$isDelete : bool = false

        
On this page

Search results