메소드 | 설명 | |
---|---|---|
CategoryService ( ICacheManager cacheManager, IRepository |
Ctor
|
|
DeleteCategory ( |
Delete category
|
|
DeleteProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void |
Deletes a product category mapping
|
|
GetAllCategories ( string categoryName = "", int pageIndex, int pageSize = int.MaxValue, bool showHidden = false ) : IPagedList |
Gets all categories
|
|
GetAllCategoriesByParentCategoryId ( int parentCategoryId, bool showHidden = false ) : IList |
Gets all categories filtered by parent category identifier
|
|
GetAllCategoriesDisplayedOnHomePage ( ) : IList |
Gets all categories displayed on the home page
|
|
GetCategoryById ( int categoryId ) : |
Gets a category
|
|
GetProductCategoriesByCategoryId ( int categoryId, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
Gets product category mapping collection
|
|
GetProductCategoriesByProductId ( int productId, bool showHidden = false ) : IList |
Gets a product category mapping collection
|
|
GetProductCategoryById ( int productCategoryId ) : Nop.Core.Domain.Catalog.ProductCategory |
Gets a product category mapping
|
|
GetTotalNumberOfFeaturedProducts ( int categoryId ) : int |
Get a total number of featured products by category identifier
|
|
InsertCategory ( |
Inserts category
|
|
InsertProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void |
Inserts a product category mapping
|
|
UpdateCategory ( Category category ) : void |
Updates the category
|
|
UpdateHasDiscountsApplied ( Category category ) : void |
Update HasDiscountsApplied property (used for performance optimization)
|
|
UpdateProductCategory ( ProductCategory productCategory ) : void |
Updates the product category mapping
|
public CategoryService ( ICacheManager cacheManager, IRepository |
||
cacheManager | ICacheManager | Cache manager |
categoryRepository | IRepository |
Category repository |
productCategoryRepository | IRepository |
ProductCategory repository |
productRepository | IRepository |
Product repository |
aclRepository | IRepository |
ACL record repository |
workContext | IWorkContext | Work context |
eventPublisher | IEventPublisher | Event publisher |
리턴 | System |
public DeleteCategory ( |
||
category | Category | |
리턴 | void |
public DeleteProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void | ||
productCategory | Nop.Core.Domain.Catalog.ProductCategory | Product category |
리턴 | void |
public GetAllCategories ( string categoryName = "", int pageIndex, int pageSize = int.MaxValue, bool showHidden = false ) : IPagedList |
||
categoryName | string | Category name |
pageIndex | int | Page index |
pageSize | int | Page size |
showHidden | bool | A value indicating whether to show hidden records |
리턴 | IPagedList |
public GetAllCategoriesByParentCategoryId ( int parentCategoryId, bool showHidden = false ) : IList |
||
parentCategoryId | int | Parent category identifier |
showHidden | bool | A value indicating whether to show hidden records |
리턴 | IList |
public GetAllCategoriesDisplayedOnHomePage ( ) : IList |
||
리턴 | IList |
public GetCategoryById ( int categoryId ) : |
||
categoryId | int | Category identifier |
리턴 |
public GetProductCategoriesByCategoryId ( int categoryId, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
||
categoryId | int | Category identifier |
pageIndex | int | Page index |
pageSize | int | Page size |
showHidden | bool | A value indicating whether to show hidden records |
리턴 | IPagedList |
public GetProductCategoriesByProductId ( int productId, bool showHidden = false ) : IList |
||
productId | int | Product identifier |
showHidden | bool | A value indicating whether to show hidden records |
리턴 | IList |
public GetProductCategoryById ( int productCategoryId ) : Nop.Core.Domain.Catalog.ProductCategory | ||
productCategoryId | int | Product category mapping identifier |
리턴 | Nop.Core.Domain.Catalog.ProductCategory |
public GetTotalNumberOfFeaturedProducts ( int categoryId ) : int | ||
categoryId | int | Category identifier |
리턴 | int |
public InsertCategory ( |
||
category | Category | |
리턴 | void |
public InsertProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void | ||
productCategory | Nop.Core.Domain.Catalog.ProductCategory | >Product category mapping |
리턴 | void |
public UpdateCategory ( Category category ) : void | ||
category | Category | Category |
리턴 | void |
public UpdateHasDiscountsApplied ( Category category ) : void | ||
category | Category | Category |
리턴 | void |
public UpdateProductCategory ( ProductCategory productCategory ) : void | ||
productCategory | ProductCategory | >Product category mapping |
리턴 | void |