Bearsampp
2026.7.11
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-2024 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
10
class
TplService
11
{
18
public
static
function
getActionCreate
($sName)
19
{
20
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::CREATE
));
21
}
22
29
public
static
function
getActionStart
($sName)
30
{
31
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::START
));
32
}
33
40
public
static
function
getActionStop
($sName)
41
{
42
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::STOP
));
43
}
44
51
public
static
function
getActionRestart
($sName)
52
{
53
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::RESTART
));
54
}
55
62
public
static
function
getActionInstall
($sName)
63
{
64
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::INSTALL
));
65
}
66
73
public
static
function
getActionRemove
($sName)
74
{
75
return
TplApp::getActionRun
(
Action::SERVICE
, array($sName,
ActionService::REMOVE
));
76
}
77
84
public
static
function
getItemStart
($sName)
85
{
86
global
$bearsamppLang
;
87
88
return
TplApp::getActionRun
(
89
Action::SERVICE
, array($sName,
ActionService::START
),
90
array(
$bearsamppLang
->getValue(
Lang::MENU_START_SERVICE
),
TplAestan::GLYPH_START
)
91
);
92
}
93
100
public
static
function
getItemStop
($sName)
101
{
102
global
$bearsamppLang
;
103
104
return
TplApp::getActionRun
(
105
Action::SERVICE
, array($sName,
ActionService::STOP
),
106
array(
$bearsamppLang
->getValue(
Lang::MENU_STOP_SERVICE
),
TplAestan::GLYPH_STOP
)
107
);
108
}
109
116
public
static
function
getItemRestart
($sName)
117
{
118
global
$bearsamppLang
;
119
120
return
TplApp::getActionRun
(
121
Action::SERVICE
, array($sName,
ActionService::RESTART
),
122
array(
$bearsamppLang
->getValue(
Lang::MENU_RESTART_SERVICE
),
TplAestan::GLYPH_RELOAD
)
123
);
124
}
125
132
public
static
function
getItemInstall
($sName)
133
{
134
global
$bearsamppLang
;
135
136
return
TplApp::getActionRun
(
137
Action::SERVICE
, array($sName,
ActionService::INSTALL
),
138
array(
$bearsamppLang
->getValue(
Lang::MENU_INSTALL_SERVICE
),
TplAestan::GLYPH_SERVICE_INSTALL
)
139
);
140
}
141
148
public
static
function
getItemRemove
($sName)
149
{
150
global
$bearsamppLang
;
151
152
return
TplApp::getActionRun
(
153
Action::SERVICE
, array($sName,
ActionService::REMOVE
),
154
array(
$bearsamppLang
->getValue(
Lang::MENU_REMOVE_SERVICE
),
TplAestan::GLYPH_SERVICE_REMOVE
)
155
);
156
}
157
}
158
$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:119
Lang\MENU_INSTALL_SERVICE
const MENU_INSTALL_SERVICE
Definition
class.lang.php:102
Lang\MENU_RESTART_SERVICE
const MENU_RESTART_SERVICE
Definition
class.lang.php:111
Lang\MENU_START_SERVICE
const MENU_START_SERVICE
Definition
class.lang.php:116
Lang\MENU_REMOVE_SERVICE
const MENU_REMOVE_SERVICE
Definition
class.lang.php:110
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:115
TplService
Definition
class.tpl.service.php:11
TplService\getItemRestart
static getItemRestart($sName)
Definition
class.tpl.service.php:116
TplService\getActionRestart
static getActionRestart($sName)
Definition
class.tpl.service.php:51
TplService\getItemRemove
static getItemRemove($sName)
Definition
class.tpl.service.php:148
TplService\getActionRemove
static getActionRemove($sName)
Definition
class.tpl.service.php:73
TplService\getActionStop
static getActionStop($sName)
Definition
class.tpl.service.php:40
TplService\getItemInstall
static getItemInstall($sName)
Definition
class.tpl.service.php:132
TplService\getActionCreate
static getActionCreate($sName)
Definition
class.tpl.service.php:18
TplService\getItemStop
static getItemStop($sName)
Definition
class.tpl.service.php:100
TplService\getActionStart
static getActionStart($sName)
Definition
class.tpl.service.php:29
TplService\getItemStart
static getItemStart($sName)
Definition
class.tpl.service.php:84
TplService\getActionInstall
static getActionInstall($sName)
Definition
class.tpl.service.php:62
sandbox
core
classes
tpls
class.tpl.service.php
Generated by
1.17.0