2024.8.23
Loading...
Searching...
No Matches
class.tpl.app.EditConf.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
class
TplAppEditConf
11
{
12
/**
13
* Processes the request to edit the configuration file.
14
*
15
* This method generates a Notepad item string that allows the user to edit the `bearsampp.conf` file.
16
* It utilizes global variables to access language settings and the root path of the application.
17
*
18
* @global LangProc $bearsamppLang The language processor for retrieving localized strings.
19
* @global Root $bearsamppRoot The root object for accessing application paths.
20
* @return string The Notepad item string for editing the configuration file.
21
*/
22
public
static
function
process
()
23
{
24
global
$bearsamppLang
,
$bearsamppRoot
;
25
26
return
TplAestan::getItemNotepad
(
27
sprintf(
$bearsamppLang
->getValue(
Lang::MENU_EDIT_CONF
),
"bearsampp.conf"
),
28
$bearsamppRoot
->getConfigFilePath()
29
) . PHP_EOL;
30
}
31
}
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
$bearsamppRoot
global $bearsamppRoot
Definition
ajax.apache.php:16
Lang\MENU_EDIT_CONF
const MENU_EDIT_CONF
Definition
class.lang.php:97
TplAestan\getItemNotepad
static getItemNotepad($caption, $path)
Definition
class.tpl.aestan.php:200
TplAppEditConf
Definition
class.tpl.app.EditConf.php:11
TplAppEditConf\process
static process()
Definition
class.tpl.app.EditConf.php:22
Bearsampp-development
sandbox
core
classes
tpls
app
class.tpl.app.EditConf.php
Generated by
1.11.0