8 namespace Fossology\Ninka\Ui;
14 public function __construct() {
15 $this->Name =
"agent_ninka";
16 $this->Title = _(
"Ninka License Analysis");
17 $this->AgentName =
"ninka";
19 parent::__construct();
24 return CheckARS($uploadId, $this->AgentName,
"ninka agent",
"ninka_ars");
29 if ($this->isNinkaInstalled()) {
30 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
34 public function isNinkaInstalled()
36 exec(
'which ninka', $lines, $returnVar);
37 return (0==$returnVar);
41 register_plugin(
new NinkaAgentPlugin());
AgentHasResults($uploadId=0)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.