2024.8.23
|
Static Public Member Functions | |
static | getActionRefreshGitRepos () |
static | getActionRefreshGitReposStartup ($scanStartup) |
static | getMenuGit () |
static | getMenuGitRepos () |
static | process () |
Data Fields | |
const | ACTION_REFRESH_REPOS = 'refreshGitRepos' |
const | ACTION_REFRESH_REPOS_STARTUP = 'refreshGitReposStartup' |
const | MENU = 'git' |
const | MENU_REPOS = 'gitRepos' |
Class TplAppGit
This class provides methods to generate and manage Git-related menu items and actions within the Bearsampp application. It includes functionalities for creating Git menus, refreshing repositories, and handling startup actions.
Definition at line 17 of file class.tpl.app.git.php.
|
static |
Generates the action to refresh Git repositories.
This method creates the action string for refreshing Git repositories. It includes commands to reload the application after refreshing the repositories.
Definition at line 135 of file class.tpl.app.git.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionRefreshRepos\GIT, and Action\REFRESH_REPOS.
|
static |
Generates the action to refresh Git repositories at startup.
This method creates the action string for setting up repository scanning at startup. It includes commands to reload the application after setting the startup action.
int | $scanStartup | The flag indicating whether to enable or disable scanning at startup. |
Definition at line 151 of file class.tpl.app.git.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionRefreshRepos\GIT, and Action\REFRESH_REPOS_STARTUP.
|
static |
Generates the Git menu with various options.
This method creates the Git menu with options for opening Git console, Git GUI, refreshing repositories, and setting up repository scanning at startup.
@global object $bearsamppLang Provides language support for retrieving language-specific values. @global object $bearsamppTools Provides access to various tools and utilities.
Definition at line 54 of file class.tpl.app.git.php.
References $bearsamppLang, Config\DISABLED, Config\ENABLED, TplApp\getActionMulti(), TplAestan\getItemConsoleZ(), TplAestan\getItemExe(), TplAestan\getItemSeparator(), TplApp\getMenu(), Lang\GIT_CONSOLE, Lang\GITGUI, TplAestan\GLYPH_CHECK, TplAestan\GLYPH_GIT, TplAestan\GLYPH_RELOAD, Lang\MENU_REFRESH_REPOS, Lang\MENU_SCAN_REPOS_STARTUP, Lang\REPOS, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the Git repositories menu.
This method creates the menu for listing and managing Git repositories found by the application.
@global object $bearsamppTools Provides access to various tools and utilities.
Definition at line 109 of file class.tpl.app.git.php.
References $result, TplAestan\getItemConsoleZ(), and TplAestan\GLYPH_GIT.
|
static |
Processes and generates the main Git menu.
This method generates the main Git menu item, which includes options for managing Git repositories and actions related to Git functionalities.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 36 of file class.tpl.app.git.php.
References $bearsamppLang, TplApp\getMenu(), and Lang\GIT.
Referenced by TplAppTools\getMenuTools().
const TplAppGit::ACTION_REFRESH_REPOS = 'refreshGitRepos' |
Definition at line 23 of file class.tpl.app.git.php.
const TplAppGit::ACTION_REFRESH_REPOS_STARTUP = 'refreshGitReposStartup' |
Definition at line 24 of file class.tpl.app.git.php.
const TplAppGit::MENU = 'git' |
Definition at line 20 of file class.tpl.app.git.php.
const TplAppGit::MENU_REPOS = 'gitRepos' |
Definition at line 21 of file class.tpl.app.git.php.