2024.8.23
|
Public Member Functions | |
__construct () | |
call ($actionName, $actionArgs=null) | |
exists () | |
process () | |
Data Fields | |
const | ABOUT = 'about' |
const | ADD_ALIAS = 'addAlias' |
const | ADD_VHOST = 'addVhost' |
const | CHANGE_BROWSER = 'changeBrowser' |
const | CHANGE_DB_ROOT_PWD = 'changeDbRootPwd' |
const | CHANGE_PORT = 'changePort' |
const | CHECK_PORT = 'checkPort' |
const | CHECK_VERSION = 'checkVersion' |
const | CLEAR_FOLDERS = 'clearFolders' |
const | DEBUG_APACHE = 'debugApache' |
const | DEBUG_MARIADB = 'debugMariadb' |
const | DEBUG_MYSQL = 'debugMysql' |
const | DEBUG_POSTGRESQL = 'debugPostgresql' |
const | EDIT_ALIAS = 'editAlias' |
const | EDIT_VHOST = 'editVhost' |
const | ENABLE = 'enable' |
const | EXEC = 'exec' |
const | EXT = 'ext' |
const | GEN_SSL_CERTIFICATE = 'genSslCertificate' |
const | LAUNCH_STARTUP = 'launchStartup' |
const | LOADING = 'loading' |
const | MANUAL_RESTART = 'manualRestart' |
const | QUIT = 'quit' |
const | REBUILD_INI = 'rebuildIni' |
const | REFRESH_REPOS = 'refreshRepos' |
const | REFRESH_REPOS_STARTUP = 'refreshReposStartup' |
const | RELOAD = 'reload' |
const | RESTART = 'restart' |
const | SERVICE = 'service' |
const | STARTUP = 'startup' |
const | SWITCH_APACHE_MODULE = 'switchApacheModule' |
const | SWITCH_LANG = 'switchLang' |
const | SWITCH_LOGS_VERBOSE = 'switchLogsVerbose' |
const | SWITCH_ONLINE = 'switchOnline' |
const | SWITCH_PHP_EXTENSION = 'switchPhpExtension' |
const | SWITCH_PHP_PARAM = 'switchPhpParam' |
const | SWITCH_VERSION = 'switchVersion' |
Private Attributes | |
$current | |
Class Action handles the execution of various actions based on command line arguments.
Definition at line 13 of file class.action.php.
Action::__construct | ( | ) |
Constructor for the Action class. Initializes the Action object.
Definition at line 64 of file class.action.php.
Action::call | ( | $actionName, | |
$actionArgs = null ) |
Calls a specific action by name with optional arguments.
This method constructs the action class name from the provided action name, checks if the class exists, and then initializes the action class with the provided arguments.
string | $actionName | The name of the action to call. |
mixed | $actionArgs | Optional arguments for the action. |
Definition at line 110 of file class.action.php.
References Util\logDebug().
Action::exists | ( | ) |
Checks if the action exists in the command line arguments.
This method verifies if the command line arguments contain an action by checking the presence and non-emptiness of the second argument.
Definition at line 127 of file class.action.php.
Referenced by process().
Action::process | ( | ) |
Processes the action based on command line arguments.
This method checks if an action exists in the command line arguments, cleans the argument, constructs the action class name, and then initializes the action class with the provided arguments.
Definition at line 78 of file class.action.php.
References Util\cleanArgv(), exists(), and Util\logDebug().
|
private |
Definition at line 58 of file class.action.php.
const Action::ABOUT = 'about' |
Definition at line 16 of file class.action.php.
Referenced by TplApp\getSectionMenuRight().
const Action::ADD_ALIAS = 'addAlias' |
Definition at line 17 of file class.action.php.
Referenced by TplAppApache\getActionAddAlias().
const Action::ADD_VHOST = 'addVhost' |
Definition at line 18 of file class.action.php.
Referenced by TplAppApache\getActionAddVhost().
const Action::CHANGE_BROWSER = 'changeBrowser' |
Definition at line 19 of file class.action.php.
Referenced by TplAppBrowser\getActionChangeBrowser().
const Action::CHANGE_DB_ROOT_PWD = 'changeDbRootPwd' |
Definition at line 20 of file class.action.php.
Referenced by TplAppMariadb\getActionChangeMariadbRootPwd(), TplAppMysql\getActionChangeMysqlRootPwd(), and TplAppPostgresql\getActionChangePostgresqlRootPwd().
const Action::CHANGE_PORT = 'changePort' |
Definition at line 21 of file class.action.php.
Referenced by TplAppApache\getActionChangeApachePort(), TplAppFilezilla\getActionChangeFilezillaPort(), TplAppMailhog\getActionChangeMailhogPort(), TplAppMailpit\getActionChangeMailpitPort(), TplAppMariadb\getActionChangeMariadbPort(), TplAppMemcached\getActionChangeMemcachedPort(), TplAppMysql\getActionChangeMysqlPort(), TplAppPostgresql\getActionChangePostgresqlPort(), and TplAppXlight\getActionChangeXlightPort().
const Action::CHECK_PORT = 'checkPort' |
Definition at line 22 of file class.action.php.
Referenced by TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlService(), and TplAppXlight\getMenuXlightService().
const Action::CHECK_VERSION = 'checkVersion' |
Definition at line 23 of file class.action.php.
Referenced by TplApp\getSectionMenuRight(), and TplApp\getSectionStartupAction().
const Action::CLEAR_FOLDERS = 'clearFolders' |
Definition at line 24 of file class.action.php.
Referenced by TplAppClearFolders\process().
const Action::DEBUG_APACHE = 'debugApache' |
Definition at line 25 of file class.action.php.
Referenced by TplAppApache\getMenuApacheDebug().
const Action::DEBUG_MARIADB = 'debugMariadb' |
Definition at line 26 of file class.action.php.
Referenced by TplAppMariadb\getMenuMariadbDebug().
const Action::DEBUG_MYSQL = 'debugMysql' |
Definition at line 27 of file class.action.php.
Referenced by TplAppMysql\getMenuMysqlDebug().
const Action::DEBUG_POSTGRESQL = 'debugPostgresql' |
Definition at line 28 of file class.action.php.
Referenced by TplAppPostgresql\getMenuPostgresqlDebug().
const Action::EDIT_ALIAS = 'editAlias' |
Definition at line 29 of file class.action.php.
Referenced by TplAppApache\getActionEditAlias().
const Action::EDIT_VHOST = 'editVhost' |
Definition at line 30 of file class.action.php.
Referenced by TplAppApache\getActionEditVhost().
const Action::ENABLE = 'enable' |
Definition at line 31 of file class.action.php.
Referenced by TplAppApache\getActionEnableApache(), TplAppFilezilla\getActionEnableFilezilla(), TplAppMailhog\getActionEnableMailhog(), TplAppMailpit\getActionEnableMailpit(), TplAppMariadb\getActionEnableMariadb(), TplAppMemcached\getActionEnableMemcached(), TplAppMysql\getActionEnableMysql(), TplAppNodejs\getActionEnableNodejs(), TplAppPhp\getActionEnablePhp(), TplAppPostgresql\getActionEnablePostgresql(), and TplAppXlight\getActionEnableXlight().
const Action::EXEC = 'exec' |
Definition at line 32 of file class.action.php.
Referenced by TplApp\getActionExec().
const Action::EXT = 'ext' |
Definition at line 53 of file class.action.php.
const Action::GEN_SSL_CERTIFICATE = 'genSslCertificate' |
Definition at line 33 of file class.action.php.
Referenced by TplAppTools\getActionGenSslCertificate().
const Action::LAUNCH_STARTUP = 'launchStartup' |
Definition at line 34 of file class.action.php.
Referenced by TplAppLaunchStartup\getActionLaunchStartup().
const Action::LOADING = 'loading' |
Definition at line 36 of file class.action.php.
Referenced by Util\startLoading().
const Action::MANUAL_RESTART = 'manualRestart' |
Definition at line 35 of file class.action.php.
const Action::QUIT = 'quit' |
Definition at line 37 of file class.action.php.
Referenced by TplAppExit\getActionExit().
const Action::REBUILD_INI = 'rebuildIni' |
Definition at line 38 of file class.action.php.
Referenced by TplAppRebuildIni\process().
const Action::REFRESH_REPOS = 'refreshRepos' |
Definition at line 39 of file class.action.php.
Referenced by TplAppGit\getActionRefreshGitRepos().
const Action::REFRESH_REPOS_STARTUP = 'refreshReposStartup' |
Definition at line 40 of file class.action.php.
Referenced by TplAppGit\getActionRefreshGitReposStartup().
const Action::RELOAD = 'reload' |
Definition at line 41 of file class.action.php.
Referenced by TplAppReload\getActionReload(), and ActionExt\procRefresh().
const Action::RESTART = 'restart' |
Definition at line 42 of file class.action.php.
Referenced by Batch\exitApp().
const Action::SERVICE = 'service' |
Definition at line 43 of file class.action.php.
Referenced by TplService\getActionCreate(), TplService\getActionInstall(), TplAppApache\getActionInstallApacheService(), TplAppFilezilla\getActionInstallFilezillaService(), TplAppMailhog\getActionInstallMailhogService(), TplAppMailpit\getActionInstallMailpitService(), TplAppMariadb\getActionInstallMariadbService(), TplAppMemcached\getActionInstallMemcachedService(), TplAppMysql\getActionInstallMysqlService(), TplAppPostgresql\getActionInstallPostgresqlService(), TplAppXlight\getActionInstallXlightService(), TplService\getActionRemove(), TplAppApache\getActionRemoveApacheService(), TplAppFilezilla\getActionRemoveFilezillaService(), TplAppMailhog\getActionRemoveMailhogService(), TplAppMailpit\getActionRemoveMailpitService(), TplAppMariadb\getActionRemoveMariadbService(), TplAppMemcached\getActionRemoveMemcachedService(), TplAppMysql\getActionRemoveMysqlService(), TplAppPostgresql\getActionRemovePostgresqlService(), TplAppXlight\getActionRemoveXlightService(), TplService\getActionRestart(), TplService\getActionStart(), TplService\getActionStop(), TplService\getItemInstall(), TplService\getItemRemove(), TplService\getItemRestart(), TplService\getItemStart(), and TplService\getItemStop().
const Action::STARTUP = 'startup' |
Definition at line 44 of file class.action.php.
Referenced by TplApp\getSectionStartupAction().
const Action::SWITCH_APACHE_MODULE = 'switchApacheModule' |
Definition at line 45 of file class.action.php.
Referenced by TplAppApache\getActionSwitchApacheModule().
const Action::SWITCH_LANG = 'switchLang' |
Definition at line 46 of file class.action.php.
Referenced by TplAppLang\getActionSwitchLang(), and TplAppLang\getMenuLang().
const Action::SWITCH_LOGS_VERBOSE = 'switchLogsVerbose' |
Definition at line 47 of file class.action.php.
Referenced by TplAppLogsVerbose\getActionSwitchLogsVerbose(), and TplAppLogsVerbose\getMenuLogsVerbose().
const Action::SWITCH_ONLINE = 'switchOnline' |
Definition at line 50 of file class.action.php.
Referenced by TplAppOnline\getActionStatus().
const Action::SWITCH_PHP_EXTENSION = 'switchPhpExtension' |
Definition at line 48 of file class.action.php.
Referenced by TplAppPhp\getActionSwitchPhpExtension().
const Action::SWITCH_PHP_PARAM = 'switchPhpParam' |
Definition at line 49 of file class.action.php.
Referenced by TplAppPhp\getActionSwitchPhpSetting().
const Action::SWITCH_VERSION = 'switchVersion' |
Definition at line 51 of file class.action.php.
Referenced by TplAppApache\getActionSwitchApacheVersion(), TplAppFilezilla\getActionSwitchFilezillaVersion(), TplAppMailhog\getActionSwitchMailhogVersion(), TplAppMailpit\getActionSwitchMailpitVersion(), TplAppMariadb\getActionSwitchMariadbVersion(), TplAppMemcached\getActionSwitchMemcachedVersion(), TplAppMysql\getActionSwitchMysqlVersion(), TplAppNodejs\getActionSwitchNodejsVersion(), TplAppPhp\getActionSwitchPhpVersion(), TplAppPostgresql\getActionSwitchPostgresqlVersion(), and TplAppXlight\getActionSwitchXlightVersion().