# Class Opencart\Admin\Model\Catalog\Filter

`extends` | `Model`

Class Filter

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Catalog\Filter

Located at admin\model\catalog\filter.php

Methods
`public` | `addFilter(array<string, mixed> $data): int` Add Filter Add Filter | #
`public` | `editFilter(int $filter_id, array<string, mixed> $data): void` Edit Filter Edit Filter | #
`public` | `deleteFilter(int $filter_id): void` Delete Filter Delete Filter | #
`public` | `getFilter(int $filter_id): array<string, mixed>` Get Filter Get Filter | #
`public` | `getFilters(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Filters Get Filters | #
`public` | `getTotalFilters(): int` Get Total Filters Get Total Filters | #
`public` | `addDescription(int $filter_id, int $language_id, array<string, mixed> $data): void` Add Description Add Description #### Parameters
$filter_id | primary key of the attribute record to be fetched
| #
`public` | `deleteDescriptions(int $filter_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 $filter_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 | #

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