2024.8.23
Loading...
Searching...
No Matches
class.tpl.app.browser.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 TplAppBrowser
12 *
13 * This class provides methods to generate actions and menu items for changing the browser in the Bearsampp application.
14 * It includes functionalities for creating change browser actions and processing change browser commands.
15 */
17{
18 // Constant for the change browser action identifier
19 const ACTION = 'changeBrowser';
20
21 /**
22 * Generates the change browser menu item and associated actions.
23 *
24 * This method creates a menu item for changing the browser and defines the actions to be taken
25 * when the change browser menu item is selected. It uses the global language object to retrieve the localized
26 * string for the change browser action.
27 *
28 * @global object $bearsamppLang Provides language support for retrieving language-specific values.
29 *
30 * @return array The generated menu item and actions for changing the browser.
31 */
32 public static function process()
33 {
34 global $bearsamppLang;
35
37 self::ACTION, null,
39 false, get_called_class()
40 );
41 }
42
43 /**
44 * Generates the action to change the browser.
45 *
46 * This method creates the action string for changing the browser. It includes commands to reload the application
47 * after changing the browser. The action string is used to define what happens when the change browser action is triggered.
48 *
49 * @return string The generated action string for changing the browser.
50 */
51 public static function getActionChangeBrowser()
52 {
55 }
56}
global $bearsamppLang
const CHANGE_BROWSER
const CHANGE_BROWSER_TITLE
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)