24 require_once dirname(dirname(dirname(dirname(__DIR__)))) .
25 '/lib/php/Plugin/FO_Plugin.php';
92 $this->
id = intval(
$id);
98 $this->accessLevel =
"read_only";
101 $this->accessLevel =
"read_write";
104 $this->accessLevel =
"admin";
107 $this->accessLevel =
"none";
109 $this->rootFolderId = intval($root_folder_id);
113 $this->analysis->setUsingString($this->agents);
187 return json_encode($this->
getArray());
196 $returnUser = array();
200 if ($this->email !== null) {
204 if ($this->rootFolderId !== null && $this->rootFolderId != 0) {
207 if ($this->emailNotification !== null) {
210 if ($this->agents !== null) {
211 $returnUser[
"agents"] = $this->analysis->getArray();
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.
#define PLUGIN_DB_READ
Plugin requires read permission on DB.
#define PLUGIN_DB_WRITE
Plugin requires write permission on DB.
__construct($id, $name, $description, $email, $accessLevel, $root_folder_id, $emailNotification, $agents)
Model to hold analysis settings.
Model to hold user information.