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

Public Member Functions

 __construct ($args)
 

Detailed Description

Class ActionRefreshReposStartup

This class is responsible for handling the action of setting the scan startup for repositories.

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

Constructor & Destructor Documentation

◆ __construct()

ActionRefreshReposStartup::__construct ( $args)

ActionRefreshReposStartup constructor.

This constructor initializes the action to set the scan startup for repositories based on the provided arguments.

Parameters
array$argsAn array of arguments where the first argument should be 'git' to trigger the git repository scan startup setting, and the second argument is the value to set for the scan startup.

Definition at line 25 of file class.action.refreshReposStartup.php.

26 {
27 // Global variable for accessing bearsamppTools
28 global $bearsamppTools;
29
30 // Check if the first and second arguments are set and not empty
31 if (isset($args[0]) && !empty($args[0]) && isset($args[1])) {
32 // If the first argument is 'git', set the scan startup value
33 if ($args[0] == ActionRefreshRepos::GIT) {
34 $bearsamppTools->getGit()->setScanStartup($args[1]);
35 }
36 }
37 }

References ActionRefreshRepos\GIT.


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