# ivyforms/0.8/backend/src/Repository/EntryField/EntryFieldRepositoryInterface.php

The Innovative Form Builder – IvyForms, version 0.8. 54 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Repository/EntryField/EntryFieldRepositoryInterface.php
- Raw: https://pluginprobe.com/plugins/ivyforms/0.8/raw/backend/src/Repository/EntryField/EntryFieldRepositoryInterface.php
- Modified: 2026-01-13T11:11:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Repository/EntryField/EntryFieldRepositoryInterface.php#L10-L20`.

```php
<?php

namespace IvyForms\Repository\EntryField;

// phpcs:disable PSR1.Files.SideEffects
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

use IvyForms\Repository\BaseRepositoryInterface;

interface EntryFieldRepositoryInterface extends BaseRepositoryInterface
{
    /**
     * Check if an entry field exists in the database.
     *
     * @param int $entryFieldId
     * @return bool
     */
    public function exists(int $entryFieldId): bool;

    /**
     * @param array<mixed> $array
     * @return array<int, array<string, mixed>>
     */
    public function findBy(array $array): array;

    /**
     * Get all entry field IDs for the given entry IDs.
     *
     * @param int[] $entryIds
     * @return int[]
     */
    public function findIdsByEntryIds(array $entryIds): array;

    /**
     * Delete multiple entry fields by their IDs in a single query.
     *
     * @param int[] $formIds
     * @return int Number of deleted rows
     */
    public function deleteByFormIds(array $formIds): int;

    /**
     * Check if a value already exists in entry fields for a specific field.
     *
     * @param int $formId
     * @param int $fieldId
     * @param string $value
     * @return bool
     */
    public function checkDuplicateValue(int $formId, int $fieldId, string $value): bool;
}

```
