2024.8.23
|
Static Public Member Functions | |
static | getActionEnablePhp ($enable) |
static | getActionSwitchPhpExtension ($extension, $switch) |
static | getActionSwitchPhpSetting ($setting, $enabled) |
static | getActionSwitchPhpVersion ($version) |
static | getMenuPhp () |
static | getMenuPhpExtensions () |
static | getMenuPhpSettings () |
static | getMenuPhpVersions () |
static | process () |
Data Fields | |
const | ACTION_ENABLE = 'enablePhp' |
const | ACTION_SWITCH_EXTENSION = 'switchPhpExtension' |
const | ACTION_SWITCH_SETTING = 'switchPhpSetting' |
const | ACTION_SWITCH_VERSION = 'switchPhpVersion' |
const | MENU = 'php' |
const | MENU_EXTENSIONS = 'phpExtensions' |
const | MENU_SETTINGS = 'phpSettings' |
const | MENU_VERSIONS = 'phpVersions' |
Static Private Member Functions | |
static | getSubmenuPhpSettings ($passThr=array(), $result=array(), $settings=array(), $sectionCall=true) |
Definition at line 10 of file class.tpl.app.php.php.
|
static |
Generates the action to enable or disable PHP.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The enable flag (1 to enable, 0 to disable). |
Definition at line 143 of file class.tpl.app.php.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to switch a PHP extension.
string | $extension | The PHP extension to switch. |
string | $switch | The current state of the extension (on or off). |
Definition at line 335 of file class.tpl.app.php.php.
References TplAppReload\getActionReload(), TplService\getActionRestart(), TplApp\getActionRun(), BinApache\SERVICE_NAME, ActionSwitchPhpExtension\SWITCH_OFF, ActionSwitchPhpExtension\SWITCH_ON, and Action\SWITCH_PHP_EXTENSION.
|
static |
Generates the action to switch a PHP setting.
string | $setting | The PHP setting to switch. |
bool | $enabled | The current state of the setting (true if enabled, false otherwise). |
Definition at line 289 of file class.tpl.app.php.php.
References TplAppReload\getActionReload(), TplService\getActionRestart(), TplApp\getActionRun(), BinApache\SERVICE_NAME, ActionSwitchPhpParam\SWITCH_OFF, ActionSwitchPhpParam\SWITCH_ON, and Action\SWITCH_PHP_PARAM.
|
static |
Generates the action to switch the PHP version.
@global object $bearsamppBins Provides access to system binaries and their configurations.
string | $version | The PHP version to switch to. |
Definition at line 160 of file class.tpl.app.php.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the PHP menu items and actions.
@global object $bearsamppBins Provides access to system binaries and their configurations. @global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 45 of file class.tpl.app.php.php.
References $bearsamppBins, $bearsamppLang, Config\DISABLED, Lang\DOWNLOAD_MORE, Config\ENABLED, Lang\EXTENSIONS, TplApp\getActionMulti(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAestan\getItemSeparator(), TplApp\getMenu(), Util\getWebsiteUrl(), TplAestan\GLYPH_BROWSER, TplAestan\GLYPH_CHECK, Lang\MENU_ENABLE, Lang\MENU_ERROR_LOGS, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, Lang\SETTINGS, and Lang\VERSIONS.
|
static |
Generates the PHP extensions menu items and actions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 304 of file class.tpl.app.php.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, and ActionSwitchPhpExtension\SWITCH_ON.
|
static |
Generates the PHP settings menu items and actions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 175 of file class.tpl.app.php.php.
References $bearsamppBins, TplApp\getActionMulti(), getSubmenuPhpSettings(), TplAestan\GLYPH_CHECK, TplAestan\GLYPH_FOLDER_CLOSE, TplAestan\GLYPH_WARNING, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the PHP versions menu items and actions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 103 of file class.tpl.app.php.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplAestan\GLYPH_WARNING, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
staticprivate |
Generates the submenu items and actions for PHP settings.
@global object $bearsamppBins Provides access to system binaries and their configurations.
array | $passThr | The pass-through array for nested settings. |
array | $result | The result array to store submenu items. |
array | $settings | The settings array to process. |
bool | $sectionCall | Whether to generate section calls or content. |
Definition at line 231 of file class.tpl.app.php.php.
References $bearsamppBins, $result, TplApp\getActionMulti(), getSubmenuPhpSettings(), TplAestan\GLYPH_CHECK, TplAestan\GLYPH_FOLDER_CLOSE, TplAestan\GLYPH_WARNING, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
Referenced by getMenuPhpSettings(), and getSubmenuPhpSettings().
|
static |
Processes the PHP menu and returns the menu items and actions.
@global object $bearsamppLang Provides language support for retrieving language-specific values. @global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 30 of file class.tpl.app.php.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\PHP.
Referenced by TplApp\getSectionMenuLeft().
const TplAppPhp::ACTION_ENABLE = 'enablePhp' |
Definition at line 17 of file class.tpl.app.php.php.
const TplAppPhp::ACTION_SWITCH_EXTENSION = 'switchPhpExtension' |
Definition at line 20 of file class.tpl.app.php.php.
const TplAppPhp::ACTION_SWITCH_SETTING = 'switchPhpSetting' |
Definition at line 19 of file class.tpl.app.php.php.
const TplAppPhp::ACTION_SWITCH_VERSION = 'switchPhpVersion' |
Definition at line 18 of file class.tpl.app.php.php.
const TplAppPhp::MENU = 'php' |
Definition at line 12 of file class.tpl.app.php.php.
const TplAppPhp::MENU_EXTENSIONS = 'phpExtensions' |
Definition at line 15 of file class.tpl.app.php.php.
const TplAppPhp::MENU_SETTINGS = 'phpSettings' |
Definition at line 14 of file class.tpl.app.php.php.
const TplAppPhp::MENU_VERSIONS = 'phpVersions' |
Definition at line 13 of file class.tpl.app.php.php.