Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.action.refreshReposStartup.php
Go to the documentation of this file.
1<?php
2/*
3 * Copyright (c) 2021-2024 Bearsampp
4 * License: GNU General Public License version 3 or later; see LICENSE.txt
5 * Author: Bear
6 * Website: https://bearsampp.com
7 * Github: https://github.com/Bearsampp
8 */
9
16{
25 public function __construct($args)
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 }
38}