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 / Form / FormRepositoryInterface.php

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

45 lines 918 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Repository\Form;
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 FormRepositoryInterface extends BaseRepositoryInterface
13 {
14 /**
15 * Check if a form exists in the database.
16 *
17 * @param int $formId
18 * @return bool
19 */
20 public function exists(int $formId): bool;
21
22 /**
23 * @param int $formId
24 * @param string $value
25 *
26 * @return bool
27 */
28 public function updateFormStarred(int $formId, string $value): bool;
29
30 /**
31 * @param int $formId
32 * @param string $value
33 *
34 * @return bool
35 */
36 public function updateFormStatus(int $formId, string $value): bool;
37
38 /**
39 * Get the count of form filters.
40 *
41 * @return array<string, int>
42 */
43 public function getFilterCount(): array;
44 }
45