![]() |
Bearsampp 2025.8.29
API Documentation for Bearsampp
|
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.
| __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, 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 111 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 157 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 168 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 143 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 122 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 132 of file class.action.service.php.
Referenced by __construct().
| const CREATE = 'create' |
Definition at line 16 of file class.action.service.php.
Referenced by TplService\getActionCreate().
| const INSTALL = 'install' |
Definition at line 21 of file class.action.service.php.
Referenced by TplService\getActionInstall(), TplAppApache\getActionInstallApacheService(), TplAppMailpit\getActionInstallMailpitService(), TplAppMariadb\getActionInstallMariadbService(), TplAppMemcached\getActionInstallMemcachedService(), TplAppMysql\getActionInstallMysqlService(), TplAppPostgresql\getActionInstallPostgresqlService(), TplAppXlight\getActionInstallXlightService(), and TplService\getItemInstall().
| const REMOVE = 'remove' |
Definition at line 22 of file class.action.service.php.
Referenced by TplService\getActionRemove(), TplAppApache\getActionRemoveApacheService(), TplAppMailpit\getActionRemoveMailpitService(), TplAppMariadb\getActionRemoveMariadbService(), TplAppMemcached\getActionRemoveMemcachedService(), TplAppMysql\getActionRemoveMysqlService(), TplAppPostgresql\getActionRemovePostgresqlService(), TplAppXlight\getActionRemoveXlightService(), and TplService\getItemRemove().
| const RESTART = 'restart' |
Definition at line 19 of file class.action.service.php.
Referenced by TplService\getActionRestart(), and TplService\getItemRestart().
| const START = 'start' |
Definition at line 17 of file class.action.service.php.
Referenced by TplService\getActionStart(), and TplService\getItemStart().
| const STOP = 'stop' |
Definition at line 18 of file class.action.service.php.
Referenced by TplService\getActionStop(), and TplService\getItemStop().