Class CategoryWriteService
Class CategoryWriteService
This class provides methods for creating, updating and deleting categories data.
- CategoryWriteService implements CategoryWriteServiceInterface
Package: Category
Category: System
Implements: CategoryWriteServiceInterface
Located at Services/Core/Category/CategoryWriteService.inc.php
Category: System
Implements: CategoryWriteServiceInterface
Located at Services/Core/Category/CategoryWriteService.inc.php
Methods summary
public
|
#
__construct(
CategoryWriteService constructor. |
public
integer
|
#
createCategory(
Stores a category in the database and returns the newly created ID of it. |
public
|
#
updateCategory(
Updates the provided category and returns itself. |
public
|
#
deleteCategoryById(
Deletes a category depending on the provided category ID. |
public
|
|
public
integer
|
|
public
string
|
#
importCategoryImageFile(
Imports an image file and stores it. |
public
string
|
#
importCategoryIconFile(
Imports an icon file and stores it. |
public
|
#
renameCategoryImageFile(
Renames a category image file. |
public
|
#
renameCategoryIconFile(
Renames a category icon file. |
public
|
|
public
|
|
public
|
#
activateCategory(
Activates a specific category and its subcategories if desired. |
public
|
#
deactivateCategory(
Deactivates a specific category and its subcategories if desired. |
public
|
Properties summary
protected
|
$categoryRepo
Category repository. |
|
protected
|
$categoryImageStorage
Category image. |
|
protected
|
$categoryIconStorage
Category icon. |
|
protected
|
$productPermissionSetter
ProductPermissionSetter |
|
protected
|
$urlKeywordsRepairer
Used for writing and repairing category's url keywords |