Adding Ajax API, fix some module handlings, add new load method for modules

This commit is contained in:
Adrian Preuß committed 2019-04-16 20:10:26 +02:00
1 parent ecc278de48
commit 6723246bf2
7 files changed
+109 -30

No files matched your search

+9
View File
@@ -5,6 +5,7 @@
private $path = null;
private $info = null;
private $instance = null;
private $enabled = false;
public function __construct($path) {
$this->path = $path;
@@ -23,6 +24,14 @@
return $this->instance;
}
public function isEnabled() {
return $this->enabled;
}
public function setEnabled($state) {
$this->enabled = $state;
}
public function init($core) {
$script = sprintf('%s%smodule.php', $this->path, DS);