Bearsampp 2026.9.23
Loading...
Searching...
No Matches
TplService Class Reference

Static Public Member Functions

static getActionCreate ($sName)
static getActionInstall ($sName)
static getActionRemove ($sName)
static getActionRestart ($sName)
static getActionStart ($sName)
static getActionStop ($sName)
static getItemInstall ($sName)
static getItemRemove ($sName)
static getItemRestart ($sName)
static getItemStart ($sName)
static getItemStop ($sName)

Detailed Description

Class TplService

This class provides methods to generate action strings and menu items for managing Windows services within the Bearsampp application. It includes functionalities for creating, starting, stopping, restarting, installing, and removing services.

Definition at line 17 of file class.tpl.service.php.

Member Function Documentation

◆ getActionCreate()

getActionCreate ( $sName)
static

Generates an action string to create a service.

Parameters
string$sNameThe name of the service to create.
Returns
string The generated action string for creating the service.

Definition at line 26 of file class.tpl.service.php.

27 {
29 }
const SERVICE
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)

References ActionService\CREATE, TplApp\getActionRun(), and Action\SERVICE.

Here is the call graph for this function:

◆ getActionInstall()

getActionInstall ( $sName)
static

Generates an action string to install a service.

Parameters
string$sNameThe name of the service to install.
Returns
string The generated action string for installing the service.

Definition at line 74 of file class.tpl.service.php.

References TplApp\getActionRun(), ActionService\INSTALL, and Action\SERVICE.

Here is the call graph for this function:

◆ getActionRemove()

getActionRemove ( $sName)
static

Generates an action string to remove a service.

Parameters
string$sNameThe name of the service to remove.
Returns
string The generated action string for removing the service.

Definition at line 86 of file class.tpl.service.php.

References TplApp\getActionRun(), ActionService\REMOVE, and Action\SERVICE.

Here is the call graph for this function:

◆ getActionRestart()

getActionRestart ( $sName)
static

Generates an action string to restart a service.

Parameters
string$sNameThe name of the service to restart.
Returns
string The generated action string for restarting the service.

Definition at line 62 of file class.tpl.service.php.

References TplApp\getActionRun(), ActionService\RESTART, and Action\SERVICE.

Referenced by TplAppOnline\getActionStatus(), TplAppApache\getActionSwitchApacheModule(), TplAppPhp\getActionSwitchPhpExtension(), and TplAppPhp\getActionSwitchPhpSetting().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getActionStart()

getActionStart ( $sName)
static

Generates an action string to start a service.

Parameters
string$sNameThe name of the service to start.
Returns
string The generated action string for starting the service.

Definition at line 38 of file class.tpl.service.php.

References TplApp\getActionRun(), Action\SERVICE, and ActionService\START.

Here is the call graph for this function:

◆ getActionStop()

getActionStop ( $sName)
static

Generates an action string to stop a service.

Parameters
string$sNameThe name of the service to stop.
Returns
string The generated action string for stopping the service.

Definition at line 50 of file class.tpl.service.php.

References TplApp\getActionRun(), Action\SERVICE, and ActionService\STOP.

Here is the call graph for this function:

◆ getItemInstall()

getItemInstall ( $sName)
static

Generates a menu item to install a service.

Parameters
string$sNameThe name of the service to install.
Returns
string The generated menu item string for installing the service.

Definition at line 152 of file class.tpl.service.php.

153 {
154 global $bearsamppLang;
155
158 array($sName, ActionService::INSTALL),
160 );
161 }
global $bearsamppLang
const MENU_INSTALL_SERVICE
const GLYPH_SERVICE_INSTALL

References $bearsamppLang, TplApp\getActionRun(), TplAestan\GLYPH_SERVICE_INSTALL, ActionService\INSTALL, Lang\MENU_INSTALL_SERVICE, and Action\SERVICE.

Here is the call graph for this function:

◆ getItemRemove()

getItemRemove ( $sName)
static

Generates a menu item to remove a service.

Parameters
string$sNameThe name of the service to remove.
Returns
string The generated menu item string for removing the service.

Definition at line 170 of file class.tpl.service.php.

171 {
172 global $bearsamppLang;
173
176 array($sName, ActionService::REMOVE),
178 );
179 }
const MENU_REMOVE_SERVICE
const GLYPH_SERVICE_REMOVE

References $bearsamppLang, TplApp\getActionRun(), TplAestan\GLYPH_SERVICE_REMOVE, Lang\MENU_REMOVE_SERVICE, ActionService\REMOVE, and Action\SERVICE.

Here is the call graph for this function:

◆ getItemRestart()

getItemRestart ( $sName)
static

Generates a menu item to restart a service.

Parameters
string$sNameThe name of the service to restart.
Returns
string The generated menu item string for restarting the service.

Definition at line 134 of file class.tpl.service.php.

135 {
136 global $bearsamppLang;
137
140 array($sName, ActionService::RESTART),
142 );
143 }
const MENU_RESTART_SERVICE

References $bearsamppLang, TplApp\getActionRun(), TplAestan\GLYPH_RELOAD, Lang\MENU_RESTART_SERVICE, ActionService\RESTART, and Action\SERVICE.

Here is the call graph for this function:

◆ getItemStart()

getItemStart ( $sName)
static

Generates a menu item to start a service.

Parameters
string$sNameThe name of the service to start.
Returns
string The generated menu item string for starting the service.

Definition at line 98 of file class.tpl.service.php.

99 {
100 global $bearsamppLang;
101
104 array($sName, ActionService::START),
106 );
107 }
const MENU_START_SERVICE

References $bearsamppLang, TplApp\getActionRun(), TplAestan\GLYPH_START, Lang\MENU_START_SERVICE, Action\SERVICE, and ActionService\START.

Here is the call graph for this function:

◆ getItemStop()

getItemStop ( $sName)
static

Generates a menu item to stop a service.

Parameters
string$sNameThe name of the service to stop.
Returns
string The generated menu item string for stopping the service.

Definition at line 116 of file class.tpl.service.php.

117 {
118 global $bearsamppLang;
119
122 array($sName, ActionService::STOP),
124 );
125 }
const MENU_STOP_SERVICE

References $bearsamppLang, TplApp\getActionRun(), TplAestan\GLYPH_STOP, Lang\MENU_STOP_SERVICE, Action\SERVICE, and ActionService\STOP.

Here is the call graph for this function:

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