25 public function __construct() {
26 $this->Name =
"agent_ninka";
27 $this->Title = _(
"Ninka License Analysis");
28 $this->AgentName =
"ninka";
30 parent::__construct();
33 function AgentHasResults($uploadId=0)
35 return CheckARS($uploadId, $this->AgentName,
"ninka agent",
"ninka_ars");
40 if ($this->isNinkaInstalled()) {
41 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
45 public function isNinkaInstalled()
47 exec(
'which ninka', $lines, $returnVar);
48 return (0==$returnVar);
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.