PluginProbe
The Innovative Form Builder – IvyForms / 1.0
The Innovative Form Builder – IvyForms v1.0
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 / Template / GeneralMedicalConsentFormTemplate.php

GeneralMedicalConsentFormTemplate.php in The Innovative Form Builder – IvyForms 1.0, at backend/src/Services/Template/GeneralMedicalConsentFormTemplate.php

51 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Services\Template;
4
5 use IvyForms\Services\Translations\BackendStrings;
6
7 class GeneralMedicalConsentFormTemplate
8 {
9 /**
10 * Get template metadata (without form_data)
11 *
12 * @return array<string, mixed>
13 */
14 public static function getTemplateMeta(): array
15 {
16 return [
17 'id' => 'general_medical_consent_form',
18 'name' => BackendStrings::getTemplateStrings()['general_medical_consent_form'],
19 'description' => BackendStrings::getTemplateStrings()['general_medical_consent_form_desc'],
20 'category' => 'consent-forms',
21 'subcategory' => 'medical-consent-forms',
22 'is_pro' => true,
23 'required_plan' => 'essentials',
24 'screenshot' => IVYFORMS_TEMPLATES_IMAGES_URL . 'general-medical-consent-form.svg'
25 ];
26 }
27
28 /**
29 * Get the full template including form data
30 *
31 * @return array<string, mixed>
32 */
33 public static function getTemplate(): array
34 {
35 return array_merge(
36 self::getTemplateMeta(),
37 [
38 'form_data' => [
39 'name' => BackendStrings::getTemplateStrings()['general_medical_consent_form'],
40 'published' => 1,
41 'showTitle' => 1,
42 'storeEntries' => 1,
43 'integrationSettings' => TemplateDefaults::getDefaultIntegrationSettings(),
44 'fields' => [],
45 'settings' => []
46 ]
47 ]
48 );
49 }
50 }
51