![]() |
2024.8.23
|
Public Member Functions | |
__construct ($args) | |
Data Fields | |
const | CREATE = 'create' |
const | INSTALL = 'install' |
const | REMOVE = 'remove' |
const | RESTART = 'restart' |
const | START = 'start' |
const | STOP = 'stop' |
Private Member Functions | |
create ($service) | |
install ($bin, $port, $syntaxCheckCmd) | |
remove ($service, $name) | |
restart ($bin, $syntaxCheckCmd) | |
start ($bin, $syntaxCheckCmd) | |
stop ($service) | |
Class ActionService Handles various actions related to services such as creating, starting, stopping, restarting, installing, and removing.
Definition at line 14 of file class.action.service.php.
ActionService::__construct | ( | $args | ) |
ActionService constructor. Initializes the service action based on provided arguments.
array | $args | Arguments for the service action. |
Definition at line 30 of file class.action.service.php.
References $bearsamppBins, $port, BinApache\CMD_SYNTAX_CHECK, BinMariadb\CMD_SYNTAX_CHECK, BinMysql\CMD_SYNTAX_CHECK, create(), install(), restart(), BinApache\SERVICE_NAME, BinFilezilla\SERVICE_NAME, BinMailhog\SERVICE_NAME, BinMailpit\SERVICE_NAME, BinMariadb\SERVICE_NAME, BinMemcached\SERVICE_NAME, BinMysql\SERVICE_NAME, BinPostgresql\SERVICE_NAME, BinXlight\SERVICE_NAME, start(), Util\startLoading(), stop(), and Util\stopLoading().
|
private |
Creates a service.
Win32Service | $service | The service to create. |
Definition at line 119 of file class.action.service.php.
Referenced by __construct().
|
private |
Installs a service.
mixed | $bin | The binary object of the service. |
int | $port | The port number for the service. |
string | null | $syntaxCheckCmd | The command to check syntax, if applicable. |
Definition at line 165 of file class.action.service.php.
References $port, and Util\installService().
Referenced by __construct().
|
private |
Removes a service.
Win32Service | $service | The service to remove. |
string | $name | The name of the service. |
Definition at line 176 of file class.action.service.php.
References Util\removeService().
|
private |
Restarts a service.
mixed | $bin | The binary object of the service. |
string | null | $syntaxCheckCmd | The command to check syntax, if applicable. |
Definition at line 151 of file class.action.service.php.
References start().
Referenced by __construct().
|
private |
Starts a service.
mixed | $bin | The binary object of the service. |
string | null | $syntaxCheckCmd | The command to check syntax, if applicable. |
Definition at line 130 of file class.action.service.php.
References Util\startService().
Referenced by __construct(), and restart().
|
private |
Stops a service.
Win32Service | $service | The service to stop. |
Definition at line 140 of file class.action.service.php.
Referenced by __construct().
const ActionService::CREATE = 'create' |
Definition at line 16 of file class.action.service.php.
Referenced by TplService\getActionCreate().
const ActionService::INSTALL = 'install' |
Definition at line 21 of file class.action.service.php.
Referenced by TplService\getActionInstall(), TplAppApache\getActionInstallApacheService(), TplAppFilezilla\getActionInstallFilezillaService(), TplAppMailhog\getActionInstallMailhogService(), TplAppMailpit\getActionInstallMailpitService(), TplAppMariadb\getActionInstallMariadbService(), TplAppMemcached\getActionInstallMemcachedService(), TplAppMysql\getActionInstallMysqlService(), TplAppPostgresql\getActionInstallPostgresqlService(), TplAppXlight\getActionInstallXlightService(), and TplService\getItemInstall().
const ActionService::REMOVE = 'remove' |
Definition at line 22 of file class.action.service.php.
Referenced by TplService\getActionRemove(), TplAppApache\getActionRemoveApacheService(), TplAppFilezilla\getActionRemoveFilezillaService(), TplAppMailhog\getActionRemoveMailhogService(), TplAppMailpit\getActionRemoveMailpitService(), TplAppMariadb\getActionRemoveMariadbService(), TplAppMemcached\getActionRemoveMemcachedService(), TplAppMysql\getActionRemoveMysqlService(), TplAppPostgresql\getActionRemovePostgresqlService(), TplAppXlight\getActionRemoveXlightService(), and TplService\getItemRemove().
const ActionService::RESTART = 'restart' |
Definition at line 19 of file class.action.service.php.
Referenced by TplService\getActionRestart(), and TplService\getItemRestart().
const ActionService::START = 'start' |
Definition at line 17 of file class.action.service.php.
Referenced by TplService\getActionStart(), and TplService\getItemStart().
const ActionService::STOP = 'stop' |
Definition at line 18 of file class.action.service.php.
Referenced by TplService\getActionStop(), and TplService\getItemStop().