Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.action.refreshRepos.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{
20 const GIT = 'git';
21
29 public function __construct($args)
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 }
45}
static startLoading()