FOSSology  4.4.0
Open Source License Compliance by Open Source Software
CliXmlAgentPlugin.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2021 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 namespace Fossology\CliXml\UI;
9 
11 
13 {
14  public function __construct()
15  {
16  $this->Name = "agent_clixml";
17  $this->Title = _("CliXml generation");
18  $this->AgentName = "clixml";
19 
20  parent::__construct();
21  }
22 
23  function preInstall()
24  {
25  // no AgentCheckBox
26  }
27 
28  public function uploadsAdd($uploads)
29  {
30  if (count($uploads) == 0) {
31  return '';
32  }
33  return '--uploadsAdd='. implode(',', array_keys($uploads));
34  }
35 }
36 
37 register_plugin(new CliXmlAgentPlugin());