-
Notifications
You must be signed in to change notification settings - Fork 8
/
UQLModule.php
53 lines (41 loc) · 1.15 KB
/
UQLModule.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
class UQLModule extends UQLBase {
protected $um_module_name;
protected $um_is_active;
protected $um_is_input;
protected $um_is_output;
public function __construct($module_name,$is_active) {
$this->um_module_name = $module_name;
$this->um_is_active = $is_active;
$this->um_is_input = true; // run (in) method if true
$this->um_is_output = true; // run (out) method if true
}
public function stopModule() {
$this->um_is_active = false;
}
public function restartModule() {
$this->um_is_active = true;
}
public function isActive() {
return $this->um_is_active;
}
public function useInput($use) {
$this->um_is_input = $use;
}
public function useOutput($use) {
$this->um_is_output = $use;
}
public function isInput() {
return $this->um_is_input;
}
public function isOutput() {
return $this->um_is_output;
}
public function __destruct() {
$this->um_module_name = null;
$this->um_is_active = false;
$this->um_is_input = false;
$this->um_is_output = false;
}
}
?>