2024.8.23
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
11{
12 /**
13 * Generates an action string to create a service.
14 *
15 * @param string $sName The name of the service to create.
16 * @return string The generated action string for creating the service.
17 */
18 public static function getActionCreate($sName)
19 {
21 }
22
23 /**
24 * Generates an action string to start a service.
25 *
26 * @param string $sName The name of the service to start.
27 * @return string The generated action string for starting the service.
28 */
29 public static function getActionStart($sName)
30 {
32 }
33
34 /**
35 * Generates an action string to stop a service.
36 *
37 * @param string $sName The name of the service to stop.
38 * @return string The generated action string for stopping the service.
39 */
40 public static function getActionStop($sName)
41 {
43 }
44
45 /**
46 * Generates an action string to restart a service.
47 *
48 * @param string $sName The name of the service to restart.
49 * @return string The generated action string for restarting the service.
50 */
51 public static function getActionRestart($sName)
52 {
54 }
55
56 /**
57 * Generates an action string to install a service.
58 *
59 * @param string $sName The name of the service to install.
60 * @return string The generated action string for installing the service.
61 */
62 public static function getActionInstall($sName)
63 {
65 }
66
67 /**
68 * Generates an action string to remove a service.
69 *
70 * @param string $sName The name of the service to remove.
71 * @return string The generated action string for removing the service.
72 */
73 public static function getActionRemove($sName)
74 {
76 }
77
78 /**
79 * Generates a menu item to start a service.
80 *
81 * @param string $sName The name of the service to start.
82 * @return string The generated menu item string for starting the service.
83 */
84 public static function getItemStart($sName)
85 {
86 global $bearsamppLang;
87
91 );
92 }
93
94 /**
95 * Generates a menu item to stop a service.
96 *
97 * @param string $sName The name of the service to stop.
98 * @return string The generated menu item string for stopping the service.
99 */
100 public static function getItemStop($sName)
101 {
102 global $bearsamppLang;
103
105 Action::SERVICE, array($sName, ActionService::STOP),
107 );
108 }
109
110 /**
111 * Generates a menu item to restart a service.
112 *
113 * @param string $sName The name of the service to restart.
114 * @return string The generated menu item string for restarting the service.
115 */
116 public static function getItemRestart($sName)
117 {
118 global $bearsamppLang;
119
123 );
124 }
125
126 /**
127 * Generates a menu item to install a service.
128 *
129 * @param string $sName The name of the service to install.
130 * @return string The generated menu item string for installing the service.
131 */
132 public static function getItemInstall($sName)
133 {
134 global $bearsamppLang;
135
139 );
140 }
141
142 /**
143 * Generates a menu item to remove a service.
144 *
145 * @param string $sName The name of the service to remove.
146 * @return string The generated menu item string for removing the service.
147 */
148 public static function getItemRemove($sName)
149 {
150 global $bearsamppLang;
151
155 );
156 }
157}
global $bearsamppLang
const SERVICE
const MENU_INSTALL_SERVICE
const MENU_STOP_SERVICE
const MENU_REMOVE_SERVICE
const MENU_RESTART_SERVICE
const MENU_START_SERVICE
const GLYPH_SERVICE_REMOVE
const GLYPH_SERVICE_INSTALL
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
static getItemStart($sName)
static getActionStart($sName)
static getItemRestart($sName)
static getActionStop($sName)
static getItemRemove($sName)
static getActionRestart($sName)
static getItemStop($sName)
static getItemInstall($sName)
static getActionCreate($sName)
static getActionRemove($sName)
static getActionInstall($sName)