HEX
HEX
Server: Apache/2
System: Linux 31.186.11.143 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: tek178om (4688)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/tek178om/public_html/wp-content/plugins/backup/src/JetBackup/Factory.php
<?php

namespace JetBackup;

use JetBackup\Config\Config;
use JetBackup\Config\Locations;
use JetBackup\Settings\Automation;
use JetBackup\Settings\General;
use JetBackup\Settings\Integrations;
use JetBackup\Settings\Logging;
use JetBackup\Settings\Maintenance;
use JetBackup\Settings\Notifications;
use JetBackup\Settings\Performance;
use JetBackup\Settings\Restore;
use JetBackup\Settings\Security;
use JetBackup\Settings\Updates;
use JetBackup\Wordpress\Helper;

if (!defined( '__JETBACKUP__')) die('Direct access is not allowed');

class Factory {
	
	private function __construct() {}

	/**
	 * @return Config
	 */
	public static function getConfig():Config {
		static $i;
		if(!$i) $i = new Config();
		return $i;
	}

	public static function getSettingsAutomation():Automation {
		static $i;
		if(!$i) $i = new Automation();
		return $i;
	}

	public static function getSettingsGeneral($reload=false):General {
		static $i;
		if(!$i || $reload) $i = new General();
		return $i;
	}

	public static function getSettingsSecurity():Security {
		static $i;
		if(!$i) $i = new Security();
		return $i;
	}

	public static function getSettingsPerformance():Performance {
		static $i;
		if(!$i) $i = new Performance();
		return $i;
	}

	public static function getSettingsLogging():Logging {
		static $i;
		if(!$i) $i = new Logging();
		return $i;
	}

	public static function getSettingsNotifications():Notifications {
		static $i;
		if(!$i) $i = new Notifications();
		return $i;
	}

	public static function getSettingsMaintenance():Maintenance {
		static $i;
		if(!$i) $i = new Maintenance();
		return $i;
	}

	public static function getSettingsUpdates():Updates {
		static $i;
		if(!$i) $i = new Updates();
		return $i;
	}

	public static function getSettingsRestore():Restore {
		static $i;
		if(!$i) $i = new Restore();
		return $i;
	}

	public static function getSettingsIntegrations():Integrations {
		static $i;
		if(!$i) $i = new Integrations();
		return $i;
	}

	/**
	 * @return Locations
	 */
	public static function getLocations():Locations {
		static $i;
		if(!$i) $i = new Locations();
		return $i;
	}

	/**
	 * @return Helper
	 */
	public static function getWPHelper():Helper {
		static $i;
		if(!$i) $i = new Helper();
		return $i;
	}
}