Bearsampp 2026.5.5
Loading...
Searching...
No Matches
ActionEnable Class Reference

Public Member Functions

 __construct ($args)

Detailed Description

Class ActionEnable

This class is responsible for enabling various services (Apache, PHP, MySQL, etc.) based on the provided arguments.

Definition at line 15 of file class.action.enable.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( $args)

Constructor for the ActionEnable class.

Parameters
array$argsAn array of arguments where the first element is the service name and the second element is the enable flag.

@global object $bearsamppBins Global object containing instances of various services.

Definition at line 24 of file class.action.enable.php.

25 {
26 global $bearsamppBins;
27
28 if ( isset( $args[0] ) && !empty( $args[0] ) && isset( $args[1] ) ) {
30 $bin = $bearsamppBins->getBinByName($args[0]);
31 if ($bin !== null) {
32 $bin->setEnable($args[1], true);
33 }
34 }
35 }
global $bearsamppBins
static startLoading()

References $bearsamppBins, and Util\startLoading().


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