FOSSology  4.4.0
Open Source License Compliance by Open Source Software
DepFiveAgentPlugin.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2015 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 namespace Fossology\SpdxTwo\UI;
9 
11 
17 {
18  public function __construct()
19  {
20  $this->Name = "agent_dep5";
21  $this->Title = _("DEP5 copyright file generation");
22  $this->AgentName = "dep5";
23 
24  parent::__construct();
25  }
26 
31  function preInstall()
32  {
33  // no AgentCheckBox
34  }
35 
41  public function uploadsAdd($uploads)
42  {
43  if (count($uploads) == 0) {
44  return '';
45  }
46  return '--uploadsAdd='. implode(',', array_keys($uploads));
47  }
48 }
49 
50 register_plugin(new DepFiveAgentPlugin());
DEP5 copyright file generation.
uploadsAdd($uploads)
Add uploads to report.