PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / trunk
JetBackup – Backup, Restore & Migrate vtrunk
3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / src / JetBackup / Factory.php
backup / src / JetBackup Last commit date
3rdparty 4 months ago Ajax 1 day ago Alert 1 year ago Archive 1 day ago Backup 4 months ago BackupJob 1 month ago CLI 1 day ago Cache 1 year ago Config 5 months ago Cron 1 month ago Crontab 5 months ago Data 5 months ago Destination 1 month ago DirIterator 5 months ago Download 10 months ago Downloader 10 months ago Encryption 1 year ago Entities 1 day ago Exception 1 year ago Export 1 year ago Filesystem 5 months ago IO 1 year ago Integrations 1 year ago JetBackupLinux 1 month ago License 1 year ago Log 4 months ago MFA 7 months ago Notification 1 year ago Queue 1 day ago Restore 7 months ago ResumableTask 5 months ago SGB 10 months ago Schedule 3 months ago Settings 1 day ago Showcase 1 year ago Snapshot 4 months ago Upload 3 months ago UserInput 1 year ago Web 1 year ago Wordpress 1 day ago .htaccess 1 year ago Factory.php 1 year ago JetBackup.php 1 day ago autoload.php 1 year ago functions.php 1 year ago index.html 1 year ago web.config 1 year ago
Factory.php
112 lines
1 <?php
2
3 namespace JetBackup;
4
5 use JetBackup\Config\Config;
6 use JetBackup\Config\Locations;
7 use JetBackup\Settings\Automation;
8 use JetBackup\Settings\General;
9 use JetBackup\Settings\Integrations;
10 use JetBackup\Settings\Logging;
11 use JetBackup\Settings\Maintenance;
12 use JetBackup\Settings\Notifications;
13 use JetBackup\Settings\Performance;
14 use JetBackup\Settings\Restore;
15 use JetBackup\Settings\Security;
16 use JetBackup\Settings\Updates;
17 use JetBackup\Wordpress\Helper;
18
19 if (!defined( '__JETBACKUP__')) die('Direct access is not allowed');
20
21 class Factory {
22
23 private function __construct() {}
24
25 /**
26 * @return Config
27 */
28 public static function getConfig():Config {
29 static $i;
30 if(!$i) $i = new Config();
31 return $i;
32 }
33
34 public static function getSettingsAutomation():Automation {
35 static $i;
36 if(!$i) $i = new Automation();
37 return $i;
38 }
39
40 public static function getSettingsGeneral($reload=false):General {
41 static $i;
42 if(!$i || $reload) $i = new General();
43 return $i;
44 }
45
46 public static function getSettingsSecurity():Security {
47 static $i;
48 if(!$i) $i = new Security();
49 return $i;
50 }
51
52 public static function getSettingsPerformance():Performance {
53 static $i;
54 if(!$i) $i = new Performance();
55 return $i;
56 }
57
58 public static function getSettingsLogging():Logging {
59 static $i;
60 if(!$i) $i = new Logging();
61 return $i;
62 }
63
64 public static function getSettingsNotifications():Notifications {
65 static $i;
66 if(!$i) $i = new Notifications();
67 return $i;
68 }
69
70 public static function getSettingsMaintenance():Maintenance {
71 static $i;
72 if(!$i) $i = new Maintenance();
73 return $i;
74 }
75
76 public static function getSettingsUpdates():Updates {
77 static $i;
78 if(!$i) $i = new Updates();
79 return $i;
80 }
81
82 public static function getSettingsRestore():Restore {
83 static $i;
84 if(!$i) $i = new Restore();
85 return $i;
86 }
87
88 public static function getSettingsIntegrations():Integrations {
89 static $i;
90 if(!$i) $i = new Integrations();
91 return $i;
92 }
93
94 /**
95 * @return Locations
96 */
97 public static function getLocations():Locations {
98 static $i;
99 if(!$i) $i = new Locations();
100 return $i;
101 }
102
103 /**
104 * @return Helper
105 */
106 public static function getWPHelper():Helper {
107 static $i;
108 if(!$i) $i = new Helper();
109 return $i;
110 }
111 }
112