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
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 {
25
27 sprintf($bearsamppLang->getValue(Lang::MENU_EDIT_CONF), "bearsampp.conf"),
28 $bearsamppRoot->getConfigFilePath()
29 ) . PHP_EOL;
30 }
31}
global $bearsamppLang
global $bearsamppRoot
const MENU_EDIT_CONF
static getItemNotepad($caption, $path)