![]() |
Bearsampp 2025.8.29
API Documentation for Bearsampp
|
Public Member Functions | |
| __construct ($args) | |
Private Member Functions | |
| switchAlias ($putOnline) | |
| switchApache ($putOnline) | |
| switchVhosts ($putOnline) | |
Class ActionSwitchOnline Handles the switching of the application between online and offline modes.
Definition at line 14 of file class.action.switchOnline.php.
| __construct | ( | $args | ) |
ActionSwitchOnline constructor. Initializes the online/offline switch based on the provided arguments.
| array | $args | Arguments to determine the online/offline state. |
Definition at line 22 of file class.action.switchOnline.php.
References $bearsamppConfig, Config\CFG_ONLINE, Config\DISABLED, Config\ENABLED, Util\startLoading(), switchAlias(), switchApache(), and switchVhosts().
|
private |
Switches the Apache aliases based on the online/offline state.
| bool | $putOnline | True to put online, false to put offline. |
Definition at line 53 of file class.action.switchOnline.php.
References $bearsamppBins.
Referenced by __construct().
|
private |
Switches the Apache configuration based on the online/offline state.
| bool | $putOnline | True to put online, false to put offline. |
Definition at line 42 of file class.action.switchOnline.php.
References $bearsamppBins.
Referenced by __construct().
|
private |
Switches the Apache virtual hosts based on the online/offline state.
| bool | $putOnline | True to put online, false to put offline. |
Definition at line 64 of file class.action.switchOnline.php.
References $bearsamppBins.
Referenced by __construct().