Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
class.tpl.service.php
Go to the documentation of this file.
1
<?php
2
/*
3
* Copyright (c) 2021-2026 Bearsampp
4
* License: GNU General Public License version 3 or later; see LICENSE.txt
5
* Author: bear
6
* Website: https://bearsampp.com
7
* Github: https://github.com/Bearsampp
8
*/
9
17
class
TplService
18
{
26
public
static
function
getActionCreate
($sName)
27
{
28
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::CREATE
));
29
}
30
38
public
static
function
getActionStart
($sName)
39
{
40
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::START
));
41
}
42
50
public
static
function
getActionStop
($sName)
51
{
52
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::STOP
));
53
}
54
62
public
static
function
getActionRestart
($sName)
63
{
64
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::RESTART
));
65
}
66
74
public
static
function
getActionInstall
($sName)
75
{
76
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::INSTALL
));
77
}
78
86
public
static
function
getActionRemove
($sName)
87
{
88
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::REMOVE
));
89
}
90
98
public
static
function
getItemStart
($sName)
99
{
100
global
$bearsamppLang
;
101
102
return
TplApp::getActionRun
(
103
Action::SERVICE
,
104
array($sName,
ActionService::START
),
105
array(
$bearsamppLang
->getValue(
Lang::MENU_START_SERVICE
),
TplAestan::GLYPH_START
)
106
);
107
}
108
116
public
static
function
getItemStop
($sName)
117
{
118
global
$bearsamppLang
;
119
120
return
TplApp::getActionRun
(
121
Action::SERVICE
,
122
array($sName,
ActionService::STOP
),
123
array(
$bearsamppLang
->getValue(
Lang::MENU_STOP_SERVICE
),
TplAestan::GLYPH_STOP
)
124
);
125
}
126
134
public
static
function
getItemRestart
($sName)
135
{
136
global
$bearsamppLang
;
137
138
return
TplApp::getActionRun
(
139
Action::SERVICE
,
140
array($sName,
ActionService::RESTART
),
141
array(
$bearsamppLang
->getValue(
Lang::MENU_RESTART_SERVICE
),
TplAestan::GLYPH_RELOAD
)
142
);
143
}
144
152
public
static
function
getItemInstall
($sName)
153
{
154
global
$bearsamppLang
;
155
156
return
TplApp::getActionRun
(
157
Action::SERVICE
,
158
array($sName,
ActionService::INSTALL
),
159
array(
$bearsamppLang
->getValue(
Lang::MENU_INSTALL_SERVICE
),
TplAestan::GLYPH_SERVICE_INSTALL
)
160
);
161
}
162
170
public
static
function
getItemRemove
($sName)
171
{
172
global
$bearsamppLang
;
173
174
return
TplApp::getActionRun
(
175
Action::SERVICE
,
176
array($sName,
ActionService::REMOVE
),
177
array(
$bearsamppLang
->getValue(
Lang::MENU_REMOVE_SERVICE
),
TplAestan::GLYPH_SERVICE_REMOVE
)
178
);
179
}
180
}
181
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Action\SERVICE
const SERVICE
Definition
class.action.php:46
ActionService\REMOVE
const REMOVE
Definition
class.action.service.php:22
ActionService\STOP
const STOP
Definition
class.action.service.php:18
ActionService\INSTALL
const INSTALL
Definition
class.action.service.php:21
ActionService\START
const START
Definition
class.action.service.php:17
ActionService\RESTART
const RESTART
Definition
class.action.service.php:19
ActionService\CREATE
const CREATE
Definition
class.action.service.php:16
Lang\MENU_STOP_SERVICE
const MENU_STOP_SERVICE
Definition
class.lang.php:118
Lang\MENU_INSTALL_SERVICE
const MENU_INSTALL_SERVICE
Definition
class.lang.php:101
Lang\MENU_RESTART_SERVICE
const MENU_RESTART_SERVICE
Definition
class.lang.php:110
Lang\MENU_START_SERVICE
const MENU_START_SERVICE
Definition
class.lang.php:115
Lang\MENU_REMOVE_SERVICE
const MENU_REMOVE_SERVICE
Definition
class.lang.php:109
TplAestan\GLYPH_STOP
const GLYPH_STOP
Definition
class.tpl.aestan.php:59
TplAestan\GLYPH_SERVICE_REMOVE
const GLYPH_SERVICE_REMOVE
Definition
class.tpl.aestan.php:55
TplAestan\GLYPH_SERVICE_INSTALL
const GLYPH_SERVICE_INSTALL
Definition
class.tpl.aestan.php:56
TplAestan\GLYPH_START
const GLYPH_START
Definition
class.tpl.aestan.php:57
TplAestan\GLYPH_RELOAD
const GLYPH_RELOAD
Definition
class.tpl.aestan.php:60
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:116
TplService
Definition
class.tpl.service.php:18
TplService\getItemRestart
static getItemRestart($sName)
Definition
class.tpl.service.php:134
TplService\getActionRestart
static getActionRestart($sName)
Definition
class.tpl.service.php:62
TplService\getItemRemove
static getItemRemove($sName)
Definition
class.tpl.service.php:170
TplService\getActionRemove
static getActionRemove($sName)
Definition
class.tpl.service.php:86
TplService\getActionStop
static getActionStop($sName)
Definition
class.tpl.service.php:50
TplService\getItemInstall
static getItemInstall($sName)
Definition
class.tpl.service.php:152
TplService\getActionCreate
static getActionCreate($sName)
Definition
class.tpl.service.php:26
TplService\getItemStop
static getItemStop($sName)
Definition
class.tpl.service.php:116
TplService\getActionStart
static getActionStart($sName)
Definition
class.tpl.service.php:38
TplService\getItemStart
static getItemStart($sName)
Definition
class.tpl.service.php:98
TplService\getActionInstall
static getActionInstall($sName)
Definition
class.tpl.service.php:74
sandbox
core
classes
tpls
class.tpl.service.php
Generated by
1.17.0