PluginProbe
The Innovative Form Builder – IvyForms / 0.3.1
The Innovative Form Builder – IvyForms v0.3.1
1.5.1 1.5 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 All 27 releases
ivyforms / backend / src / Services / InstallActions / ActivationDatabaseHook.php

ActivationDatabaseHook.php in The Innovative Form Builder – IvyForms 0.3.1, at backend/src/Services/InstallActions/ActivationDatabaseHook.php

41 lines 997 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Database hook for activation
5 */
6
7 namespace IvyForms\Services\InstallActions;
8
9 // phpcs:disable PSR1.Files.SideEffects
10 if (!defined('ABSPATH')) {
11 exit; // Exit if accessed directly
12 }
13
14 use IvyForms\Services\InstallActions\DB\Confirmation\ConfirmationsTable;
15 use IvyForms\Services\InstallActions\DB\Entry\EntriesTable;
16 use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable;
17 use IvyForms\Services\InstallActions\DB\Field\FieldsTable;
18 use IvyForms\Services\InstallActions\DB\Form\FormsTable;
19 use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable;
20
21 /**
22 * Class ActivationHook
23 *
24 * @package IvyForms\Services\InstallActions
25 */
26 class ActivationDatabaseHook
27 {
28 /**
29 * Initialize the plugin
30 */
31 public static function init(): void
32 {
33 FormsTable::init();
34 FieldsTable::init();
35 NotificationsTable::init();
36 ConfirmationsTable::init();
37 EntriesTable::init();
38 EntryFieldsTable::init();
39 }
40 }
41