2024.8.23
Loading...
Searching...
No Matches
TplAppApps Class Reference

Static Public Member Functions

static getMenuApps ()
 
static process ()
 

Data Fields

const MENU = 'apps'
 

Detailed Description

Class TplAppApps

This class provides methods to generate and manage the "Apps" menu within the Bearsampp application. It includes functionalities for creating the menu and adding specific application links.

Definition at line 16 of file class.tpl.app.apps.php.

Member Function Documentation

◆ getMenuApps()

static TplAppApps::getMenuApps ( )
static

Generates the content of the "Apps" menu.

This method generates the content of the "Apps" menu by adding links to various applications such as Adminer, phpMyAdmin, phpPgAdmin, and Webgrind.

@global object $bearsamppLang Provides language support for retrieving language-specific values.

Returns
string The generated menu content as a concatenated string.

Definition at line 49 of file class.tpl.app.apps.php.

50 {
51 global $bearsamppLang;
52
55 'adminer/',
56 true
57 ) . PHP_EOL .
60 'phpmyadmin/',
61 true
62 ) . PHP_EOL .
65 'phppgadmin/',
66 true
67 ) . PHP_EOL .
70 'webgrind/',
71 true
72 );
73 }
global $bearsamppLang
const PHPPGADMIN
const ADMINER
const WEBGRIND
const PHPMYADMIN
static getItemLink($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE)

References $bearsamppLang, Lang\ADMINER, TplAestan\getItemLink(), Lang\PHPMYADMIN, Lang\PHPPGADMIN, and Lang\WEBGRIND.

◆ process()

static TplAppApps::process ( )
static

Processes and generates the "Apps" menu.

This method generates the "Apps" menu by calling the getMenu method from the TplApp class.

@global object $bearsamppLang Provides language support for retrieving language-specific values.

Returns
array An array containing the call string and the menu content.

Definition at line 32 of file class.tpl.app.apps.php.

33 {
34 global $bearsamppLang;
35
36 return TplApp::getMenu($bearsamppLang->getValue(Lang::APPS), self::MENU, get_called_class());
37 }
const APPS
static getMenu($caption, $menu, $class)

References $bearsamppLang, Lang\APPS, and TplApp\getMenu().

Referenced by TplApp\getSectionMenuLeft().

+ Here is the caller graph for this function:

Field Documentation

◆ MENU

const TplAppApps::MENU = 'apps'

Constant representing the menu identifier for apps.

Definition at line 21 of file class.tpl.app.apps.php.


The documentation for this class was generated from the following file: