PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.9.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.9.1
V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 2.10.2 All 137 releases
← All changes | includes/Core/Database/FallbackModel.php +12 -6 2.02.9.1 View file →
@@ -1,10 +1,12 @@
1 1 <?php
2 2
3 3 namespace BitCode\BitForm\Core\Database;
4 4
5 -class FallbackModel extends Model {
6 - public function changeMetaKey($fieldKey, $name) {
5 +class FallbackModel extends Model
6 +{
7 + public function changeMetaKey($fieldKey, $name)
8 + {
7 9 $prefix = $this->app_db->prefix;
8 10 $sql = "UPDATE {$prefix}bitforms_form_entrymeta SET meta_key = '{$fieldKey}' WHERE meta_key = '{$fieldKey}{$name}'";
9 11
10 12 return $this->execute($sql);
@@ -9,9 +11,10 @@
9 11
10 12 return $this->execute($sql);
11 13 }
12 14
13 - public function changeIntegKey($integId, $conf) {
15 + public function changeIntegKey($integId, $conf)
16 + {
14 17 $prefix = $this->app_db->prefix;
15 18 $sql = "UPDATE {$prefix}bitforms_integration SET integration_details = '%s' WHERE id = %d";
16 19 $values = [$conf, $integId];
17 20
@@ -17,9 +20,10 @@
17 20
18 21 return $this->execute($sql, $values)->getResult();
19 22 }
20 23
21 - public function changeWorkflowKey($workflowId, $logics, $workflowAction) {
24 + public function changeWorkflowKey($workflowId, $logics, $workflowAction)
25 + {
22 26 $prefix = $this->app_db->prefix;
23 27 $sql = "UPDATE {$prefix}bitforms_workflows SET workflow_condition = '%s', workflow_action = '%s' WHERE id = %d";
24 28 $values = [$logics, $workflowAction, $workflowId];
25 29 return $this->execute($sql, $values)->getResult();
@@ -24,9 +28,10 @@
24 28 $values = [$logics, $workflowAction, $workflowId];
25 29 return $this->execute($sql, $values)->getResult();
26 30 }
27 31
28 - public function changeSuccessMessageKey($messageId, $title, $content, $config) {
32 + public function changeSuccessMessageKey($messageId, $title, $content, $config)
33 + {
29 34 $prefix = $this->app_db->prefix;
30 35 $sql = "UPDATE {$prefix}bitforms_success_messages SET message_title = '%s', message_content = '%s', message_config = '%s' WHERE id = %d";
31 36 $values = [$title, $content, $config, $messageId];
32 37 return $this->execute($sql, $values)->getResult();
@@ -31,9 +36,10 @@
31 36 $values = [$title, $content, $config, $messageId];
32 37 return $this->execute($sql, $values)->getResult();
33 38 }
34 39
35 - public function changeEmailTempKey($tempId, $sub, $body) {
40 + public function changeEmailTempKey($tempId, $sub, $body)
41 + {
36 42 $prefix = $this->app_db->prefix;
37 43 $sql = "UPDATE {$prefix}bitforms_email_template SET sub = '%s', body = '%s' WHERE id = %d";
38 44 $values = [$sub, $body, $tempId];
39 45 return $this->execute($sql, $values)->getResult();