docs/api/Opencart.Admin.Model.Catalog.Category.html
| extends | Model |
Class Category
Located at admin\model\catalog\category.php
| Methods |
|---|
| ` |
public
` | `addCategory(array<string, mixed> $data): int`
Add Category
Add Category
| # | | `
public
` | `editCategory(int $category_id, array<string, mixed> $data): void`
Edit Category
Edit Category
| # | | `
public
` | `deleteCategory(int $category_id): void`
Delete Category
Delete Category
| # | | `
public
` | `repairCategories(int $parent_id = 0): void`
Repair Categories
Repair Categories
| # | | `
public
` | `getCategory(int $category_id): array<string, mixed>`
Get Category
Get Category
| # | | `
public
` | `getCategories(array<string, mixed> $data = []): array<int, array<string, mixed>>`
Get Categories
Get Categories
| # | | `
public
` | `getTotalCategories(array<string, mixed> $data = []): int`
Get Total Categories
Get Total Categories
| # | | `
public
` | `addDescription(int $category_id, int $language_id, array<string, mixed> $data): void`
Add Description
Add Description
| $category_id |
primary key of the attribute record to be fetched
|
| # | | `
public
` | `deleteDescriptions(int $category_id): void`
Delete Descriptions
Delete Descriptions
| # | | `
public
` | `deleteDescriptionsByLanguageId(int $language_id): void`
Delete Descriptions By Language ID
Delete Descriptions By Language ID
| # | | `
public
` | `getDescriptions(int $category_id): array<int, array<string, string>>`
Get Descriptions
Get Descriptions
| # | | `
public
` | `getDescriptionsByLanguageId(int $language_id): array<int, array<string, string>>`
Get Descriptions By Language ID
Get Descriptions By Language ID
| # | | `
public
` | `addPath(int $category_id, int $path_id, int $level): void`
Add Path
Add Path
| # | | `
public
` | `deletePaths(int $category_id): void`
Delete Paths
Delete Paths
| # | | `
public
` | `deletePathsByLevel(int $category_id, int $level = 0): void`
Delete Paths By Level
Delete Paths By Level
| # | | `
public
` | `getPath(int $category_id): string`
Get Path
Get Path
| # | | `
public
` | `getPaths(int $category_id): array<int, array<string, mixed>>`
Get Paths
Get Paths
| # | | `
public
` | `getPathsByPathId(int $path_id): array<int, array<string, mixed>>`
Get Paths By Path ID
Get Paths By Path ID
| # | | `
public
` | `addFilter(int $category_id, int $filter_id): void`
Add Filter
Add Filter
| # | | `
public
` | `deleteFilters(int $category_id): void`
Delete Filters
Delete Filters
| # | | `
public
` | `getFilters(int $category_id): array<int, int>`
Get Filters
Get Filters
| # | | `
public
` | `addStore(int $category_id, int $store_id): void`
Add Store
Add Store
| # | | `
public
` | `deleteStores(int $category_id): void`
Delete Stores
Delete Stores
| # | | `
public
` | `deleteStoresByStoreId(int $store_id): void`
Delete Stores By Store ID
Delete Stores By Store ID
| # | | `
public
` | `getStores(int $category_id): array<int, int>`
Get Stores
Get Stores
| # | | `
public
` | `addLayout(int $category_id, int $store_id, int $layout_id): void`
Add Layout
Add Layout
| # | | `
public
` | `deleteLayouts(int $category_id): void`
Delete Layouts
Delete Layouts
| # | | `
public
` | `deleteLayoutsByLayoutId(int $layout_id): void`
Delete Layouts By Layout ID
Delete Layouts By Layout ID
| # | | `
public
` | `deleteLayoutsByStoreId(int $store_id): void`
Delete Layouts By Store ID
Delete Layouts By Store ID
| # | | `
public
` | `getLayouts(int $category_id): array<int, int>`
Get Layouts
Get Layouts
| # | | `
public
` | `getTotalLayoutsByLayoutId(int $layout_id): int`
Get Total Layouts By Layout ID
Get Total Layouts By Layout ID
| # |
| Methods inherited from Opencart\System\Engine\Model |
|---|
__construct(),__get(), __set(),__isset() |
| Properties inherited from Opencart\System\Engine\Model |
|---|
$registry |
OpenCart API API documentation generated by ApiGen dev-master