Bearsampp
2026.7.11
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-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
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
, array($verbose),
68
array($caption, $verbose ==
$bearsamppConfig
->getLogsVerbose() ?
TplAestan::GLYPH_CHECK
:
''
),
69
false
, get_called_class()
70
);
71
72
// Item
73
$items .= $tplSwitchLogsVerbose[
TplApp::SECTION_CALL
] . PHP_EOL;
74
75
// Action
76
$actions .= PHP_EOL . $tplSwitchLogsVerbose[
TplApp::SECTION_CONTENT
] . PHP_EOL;
77
}
78
79
return
$items . $actions;
80
}
81
92
public
static
function
getActionSwitchLogsVerbose
($verbose)
93
{
94
return
TplApp::getActionRun
(
Action::SWITCH_LOGS_VERBOSE
, array($verbose)) . PHP_EOL .
95
TplAppReload::getActionReload
();
96
}
97
}
98
$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:56
Lang\VERBOSE_REPORT
const VERBOSE_REPORT
Definition
class.lang.php:76
Lang\VERBOSE_SIMPLE
const VERBOSE_SIMPLE
Definition
class.lang.php:77
Lang\VERBOSE_TRACE
const VERBOSE_TRACE
Definition
class.lang.php:78
Lang\VERBOSE_DEBUG
const VERBOSE_DEBUG
Definition
class.lang.php:75
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:152
TplApp\getMenu
static getMenu($caption, $menu, $class)
Definition
class.tpl.app.php:190
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:115
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:92
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:44
$bearsamppConfig
global $bearsamppConfig
Definition
homepage.php:41
sandbox
core
classes
tpls
app
class.tpl.app.logsVerbose.php
Generated by
1.17.0