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

Public Member Functions

 __construct ($args)
 

Data Fields

const GIT = 'git'
 

Detailed Description

Class ActionRefreshRepos

This class is responsible for handling the action of refreshing repositories.

Definition at line 15 of file class.action.refreshRepos.php.

Constructor & Destructor Documentation

◆ __construct()

ActionRefreshRepos::__construct ( $args)

ActionRefreshRepos constructor.

This constructor initializes the action to refresh repositories based on the provided arguments.

Parameters
array$argsAn array of arguments where the first argument can be 'git' to trigger the git repository refresh.

Definition at line 29 of file class.action.refreshRepos.php.

30 {
31 // Global variable for accessing bearsamppTools
32 global $bearsamppTools;
33
34 // Start the loading process
36
37 // Check if the first argument is set and not empty
38 if (isset($args[0]) && !empty($args[0])) {
39 // If the first argument is 'git', trigger the git repository refresh
40 if ($args[0] == self::GIT) {
41 $bearsamppTools->getGit()->findRepos(false);
42 }
43 }
44 }
static startLoading()

References Util\startLoading().

Field Documentation

◆ GIT

const ActionRefreshRepos::GIT = 'git'

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