Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
class.tpl.app.logsVerbose.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
17
class
TplAppLogsVerbose
18
{
19
// Constant for the logs verbosity menu identifier
20
const
MENU
=
'logsVerbose'
;
21
32
public
static
function
process
()
33
{
34
global
$bearsamppLang
;
35
36
return
TplApp::getMenu
(
$bearsamppLang
->getValue(
Lang::LOGS_VERBOSE
), self::MENU, get_called_class());
37
}
38
51
public
static
function
getMenuLogsVerbose
()
52
{
53
global
$bearsamppLang
,
$bearsamppConfig
;
54
55
$items =
''
;
56
$actions =
''
;
57
58
$verboses = array(
59
Config::VERBOSE_SIMPLE
=>
$bearsamppLang
->getValue(
Lang::VERBOSE_SIMPLE
),
60
Config::VERBOSE_REPORT
=>
$bearsamppLang
->getValue(
Lang::VERBOSE_REPORT
),
61
Config::VERBOSE_DEBUG
=>
$bearsamppLang
->getValue(
Lang::VERBOSE_DEBUG
),
62
Config::VERBOSE_TRACE
=>
$bearsamppLang
->getValue(
Lang::VERBOSE_TRACE
),
63
);
64
65
foreach
($verboses as
$verbose
=> $caption) {
66
$tplSwitchLogsVerbose =
TplApp::getActionMulti
(
67
Action::SWITCH_LOGS_VERBOSE
,
68
array(
$verbose
),
69
array($caption,
$verbose
==
$bearsamppConfig
->getLogsVerbose() ?
TplAestan::GLYPH_CHECK
:
''
),
70
false
,
71
get_called_class()
72
);
73
74
// Item
75
$items .= $tplSwitchLogsVerbose[
TplApp::SECTION_CALL
] . PHP_EOL;
76
77
// Action
78
$actions .= PHP_EOL . $tplSwitchLogsVerbose[
TplApp::SECTION_CONTENT
] . PHP_EOL;
79
}
80
81
return
$items . $actions;
82
}
83
94
public
static
function
getActionSwitchLogsVerbose
(
$verbose
)
95
{
96
return
TplApp::getActionRun
(
Action::SWITCH_LOGS_VERBOSE
, array(
$verbose
)) . PHP_EOL .
97
TplAppReload::getActionReload
();
98
}
99
}
100
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Action\SWITCH_LOGS_VERBOSE
const SWITCH_LOGS_VERBOSE
Definition
class.action.php:52
Config\VERBOSE_REPORT
const VERBOSE_REPORT
Definition
class.config.php:39
Config\VERBOSE_SIMPLE
const VERBOSE_SIMPLE
Definition
class.config.php:38
Config\VERBOSE_TRACE
const VERBOSE_TRACE
Definition
class.config.php:41
Config\VERBOSE_DEBUG
const VERBOSE_DEBUG
Definition
class.config.php:40
Lang\LOGS_VERBOSE
const LOGS_VERBOSE
Definition
class.lang.php:55
Lang\VERBOSE_REPORT
const VERBOSE_REPORT
Definition
class.lang.php:75
Lang\VERBOSE_SIMPLE
const VERBOSE_SIMPLE
Definition
class.lang.php:76
Lang\VERBOSE_TRACE
const VERBOSE_TRACE
Definition
class.lang.php:77
Lang\VERBOSE_DEBUG
const VERBOSE_DEBUG
Definition
class.lang.php:74
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\getMenu
static getMenu($caption, $menu, $class)
Definition
class.tpl.app.php:191
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:116
TplApp\SECTION_CALL
const SECTION_CALL
Definition
class.tpl.app.php:23
TplApp\SECTION_CONTENT
const SECTION_CONTENT
Definition
class.tpl.app.php:24
TplAppLogsVerbose
Definition
class.tpl.app.logsVerbose.php:18
TplAppLogsVerbose\getActionSwitchLogsVerbose
static getActionSwitchLogsVerbose($verbose)
Definition
class.tpl.app.logsVerbose.php:94
TplAppLogsVerbose\getMenuLogsVerbose
static getMenuLogsVerbose()
Definition
class.tpl.app.logsVerbose.php:51
TplAppLogsVerbose\MENU
const MENU
Definition
class.tpl.app.logsVerbose.php:20
TplAppLogsVerbose\process
static process()
Definition
class.tpl.app.logsVerbose.php:32
TplAppReload\getActionReload
static getActionReload()
Definition
class.tpl.app.reload.php:47
$bearsamppConfig
global $bearsamppConfig
Definition
homepage.php:46
$verbose
$verbose
Definition
pearcmd.php:167
sandbox
core
classes
tpls
app
class.tpl.app.logsVerbose.php
Generated by
1.17.0