![]() |
2024.8.23
|
Public Member Functions | |
| __construct ($args) | |
Private Member Functions | |
| switchAlias ($putOnline) | |
| switchApache ($putOnline) | |
| switchFilezilla ($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.
| ActionSwitchOnline::__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(), switchFilezilla(), 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 54 of file class.action.switchOnline.php.
References $bearsamppBins.
Referenced by __construct().
Here is the caller graph for this function:
|
private |
Switches the Apache configuration based on the online/offline state.
| bool | $putOnline | True to put online, false to put offline. |
Definition at line 43 of file class.action.switchOnline.php.
References $bearsamppBins.
Referenced by __construct().
Here is the caller graph for this function:
|
private |
Switches the Filezilla configuration based on the online/offline state.
| bool | $putOnline | True to put online, false to put offline. |
Definition at line 76 of file class.action.switchOnline.php.
References $bearsamppBins, BinFilezilla\CFG_IP_FILTER_ALLOWED, and BinFilezilla\CFG_IP_FILTER_DISALLOWED.
Referenced by __construct().
Here is the caller graph for this function:
|
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 65 of file class.action.switchOnline.php.
References $bearsamppBins.
Referenced by __construct().
Here is the caller graph for this function: