Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
class.tpl.app.reload.php
Go to the documentation of this file.
1
<?php
2
8
class
TplAppReload
9
{
13
const
ACTION
=
'reload'
;
14
26
public
static
function
process
(): array
27
{
28
global
$bearsamppLang
;
29
30
return
TplApp::getActionMulti
(
31
self::ACTION,
32
null
,
33
[
$bearsamppLang
->getValue(
Lang::RELOAD
),
TplAestan::GLYPH_RELOAD
],
34
false
,
35
get_called_class()
36
);
37
}
38
47
public
static
function
getActionReload
(): string
48
{
49
return
implode(
"\n"
, [
50
TplApp::getActionRun
(
Action::RELOAD
),
51
'Action: resetservices'
,
52
'Action: readconfig'
53
]);
54
}
55
66
public
static
function
triggerReload
($args =
null
): string
67
{
68
Log::trace
(
'ENTERING triggerReload..'
);
69
70
try
{
71
new
ActionReload
($args);
72
$actionContent =
self::getActionReload
();
73
Log::trace
(
'Generated reload actions: '
. $actionContent);
74
75
return
$actionContent;
76
}
catch
(Exception $e) {
77
Log::error
(
'Reload failed: '
. $e->getMessage());
78
79
return
''
;
80
}
81
}
82
}
83
$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:63
Log\trace
static trace($data, $file=null)
Definition
class.log.php:715
Log\error
static error($data, $file=null)
Definition
class.log.php:760
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:153
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:116
TplAppReload
Definition
class.tpl.app.reload.php:9
TplAppReload\process
static process()
Definition
class.tpl.app.reload.php:26
TplAppReload\triggerReload
static triggerReload($args=null)
Definition
class.tpl.app.reload.php:66
TplAppReload\getActionReload
static getActionReload()
Definition
class.tpl.app.reload.php:47
TplAppReload\ACTION
const ACTION
Definition
class.tpl.app.reload.php:13
sandbox
core
classes
tpls
app
class.tpl.app.reload.php
Generated by
1.17.0