PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
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
← All changes | backend/src/Services/Template/HRInterviewFeedbackFormTemplate.php +17 -3 1.0 → 1.5 View file →
@@ -6,13 +6,13 @@
6 6
7 7 class HRInterviewFeedbackFormTemplate
8 8 {
9 9 /**
10 - * Get the HR interview feedback form template
10 + * Get template metadata (without form_data)
11 11 *
12 12 * @return array<string, mixed>
13 13 */
14 - public static function getTemplate(): array
14 + public static function getTemplateMeta(): array
15 15 {
16 16 return [
17 17 'id' => 'hr_interview_feedback_form',
18 18 'name' => BackendStrings::getTemplateStrings()['hr_interview_feedback_form'],
@@ -20,8 +20,21 @@
20 20 'category' => 'feedback-forms',
21 21 'subcategory' => 'interview-feedback-forms',
22 22 'is_pro' => false,
23 23 'screenshot' => IVYFORMS_TEMPLATES_IMAGES_URL . 'hr-interview-feedback-form.svg',
24 + ];
25 + }
26 +
27 + /**
28 + * Get the full template including form data
29 + *
30 + * @return array<string, mixed>
31 + */
32 + public static function getTemplate(): array
33 + {
34 + return array_merge(
35 + self::getTemplateMeta(),
36 + [
24 37 'form_data' => [
25 38 'name' => BackendStrings::getTemplateStrings()['hr_interview_feedback_form'],
26 39 'published' => 1,
27 40 'showTitle' => 1,
@@ -34,9 +47,10 @@
34 47 self::getInterviewerInformationFields()
35 48 ),
36 49 'settings' => []
37 50 ]
38 - ];
51 + ]
52 + );
39 53 }
40 54
41 55 /**
42 56 * Get candidate information fields