class Manager

Class Manager manages categories. A category is basically a directory inside of the /media folder.

Methods

__construct(Filesystem $Filesystem, CategoryPaths $CategoryPaths)

Create a new category manager

bool
storeNewCategory($input)

Stores the category in the filesystem

bool
destroyCategory($input)

Removes the category path

renameCategory($path, $newName)

Renames a category path

Details

at line 29
__construct(Filesystem $Filesystem, CategoryPaths $CategoryPaths)

Create a new category manager

Parameters

Filesystem $Filesystem
CategoryPaths $CategoryPaths

at line 43
bool storeNewCategory($input)

Stores the category in the filesystem

Parameters

$input

Return Value

bool

Exceptions

CategoryAlreadyExistsException

at line 67
bool destroyCategory($input)

Removes the category path

Parameters

$input

Return Value

bool

at line 85
renameCategory($path, $newName)

Renames a category path

Parameters

$path
$newName