2024.8.23
|
Public Member Functions | |
__construct () | |
getAll () | |
getApache () | |
getFilezilla () | |
getLogsPath () | |
getMailhog () | |
getMailpit () | |
getMariadb () | |
getMemcached () | |
getMysql () | |
getNodejs () | |
getPhp () | |
getPostgresql () | |
getServices () | |
getXlight () | |
reload () | |
update () | |
Data Fields | |
const | TYPE = 'bins' |
Private Attributes | |
$apache | |
$filezilla | |
$mailhog | |
$mailpit | |
$mariadb | |
$memcached | |
$mysql | |
$nodejs | |
$php | |
$postgresql | |
$xlight | |
The Bins
class manages various bin modules such as Mailhog, Mailpit, Memcached, Apache, PHP, MySQL, MariaDB, PostgreSQL, Node.js, FileZilla, 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.
Bins::__construct | ( | ) |
Constructor for the Bins class. Initializes the Bins object and logs the initialization.
Definition at line 36 of file class.bins.php.
References Util\logInitClass().
Bins::getAll | ( | ) |
Retrieves all bin modules.
Definition at line 70 of file class.bins.php.
References getApache(), getFilezilla(), getMailhog(), getMailpit(), getMariadb(), getMemcached(), getMysql(), getNodejs(), getPhp(), getPostgresql(), and getXlight().
Referenced by reload(), and update().
Bins::getApache | ( | ) |
Retrieves the Apache bin module. If the Apache module is not initialized, it creates a new instance.
Definition at line 135 of file class.bins.php.
References $apache.
Referenced by getAll(), and getServices().
Bins::getFilezilla | ( | ) |
Retrieves the FileZilla bin module. If the FileZilla module is not initialized, it creates a new instance.
Definition at line 219 of file class.bins.php.
References $filezilla.
Referenced by getAll(), getLogsPath(), and getServices().
Bins::getLogsPath | ( | ) |
Retrieves the log paths for all bin modules.
Definition at line 246 of file class.bins.php.
References getFilezilla(), and getLogsPath().
Referenced by getLogsPath().
Bins::getMailhog | ( | ) |
Retrieves the Mailhog bin module. If the Mailhog module is not initialized, it creates a new instance.
Definition at line 93 of file class.bins.php.
References $mailhog.
Referenced by getAll(), and getServices().
Bins::getMailpit | ( | ) |
Retrieves the Mailpit bin module. If the Mailpit module is not initialized, it creates a new instance.
Definition at line 107 of file class.bins.php.
References $mailpit.
Referenced by getAll(), and getServices().
Bins::getMariadb | ( | ) |
Retrieves the MariaDB bin module. If the MariaDB module is not initialized, it creates a new instance.
Definition at line 177 of file class.bins.php.
References $mariadb.
Referenced by getAll(), and getServices().
Bins::getMemcached | ( | ) |
Retrieves the Memcached bin module. If the Memcached module is not initialized, it creates a new instance.
Definition at line 121 of file class.bins.php.
References $memcached.
Referenced by getAll(), and getServices().
Bins::getMysql | ( | ) |
Retrieves the MySQL bin module. If the MySQL module is not initialized, it creates a new instance.
Definition at line 163 of file class.bins.php.
References $mysql.
Referenced by getAll(), and getServices().
Bins::getNodejs | ( | ) |
Retrieves the Node.js bin module. If the Node.js module is not initialized, it creates a new instance.
Definition at line 205 of file class.bins.php.
References $nodejs.
Referenced by getAll().
Bins::getPhp | ( | ) |
Retrieves the PHP bin module. If the PHP module is not initialized, it creates a new instance.
Definition at line 149 of file class.bins.php.
References $php.
Referenced by getAll().
Bins::getPostgresql | ( | ) |
Retrieves the PostgreSQL bin module. If the PostgreSQL module is not initialized, it creates a new instance.
Definition at line 191 of file class.bins.php.
References $postgresql.
Referenced by getAll(), and getServices().
Bins::getServices | ( | ) |
Retrieves the services for all enabled bin modules.
Definition at line 258 of file class.bins.php.
References $result, getApache(), getFilezilla(), getMailhog(), getMailpit(), getMariadb(), getMemcached(), getMysql(), getPostgresql(), getXlight(), BinApache\SERVICE_NAME, BinFilezilla\SERVICE_NAME, BinMailhog\SERVICE_NAME, BinMailpit\SERVICE_NAME, BinMariadb\SERVICE_NAME, BinMemcached\SERVICE_NAME, BinMysql\SERVICE_NAME, BinPostgresql\SERVICE_NAME, and BinXlight\SERVICE_NAME.
Bins::getXlight | ( | ) |
Retrieves the Xlight bin module. If the Xlight module is not initialized, it creates a new instance.
Definition at line 233 of file class.bins.php.
References $xlight.
Referenced by getAll(), and getServices().
Bins::reload | ( | ) |
Reloads the configuration for all bin modules. Logs the reload action and calls the reload method on each bin module.
Definition at line 45 of file class.bins.php.
References getAll(), and Util\logInfo().
Bins::update | ( | ) |
Updates the configuration for all bin modules. Logs the update action and calls the update method on each bin module.
Definition at line 57 of file class.bins.php.
References getAll(), and Util\logInfo().
|
private |
Definition at line 23 of file class.bins.php.
Referenced by getApache().
|
private |
Definition at line 29 of file class.bins.php.
Referenced by getFilezilla().
|
private |
Definition at line 20 of file class.bins.php.
Referenced by getMailhog().
|
private |
Definition at line 21 of file class.bins.php.
Referenced by getMailpit().
|
private |
Definition at line 26 of file class.bins.php.
Referenced by getMariadb().
|
private |
Definition at line 22 of file class.bins.php.
Referenced by getMemcached().
|
private |
Definition at line 25 of file class.bins.php.
Referenced by getMysql().
|
private |
Definition at line 28 of file class.bins.php.
Referenced by getNodejs().
|
private |
Definition at line 24 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 30 of file class.bins.php.
Referenced by getXlight().
const Bins::TYPE = 'bins' |
Definition at line 18 of file class.bins.php.
Referenced by Module\reload().