Interface CategoryRepositoryInterface

Interface CategoryRepositoryInterface

This interface defines methods for handling the database operations that concern the category records of the database. It provides a layer for more complicated methods that use the writer, reader and deleter.

Direct known implementers

CategoryRepository

Methods summary

public add( CategoryInterface $category ) : integer

Adds a category.

public store( StoredCategoryInterface $category ) : CategoryRepositoryInterface

Stores a category.

public getCategoryById( IdType $categoryId ) : StoredCategoryInterface

Gets a category by the given ID.

public deleteCategoryById( IdType $categoryId ) : CategoryRepositoryInterface

Deletes a category by the given ID.

public getCategoryIdsByParentId( IdType $parentId ) : IdCollection

Returns all Categories with the provided parent ID.

public getCategoryIdsTree( IdType $parentCategoryId ) : IdCollection

Returns an id collection with the ids of subcategories.