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

Static Public Member Functions

static getActionExit ()
 
static process ()
 

Data Fields

const ACTION = 'exit'
 

Detailed Description

Class TplAppExit

This class provides methods to handle the exit action within the Bearsampp application. It includes functionalities to process the exit action and generate the necessary action strings.

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

Member Function Documentation

◆ getActionExit()

static TplAppExit::getActionExit ( )
static

Generates the action string to execute the exit action.

This method generates a run action string for the quit action and appends the exit action.

Returns
string The generated action string for the exit action.

Definition at line 52 of file class.tpl.app.exit.php.

53 {
54 return TplApp::getActionRun(Action::QUIT) . PHP_EOL . 'Action: exit';
55 }
const QUIT
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)

References TplApp\getActionRun(), and Action\QUIT.

◆ process()

static TplAppExit::process ( )
static

Processes the exit action and generates the necessary action strings.

This method generates a multi-action string for the exit action, including the caption and glyph.

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

Returns
array An array containing the call string and the section content for the exit action.

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

33 {
34 global $bearsamppLang;
35
37 self::ACTION,
38 null,
40 false,
41 get_called_class()
42 );
43 }
global $bearsamppLang
const QUIT
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)

References $bearsamppLang, TplApp\getActionMulti(), TplAestan\GLYPH_EXIT, and Lang\QUIT.

Referenced by TplApp\getSectionMenuRight().

+ Here is the caller graph for this function:

Field Documentation

◆ ACTION

const TplAppExit::ACTION = 'exit'

Constant representing the exit action.

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


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