ActivityCategory
in package
Table of Contents
Properties
- $aclService : AclService
- $categoryForm : ActivityCategory
- $categoryMapper : ActivityCategory
- $translator : Translator
Methods
- __construct() : mixed
- createCategory() : bool
- deleteCategory() : void
- findAll() : array<string|int, ActivityCategory>
- Get all categories.
- getCategoryById() : ActivityCategory|null
- Get all categories.
- getCategoryForm() : ActivityCategory
- Return Category creation form.
- updateCategory() : bool
Properties
$aclService read-only
private
AclService
$aclService
$categoryForm read-only
private
ActivityCategory
$categoryForm
$categoryMapper read-only
private
ActivityCategory
$categoryMapper
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(AclService $aclService, Translator $translator, ActivityCategory $categoryMapper, ActivityCategory $categoryForm) : mixed
Parameters
- $aclService : AclService
- $translator : Translator
- $categoryMapper : ActivityCategory
- $categoryForm : ActivityCategory
createCategory()
public
createCategory(array<string|int, mixed> $data) : bool
Parameters
- $data : array<string|int, mixed>
Tags
Return values
booldeleteCategory()
public
deleteCategory(ActivityCategory $category) : void
Parameters
- $category : ActivityCategory
findAll()
Get all categories.
public
findAll() : array<string|int, ActivityCategory>
Return values
array<string|int, ActivityCategory>getCategoryById()
Get all categories.
public
getCategoryById(int $id) : ActivityCategory|null
Parameters
- $id : int
Return values
ActivityCategory|nullgetCategoryForm()
Return Category creation form.
public
getCategoryForm() : ActivityCategory
Return values
ActivityCategoryupdateCategory()
public
updateCategory(ActivityCategory $category, array<string|int, mixed> $data) : bool
Parameters
- $category : ActivityCategory
- $data : array<string|int, mixed>