2024.8.23
Loading...
Searching...
No Matches
class.tpl.app.clearFolders.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 TplAppClearFolders
12
*
13
* This class provides a method to generate an action string for clearing folders within the Bearsampp application.
14
*/
15
class
TplAppClearFolders
16
{
17
/**
18
* Generates an action string to clear folders.
19
*
20
* This method constructs and returns an action string that triggers the `CLEAR_FOLDERS` action.
21
* The action string includes the caption and glyph for the menu item, which are retrieved from the language settings.
22
*
23
* @global object $bearsamppLang Provides language support for retrieving language-specific values.
24
*
25
* @return string The generated action string for clearing folders.
26
*/
27
public
static
function
process
()
28
{
29
global
$bearsamppLang
;
30
31
return
TplApp::getActionRun
(
32
Action::CLEAR_FOLDERS
,
33
null
,
34
array(
$bearsamppLang
->getValue(
Lang::MENU_CLEAR_FOLDERS
),
TplAestan::GLYPH_TRASHCAN
)
35
);
36
}
37
}
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Action\CLEAR_FOLDERS
const CLEAR_FOLDERS
Definition
class.action.php:24
Lang\MENU_CLEAR_FOLDERS
const MENU_CLEAR_FOLDERS
Definition
class.lang.php:95
TplAestan\GLYPH_TRASHCAN
const GLYPH_TRASHCAN
Definition
class.tpl.aestan.php:76
TplAppClearFolders
Definition
class.tpl.app.clearFolders.php:16
TplAppClearFolders\process
static process()
Definition
class.tpl.app.clearFolders.php:27
TplApp\getActionRun
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
Definition
class.tpl.app.php:115
Bearsampp-development
sandbox
core
classes
tpls
app
class.tpl.app.clearFolders.php
Generated by
1.11.0