Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
class.action.enable.php
Go to the documentation of this file.
1
<?php
2
/*
3
* Copyright (c) 2021-2026 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
ActionEnable
16
{
24
public
function
__construct
($args)
25
{
26
global
$bearsamppBins
;
27
28
if
(isset($args[0]) && !empty($args[0]) && isset($args[1])) {
29
Util::startLoading
();
30
$bin =
$bearsamppBins
->getBinByName($args[0]);
31
if
($bin !==
null
) {
32
$bin->setEnable($args[1],
true
);
33
}
34
Util::stopLoading
();
35
}
36
}
37
}
38
$bearsamppBins
global $bearsamppBins
Definition
ajax.apache.php:16
ActionEnable
Definition
class.action.enable.php:16
ActionEnable\__construct
__construct($args)
Definition
class.action.enable.php:24
Util\startLoading
static startLoading()
Definition
class.util.php:540
Util\stopLoading
static stopLoading()
Definition
class.util.php:562
sandbox
core
classes
actions
class.action.enable.php
Generated by
1.17.0