Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.tpl.app.launchStartup.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
17{
18 // Constant for the launch startup action identifier
19 const ACTION = 'launchStartup';
20
32 public static function process()
33 {
34 global $bearsamppLang;
35
36 $isLaunchStartup = Util::isLaunchStartup();
38 self::ACTION, array($isLaunchStartup ? Config::DISABLED : Config::ENABLED),
39 array($bearsamppLang->getValue(Lang::MENU_LAUNCH_STARTUP), $isLaunchStartup ? TplAestan::GLYPH_CHECK : ''),
40 false, get_called_class()
41 );
42 }
43
55 public static function getActionLaunchStartup($launchStartup)
56 {
57 return TplApp::getActionRun(Action::LAUNCH_STARTUP, array($launchStartup)) . PHP_EOL .
59 }
60}
global $bearsamppLang
const LAUNCH_STARTUP
const DISABLED
const ENABLED
const MENU_LAUNCH_STARTUP
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
static getActionLaunchStartup($launchStartup)
static isLaunchStartup()