2024.8.23
Loading...
Searching...
No Matches
class.tpl.app.apps.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
10
/**
11
* Class TplAppApps
12
*
13
* This class provides methods to generate and manage the "Apps" menu within the Bearsampp application.
14
* It includes functionalities for creating the menu and adding specific application links.
15
*/
16
class
TplAppApps
17
{
18
/**
19
* Constant representing the menu identifier for apps.
20
*/
21
const
MENU
=
'apps'
;
22
23
/**
24
* Processes and generates the "Apps" menu.
25
*
26
* This method generates the "Apps" menu by calling the `getMenu` method from the `TplApp` class.
27
*
28
* @global object $bearsamppLang Provides language support for retrieving language-specific values.
29
*
30
* @return array An array containing the call string and the menu content.
31
*/
32
public
static
function
process
()
33
{
34
global
$bearsamppLang
;
35
36
return
TplApp::getMenu
(
$bearsamppLang
->getValue(
Lang::APPS
), self::MENU, get_called_class());
37
}
38
39
/**
40
* Generates the content of the "Apps" menu.
41
*
42
* This method generates the content of the "Apps" menu by adding links to various applications
43
* such as Adminer, phpMyAdmin, phpPgAdmin, and Webgrind.
44
*
45
* @global object $bearsamppLang Provides language support for retrieving language-specific values.
46
*
47
* @return string The generated menu content as a concatenated string.
48
*/
49
public
static
function
getMenuApps
()
50
{
51
global
$bearsamppLang
;
52
53
return
TplAestan::getItemLink
(
54
$bearsamppLang
->getValue(
Lang::ADMINER
),
55
'adminer/'
,
56
true
57
) . PHP_EOL .
58
TplAestan::getItemLink
(
59
$bearsamppLang
->getValue(
Lang::PHPMYADMIN
),
60
'phpmyadmin/'
,
61
true
62
) . PHP_EOL .
63
TplAestan::getItemLink
(
64
$bearsamppLang
->getValue(
Lang::PHPPGADMIN
),
65
'phppgadmin/'
,
66
true
67
) . PHP_EOL .
68
TplAestan::getItemLink
(
69
$bearsamppLang
->getValue(
Lang::WEBGRIND
),
70
'webgrind/'
,
71
true
72
);
73
}
74
}
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Lang\PHPPGADMIN
const PHPPGADMIN
Definition
class.lang.php:143
Lang\APPS
const APPS
Definition
class.lang.php:31
Lang\ADMINER
const ADMINER
Definition
class.lang.php:142
Lang\WEBGRIND
const WEBGRIND
Definition
class.lang.php:141
Lang\PHPMYADMIN
const PHPMYADMIN
Definition
class.lang.php:140
TplAestan\getItemLink
static getItemLink($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE)
Definition
class.tpl.aestan.php:177
TplAppApps
Definition
class.tpl.app.apps.php:17
TplAppApps\MENU
const MENU
Definition
class.tpl.app.apps.php:21
TplAppApps\process
static process()
Definition
class.tpl.app.apps.php:32
TplAppApps\getMenuApps
static getMenuApps()
Definition
class.tpl.app.apps.php:49
TplApp\getMenu
static getMenu($caption, $menu, $class)
Definition
class.tpl.app.php:190
Bearsampp-development
sandbox
core
classes
tpls
app
class.tpl.app.apps.php
Generated by
1.11.0