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
15
class
ActionRefreshRepos
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
35
Util::startLoading
();
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
}
ActionRefreshRepos
Definition
class.action.refreshRepos.php:16
ActionRefreshRepos\__construct
__construct($args)
Definition
class.action.refreshRepos.php:29
ActionRefreshRepos\GIT
const GIT
Definition
class.action.refreshRepos.php:20
Util\startLoading
static startLoading()
Definition
class.util.php:935
Bearsampp-development
sandbox
core
classes
actions
class.action.refreshRepos.php
Generated by
1.14.0