public
integer
|
#
createCategory( CategoryInterface $category )
Creates a category and returns the ID of it.
Creates a category and returns the ID of it.
Parameters
- $category
- The category to create.
Returns
integer Returns the ID of the new category record.
|
public
CategoryWriteServiceInterface
|
#
updateCategory( StoredCategoryInterface $category )
Updates the provided category and returns itself.
Updates the provided category and returns itself.
Parameters
- $category
- The category to update.
Returns
|
public
CategoryWriteServiceInterface
|
#
deleteCategoryById( IdType $categoryId )
Deletes a category depending on the provided category ID.
Deletes a category depending on the provided category ID.
Parameters
- $categoryId
- Category ID of the category to delete.
Returns
|
public
CategoryWriteServiceInterface
|
#
moveCategory( IdType $categoryId, IdType $newParentId )
Moves a category into another category.
Moves a category into another category.
This method moves a category specified by its category ID into another parent category specified by its
category ID.
Parameters
- $categoryId
- Category ID of the category to move.
- $newParentId
- The new parent ID.
Returns
|
public
integer
|
#
duplicateCategory( IdType $categoryId, IdType $targetParentId, BoolType $duplicateProducts, BoolType $duplicateAttributes, BoolType $duplicateSpecials, BoolType $duplicateCrossSelling )
Duplicates a category specified by its category ID.
Duplicates a category specified by its category ID.
This method duplicates the category which are identified by the provided category ID and links the duplicated
category with the provided parent category ID. Containing subcategories and products will also be recursively
duplicated with their attributes, specials and cross selling data depending on the last four arguments.
Parameters
- $categoryId
- The category ID of the category to duplicate.
- $targetParentId
- The target parent ID of the duplicated category.
- $duplicateProducts
- Should the products be duplicated?
- $duplicateAttributes
- Should the attributes be duplicated?
- $duplicateSpecials
- Should the specials be duplicated?
- $duplicateCrossSelling
- Should cross selling be duplicated?
Returns
integer Returns the ID of the new category record.
|
public
string
|
#
importCategoryImageFile( ExistingFile $sourceFile, FilenameStringType $saveAsFilename )
Imports an image file and stores it.
Imports an image file and stores it.
Parameters
- $sourceFile
- The image file to import.
- $saveAsFilename
- The name under which the image should to be stored.
Returns
string The new filename.
|
public
string
|
#
importCategoryIconFile( ExistingFile $sourceFile, FilenameStringType $saveAsFilename )
Imports an icon file and stores it.
Imports an icon file and stores it.
Parameters
- $sourceFile
- The icon file to import.
- $saveAsFilename
- The name under which the icon should be stored.
Returns
string The new filename.
|
public
CategoryWriteServiceInterface
|
|
public
CategoryWriteServiceInterface
|
|
public
CategoryWriteServiceInterface
|
|
public
CategoryWriteServiceInterface
|
|
public
CategoryWriteServiceInterface
|
#
activateCategory( IdType $categoryId, BoolType $includeSubcategories )
Activates a specific category and its subcategories if desired.
Activates a specific category and its subcategories if desired.
Parameters
- $categoryId
- Category ID of the category to activate.
- $includeSubcategories
- Shall the subcategories be activated also?
Returns
|
public
CategoryWriteServiceInterface
|
#
deactivateCategory( IdType $categoryId, BoolType $includeSubcategories )
Deactivates a specific category and its subcategories if desired.
Deactivates a specific category and its subcategories if desired.
Parameters
- $categoryId
- Category ID of the category to deactivate.
- $includeSubcategories
- Shall the subcategories be deactivated also?
Returns
|
public
CategoryWriteServiceInterface
|
#
setCustomerStatusPermission( IdType $categoryId, IdType $customerStatusId, BoolType $permitted, BoolType $includeSubcategoriesAndProducts )
Sets the customer status permissions.
Sets the customer status permissions.
The customer status permissions decides if the category is visible for a specific customer group. The
permissions can be applied for subcategories also if desired.
Parameters
- $categoryId
- Category ID.
- $customerStatusId
- Customer status ID.
- $permitted
- Grant permission?
- $includeSubcategoriesAndProducts
- Grant permission including subcategories?
Returns
|