# ivyforms/0.8/backend/src/Repository/Entry/EntryRepositoryInterface.php

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

- Page: https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Repository/Entry/EntryRepositoryInterface.php
- Raw: https://pluginprobe.com/plugins/ivyforms/0.8/raw/backend/src/Repository/Entry/EntryRepositoryInterface.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/Entry/EntryRepositoryInterface.php#L10-L20`.

```php
<?php

namespace IvyForms\Repository\Entry;

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

use IvyForms\Repository\BaseRepositoryInterface;

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

    /**
     * Get the count of entries for a specific form.
     *
     * @param int $formId
     * @return int
     */
    public function getCountByFormId(int $formId): int;

    /**
     * Get the count of entries for multiple form IDs.
     *
     * @param int[] $formIds
     * @return array<int, int> formId => count
     */
    public function getEntryCountByFormIds(array $formIds): array;

    /**
     * Get the count of entries for the filter dropdown.
     *
     * @param array<string, mixed>|null $params
     * @return array<string, int>
     */
    public function getFilterCount(?array $params = null): array;

    /**
     * Update the starred status of an entry.
     *
     * @param int $entryId
     * @param bool $value
     * @return void
     */
    public function updateEntryStarred(int $entryId, bool $value): void;

    /**
     * Update the status of an entry.
     *
     * @param int $entryId
     * @param string $status
     * @return void
     */
    public function updateEntryStatus(int $entryId, string $status): void;

    /**
     * Get the entries with their fields based on search parameters.
     *
     * @param array<int, array<string, mixed>> $entries
     * @return array<mixed>
     */
    public function getEntryFields(array $entries): array;
}

```
