Bearsampp
2026.7.11
Toggle main menu visibility
Loading...
Searching...
No Matches
class.tpl.app.reload.php
Go to the documentation of this file.
1
<?php
2
6
class
TplAppReload
7
{
11
const
ACTION
=
'reload'
;
12
24
public
static
function
process
(): array
25
{
26
global
$bearsamppLang
;
27
return
TplApp::getActionMulti
(
28
self::ACTION,
29
null
,
30
[
$bearsamppLang
->getValue(
Lang::RELOAD
),
TplAestan::GLYPH_RELOAD
],
31
false
,
32
get_called_class()
33
);
34
}
35
44
public
static
function
getActionReload
(): string
45
{
46
return
implode(
"\n"
, [
47
TplApp::getActionRun
(
Action::RELOAD
),
48
'Action: resetservices'
,
49
'Action: readconfig'
50
]);
51
}
52
63
public
static
function
triggerReload
($args =
null
): string
64
{
65
Log::trace
(
'ENTERING triggerReload..'
);
66
67
try
{
68
new
ActionReload
($args);
69
$actionContent =
self::getActionReload
();
70
Log::trace
(
'Generated reload actions: '
. $actionContent);
71
return
$actionContent;
72
73
}
catch
(Exception $e) {
74
Log::error
(
'Reload failed: '
. $e->getMessage());
75
return
''
;
76
}
77
}
78
}
79
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Action\RELOAD
const RELOAD
Definition
class.action.php:43
ActionReload
Definition
class.action.reload.php:18
Lang\RELOAD
const RELOAD
Definition
class.lang.php:64
Log\trace
static trace($data, $file=null)
Definition
class.log.php:605
Log\error
static error($data, $file=null)
Definition
class.log.php:650
TplAestan\GLYPH_RELOAD
const GLYPH_RELOAD
Definition
class.tpl.aestan.php:60
TplApp\getActionMulti
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
Definition
class.tpl.app.php:152
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:115
TplAppReload
Definition
class.tpl.app.reload.php:7
TplAppReload\process
static process()
Definition
class.tpl.app.reload.php:24
TplAppReload\triggerReload
static triggerReload($args=null)
Definition
class.tpl.app.reload.php:63
TplAppReload\getActionReload
static getActionReload()
Definition
class.tpl.app.reload.php:44
TplAppReload\ACTION
const ACTION
Definition
class.tpl.app.reload.php:11
sandbox
core
classes
tpls
app
class.tpl.app.reload.php
Generated by
1.17.0