2024.8.23
Loading...
Searching...
No Matches
ActionLaunchStartup Class Reference

Public Member Functions

 __construct ($args)
 

Detailed Description

Class ActionLaunchStartup

This class manages the application's launch startup settings. It initializes the settings based on the provided arguments and updates the configuration accordingly.

Definition at line 16 of file class.action.launchStartup.php.

Constructor & Destructor Documentation

◆ __construct()

ActionLaunchStartup::__construct ( $args)

ActionLaunchStartup constructor.

This constructor uses the provided arguments to determine whether to enable or disable the application's launch at startup feature. It starts the loading process, updates the launch startup configuration based on the provided argument, and modifies the system's startup settings accordingly.

Parameters
array$argsAn array of arguments where the first element should be either Config\ENABLED or Config\DISABLED to indicate the desired launch startup setting.

Definition at line 28 of file class.action.launchStartup.php.

29 {
30 global $bearsamppConfig;
31
32 if (isset($args[0])) {
34 $launchStartup = $args[0] == Config::ENABLED;
35 if ($launchStartup) {
37 } else {
39 }
41 }
42 }
const ENABLED
const CFG_LAUNCH_STARTUP
static startLoading()
static enableLaunchStartup()
static disableLaunchStartup()
global $bearsamppConfig
Definition homepage.php:26

References $bearsamppConfig, Config\CFG_LAUNCH_STARTUP, Util\disableLaunchStartup(), Config\ENABLED, Util\enableLaunchStartup(), and Util\startLoading().


The documentation for this class was generated from the following file: