Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
class.tpl.app.launchStartup.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
16
class
TplAppLaunchStartup
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
();
37
38
return
TplApp::getActionMulti
(
39
self::ACTION,
40
array($isLaunchStartup ?
Config::DISABLED
:
Config::ENABLED
),
41
array(
$bearsamppLang
->getValue(
Lang::MENU_LAUNCH_STARTUP
), $isLaunchStartup ?
TplAestan::GLYPH_CHECK
:
''
),
42
false
,
43
get_called_class()
44
);
45
}
46
58
public
static
function
getActionLaunchStartup
($launchStartup)
59
{
60
return
TplApp::getActionRun
(
Action::LAUNCH_STARTUP
, array($launchStartup)) . PHP_EOL .
61
TplAppReload::getActionReload
() . PHP_EOL;
62
}
63
}
64
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Action\LAUNCH_STARTUP
const LAUNCH_STARTUP
Definition
class.action.php:36
Config\DISABLED
const DISABLED
Definition
class.config.php:36
Config\ENABLED
const ENABLED
Definition
class.config.php:35
Lang\MENU_LAUNCH_STARTUP
const MENU_LAUNCH_STARTUP
Definition
class.lang.php:102
TplAestan\GLYPH_CHECK
const GLYPH_CHECK
Definition
class.tpl.aestan.php:61
TplApp\getActionMulti
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
Definition
class.tpl.app.php:153
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:116
TplAppLaunchStartup
Definition
class.tpl.app.launchStartup.php:17
TplAppLaunchStartup\process
static process()
Definition
class.tpl.app.launchStartup.php:32
TplAppLaunchStartup\getActionLaunchStartup
static getActionLaunchStartup($launchStartup)
Definition
class.tpl.app.launchStartup.php:58
TplAppLaunchStartup\ACTION
const ACTION
Definition
class.tpl.app.launchStartup.php:19
TplAppReload\getActionReload
static getActionReload()
Definition
class.tpl.app.reload.php:47
Util\isLaunchStartup
static isLaunchStartup()
Definition
class.util.php:392
sandbox
core
classes
tpls
app
class.tpl.app.launchStartup.php
Generated by
1.17.0