Bearsampp 2026.9.23
Loading...
Searching...
No Matches
class.tpl.app.online.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
18{
19 // Constant for the status action identifier
20 const ACTION = 'status';
21
34 public static function process()
35 {
37
39 self::ACTION,
42 false,
43 get_called_class()
44 );
45 }
46
58 public static function getActionStatus($status)
59 {
60 return TplApp::getActionRun(Action::SWITCH_ONLINE, array($status)) . PHP_EOL .
63 }
64}
65
global $bearsamppLang
const SWITCH_ONLINE
const DISABLED
const ENABLED
const MENU_PUT_ONLINE
const MENU_PUT_OFFLINE
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
static getActionStatus($status)
static getActionRestart($sName)
global $bearsamppConfig
Definition homepage.php:46