FOSSology  4.5.1
Open Source License Compliance by Open Source Software
SpdxThreeTagValueAgentPlugin.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2024 Abhishek Kumar
4  Author: Abhishek Kumar <akumar17871@gmail.com>
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
9 namespace Fossology\Spdx\UI;
10 
12 
18 {
19  public function __construct()
20  {
21  $this->Name = "agent_spdx3tv";
22  $this->Title = _("SPDX3 generation in Tag:Value format");
23  $this->AgentName = "spdx3tv";
24 
25  parent::__construct();
26  }
27 
32  function preInstall()
33  {
34  // no AgentCheckBox
35  }
36 
42  public function uploadsAdd($uploads)
43  {
44  if (count($uploads) == 0) {
45  return '';
46  }
47  return '--uploadsAdd='. implode(',', array_keys($uploads));
48  }
49 }
50 
51 register_plugin(new SpdxThreeTagValueAgentPlugin());
Add multiple uploads to SPDX3 report in Tag:Value format.