# Class Opencart\Admin\Model\Catalog\Option

`extends` | `Model`

Class Option

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

Located at admin\model\catalog\option.php

Methods
`public` | `addOption(array<string, mixed> $data): int` Add Option Add Option | #
`public` | `editOption(int $option_id, array<string, mixed> $data): void` Edit Option Edit Option | #
`public` | `deleteOption(int $option_id): void` Delete Option Delete Option | #
`public` | `getOption(int $option_id): array<string, mixed>` Get Option Get Option | #
`public` | `getOptions(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Options Get Options | #
`public` | `getTotalOptions(): int` Get Total Options Get Total Options | #
`public` | `addDescription(int $option_id, int $language_id, array<string, mixed> $data): void` Add Description Add Description #### Parameters
$option_id | primary key
| #
`public` | `deleteDescriptions(int $option_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 $option_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` | `addValue(int $option_id, array<string, mixed> $data): int` Add Value Add Value | #
`public` | `deleteValues(int $option_id): void` Delete Values Delete Values | #
`public` | `getValue(int $option_value_id): array<string, mixed>` Get Value Get Value | #
`public` | `getValues(int $option_id): array<int, array<string, mixed>>` Get Values Get Values | #
`public` | `addValueDescription(int $option_value_id, int $option_id, int $language_id, array<string, mixed> $data): void` Add Value Description Add Value Description | #
`public` | `deleteValueDescriptionsByOptionId(int $option_id): void` Delete Value Descriptions By Option ID Delete Value Descriptions By Option ID | #
`public` | `deleteValueDescriptionsByLanguageId(int $language_id): void` Delete Value Descriptions By Language ID Delete Value Descriptions By Language ID | #
`public` | `getValueDescriptions(int $option_id): array<int, array<string, mixed>>` Get Value Descriptions Get Value Descriptions | #
`public` | `getValueDescriptionsByLanguageId(int $language_id): array<int, array<string, string>>` Get Value Descriptions By Language ID Get Value 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