Class CategoryRepositoryWriter
This class provides methods for creating and updating specific category records in the database and is used in the category repository among the classes for reading and deleting category records.
| category |
System |
|---|---|
| package |
Category |
| subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \LanguageProviderInterface $languageProvider)
_parseCategoryData(\CategoryInterface $category)
_parseCategoryDescriptionData(\CategoryInterface $category, \LanguageCode $languageCode)
insert(\CategoryInterface $category) : integer
| Throws |
|
|---|
integerReturns the ID of the new category.
update(\StoredCategoryInterface $category) : \CategoryRepositoryWriter
| Throws |
|
|---|
\CategoryRepositoryWriterSame instance for chained method calls.
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder
categoriesTable : string
| var |
|---|
string
languageProvider : \LanguageProviderInterface