![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct () | |
getAll () | |
getApache () | |
getMailpit () | |
getMariadb () | |
getMemcached () | |
getMysql () | |
getNodejs () | |
getPhp () | |
getPostgresql () | |
getServices () | |
getXlight () | |
reload () | |
update () |
Data Fields | |
const | TYPE = 'bins' |
Private Attributes | |
$apache | |
$mailpit | |
$mariadb | |
$memcached | |
$mysql | |
$nodejs | |
$php | |
$postgresql | |
$xlight |
The Bins class manages various bin modules such as Mailpit, Memcached, Apache, PHP, MySQL, MariaDB, PostgreSQL, Node.js and Xlight. It provides methods to initialize, reload, update, and retrieve these modules. The class also handles logging and service management for the enabled bin modules.
Definition at line 16 of file class.bins.php.
__construct | ( | ) |
Constructor for the Bins class. Initializes the Bins object and logs the initialization.
Definition at line 34 of file class.bins.php.
References Util\logInitClass().
getAll | ( | ) |
Retrieves all bin modules.
Definition at line 68 of file class.bins.php.
References getApache(), getMailpit(), getMariadb(), getMemcached(), getMysql(), getNodejs(), getPhp(), getPostgresql(), and getXlight().
getApache | ( | ) |
Retrieves the Apache bin module. If the Apache module is not initialized, it creates a new instance.
Definition at line 117 of file class.bins.php.
References $apache.
Referenced by getAll(), and getServices().
getMailpit | ( | ) |
Retrieves the Mailpit bin module. If the Mailpit module is not initialized, it creates a new instance.
Definition at line 89 of file class.bins.php.
References $mailpit.
Referenced by getAll(), and getServices().
getMariadb | ( | ) |
Retrieves the MariaDB bin module. If the MariaDB module is not initialized, it creates a new instance.
Definition at line 159 of file class.bins.php.
References $mariadb.
Referenced by getAll(), and getServices().
getMemcached | ( | ) |
Retrieves the Memcached bin module. If the Memcached module is not initialized, it creates a new instance.
Definition at line 103 of file class.bins.php.
References $memcached.
Referenced by getAll(), and getServices().
getMysql | ( | ) |
Retrieves the MySQL bin module. If the MySQL module is not initialized, it creates a new instance.
Definition at line 145 of file class.bins.php.
References $mysql.
Referenced by getAll(), and getServices().
getNodejs | ( | ) |
Retrieves the Node.js bin module. If the Node.js module is not initialized, it creates a new instance.
Definition at line 187 of file class.bins.php.
References $nodejs.
Referenced by getAll().
getPhp | ( | ) |
Retrieves the PHP bin module. If the PHP module is not initialized, it creates a new instance.
Definition at line 131 of file class.bins.php.
References $php.
Referenced by getAll().
getPostgresql | ( | ) |
Retrieves the PostgreSQL bin module. If the PostgreSQL module is not initialized, it creates a new instance.
Definition at line 173 of file class.bins.php.
References $postgresql.
Referenced by getAll(), and getServices().
getServices | ( | ) |
Retrieves the services for all enabled bin modules.
Definition at line 214 of file class.bins.php.
References $result, getApache(), getMailpit(), getMariadb(), getMemcached(), getMysql(), getPostgresql(), getXlight(), BinApache\SERVICE_NAME, BinMailpit\SERVICE_NAME, BinMariadb\SERVICE_NAME, BinMemcached\SERVICE_NAME, BinMysql\SERVICE_NAME, BinPostgresql\SERVICE_NAME, and BinXlight\SERVICE_NAME.
getXlight | ( | ) |
Retrieves the Xlight bin module. If the Xlight module is not initialized, it creates a new instance.
Definition at line 201 of file class.bins.php.
References $xlight.
Referenced by getAll(), and getServices().
reload | ( | ) |
Reloads the configuration for all bin modules. Logs the reload action and calls the reload method on each bin module.
Definition at line 43 of file class.bins.php.
References getAll(), and Util\logInfo().
update | ( | ) |
Updates the configuration for all bin modules. Logs the update action and calls the update method on each bin module.
Definition at line 55 of file class.bins.php.
References getAll(), and Util\logInfo().
|
private |
Definition at line 20 of file class.bins.php.
Referenced by getApache().
|
private |
Definition at line 21 of file class.bins.php.
Referenced by getMailpit().
|
private |
Definition at line 22 of file class.bins.php.
Referenced by getMariadb().
|
private |
Definition at line 23 of file class.bins.php.
Referenced by getMemcached().
|
private |
Definition at line 24 of file class.bins.php.
Referenced by getMysql().
|
private |
Definition at line 25 of file class.bins.php.
Referenced by getNodejs().
|
private |
Definition at line 26 of file class.bins.php.
Referenced by getPhp().
|
private |
Definition at line 27 of file class.bins.php.
Referenced by getPostgresql().
|
private |
Definition at line 28 of file class.bins.php.
Referenced by getXlight().
const TYPE = 'bins' |
Definition at line 18 of file class.bins.php.
Referenced by Module\reload().