PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 1.4.7
Fluent Support – Helpdesk & Customer Support Ticket System v1.4.7
2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 68 releases
fluent-support / app / Modules / IntegrationSettingsModule.php

IntegrationSettingsModule.php in Fluent Support – Helpdesk & Customer Support Ticket System 1.4.7, at app/Modules/IntegrationSettingsModule.php

42 lines 955 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentSupport\App\Modules;
4
5 class IntegrationSettingsModule
6 {
7 private static $integrations = [];
8
9 public static function getSettings($integrationKey, $withFields = false)
10 {
11 $integrationClasses = self::$integrations;
12
13 $class = (isset($integrationClasses[$integrationKey])) ? $integrationClasses[$integrationKey] : false;
14
15 if(!$class) {
16 return false;
17 }
18
19
20 return $class->getSettings($withFields);
21 }
22
23 public static function saveSettings($integrationKey, $settings)
24 {
25 $integrationClasses = self::$integrations;
26
27 $class = (isset($integrationClasses[$integrationKey])) ? $integrationClasses[$integrationKey] : false;
28
29 if(!$class) {
30 return false;
31 }
32
33 return $class->saveSettings($settings);
34 }
35
36 public static function addIntegration($class)
37 {
38 self::$integrations[$class->getKey()] = $class;
39 }
40
41 }
42