PluginProbe
The Innovative Form Builder – IvyForms / 0.8
The Innovative Form Builder – IvyForms v0.8
1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 1.2 1.3
ivyforms / backend / src / Repository / EntryField / EntryFieldRepositoryInterface.php

EntryFieldRepositoryInterface.php in The Innovative Form Builder – IvyForms 0.8, at backend/src/Repository/EntryField/EntryFieldRepositoryInterface.php

54 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Repository\EntryField;
4
5 // phpcs:disable PSR1.Files.SideEffects
6 if (!defined('ABSPATH')) {
7 exit; // Exit if accessed directly
8 }
9
10 use IvyForms\Repository\BaseRepositoryInterface;
11
12 interface EntryFieldRepositoryInterface extends BaseRepositoryInterface
13 {
14 /**
15 * Check if an entry field exists in the database.
16 *
17 * @param int $entryFieldId
18 * @return bool
19 */
20 public function exists(int $entryFieldId): bool;
21
22 /**
23 * @param array<mixed> $array
24 * @return array<int, array<string, mixed>>
25 */
26 public function findBy(array $array): array;
27
28 /**
29 * Get all entry field IDs for the given entry IDs.
30 *
31 * @param int[] $entryIds
32 * @return int[]
33 */
34 public function findIdsByEntryIds(array $entryIds): array;
35
36 /**
37 * Delete multiple entry fields by their IDs in a single query.
38 *
39 * @param int[] $formIds
40 * @return int Number of deleted rows
41 */
42 public function deleteByFormIds(array $formIds): int;
43
44 /**
45 * Check if a value already exists in entry fields for a specific field.
46 *
47 * @param int $formId
48 * @param int $fieldId
49 * @param string $value
50 * @return bool
51 */
52 public function checkDuplicateValue(int $formId, int $fieldId, string $value): bool;
53 }
54