# Class Opencart\Admin\Model\Customer\CustomField

`extends` | `Model`

Class Custom Field

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Customer\CustomField

Located at admin\model\customer\custom_field.php

Methods
`public` | `addCustomField(array<string, mixed> $data): int` Add Custom Field Add Custom Field | #
`public` | `editCustomField(int $custom_field_id, array<string, mixed> $data): void` Edit Custom Field Edit Custom Field | #
`public` | `deleteCustomField(int $custom_field_id): void` Delete Custom Field Delete Custom Field | #
`public` | `getCustomField(int $custom_field_id): array<string, mixed>` Get Custom Field Get Custom Field | #
`public` | `getCustomFields(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Custom Fields Get Custom Fields | #
`public` | `getTotalCustomFields(): int` Get Total Custom Fields Get Total Custom Fields | #
`public` | `addDescription(int $custom_field_id, int $language_id, array<string, mixed> $data): void` Add Description Add Description #### Parameters
$custom_field_id | primary key of the custom field record to be fetched
| #
`public` | `deleteDescriptions(int $custom_field_id): void` Delete Description Delete Description #### Parameters
$custom_field_id | primary key of the custom field record to be fetched
| #
`public` | `deleteDescriptionsByLanguageId(int $language_id): void` Delete Descriptions By Language ID Delete Descriptions By Language ID | #
`public` | `getDescriptions(int $custom_field_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` | `addCustomerGroup(int $custom_field_id, array<string, mixed> $data): void` Add Customer Group Add Customer Group | #
`public` | `deleteCustomerGroups(int $custom_field_id): void` Delete Customer Groups Delete Customer Groups | #
`public` | `getCustomerGroups(int $custom_field_id): array<int, array<string, mixed>>` Get Customer Groups Get Customer Groups | #
`public` | `addValue(int $custom_field_id, array<string, mixed> $data): int` Add Value Add Value | #
`public` | `deleteValues(int $custom_field_id): void` Delete Values Delete Values | #
`public` | `getValue(int $custom_field_value_id): array<string, mixed>` Get Value Get Value | #
`public` | `getValues(int $custom_field_id): array<int, array<string, mixed>>` Get Values Get Values | #
`public` | `addValueDescription( int $custom_field_value_id, int $custom_field_id, int $language_id, array<string, mixed> $custom_field_value_description, ): void` Add Value Description Add Value Description | #
`public` | `deleteValueDescriptions(int $custom_field_id): void` Delete Value Descriptions Delete Value Descriptions | #
`public` | `deleteValueDescriptionsByLanguageId(int $language_id): void` Delete Value Descriptions By Language ID Delete Value Descriptions By Language ID | #
`public` | `getValueDescriptions(int $custom_field_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