class CategoryService

Class CategoryService

Properties

protected SystemDMSController $mod

Methods

__construct(SystemDMSController $systemDMSController)

CategoryService constructor.

create(string $name, Category $parentCategory = null)

Creates and returns a new category.

Details

at line 25
__construct(SystemDMSController $systemDMSController)

CategoryService constructor.

Parameters

SystemDMSController $systemDMSController

at line 39
Category create(string $name, Category $parentCategory = null)

Creates and returns a new category.

Parameters

string $name
Category $parentCategory

Return Value

Category

Exceptions

InsufficientRightsException