FOSSology  4.5.1
Open Source License Compliance by Open Source Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SpdxThreeJsonldAgentPlugin.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 */
12 namespace Fossology\Spdx\UI;
13 
15 
21 {
22  public function __construct()
23  {
24  $this->Name = "agent_spdx3jsonld";
25  $this->Title = _("SPDX3 generation in JSON-LD format");
26  $this->AgentName = "spdx3jsonld";
27 
28  parent::__construct();
29  }
30 
35  function preInstall()
36  {
37  // no AgentCheckBox
38  }
39 
45  public function uploadsAdd($uploads)
46  {
47  if (count($uploads) == 0) {
48  return '';
49  }
50  return '--uploadsAdd='. implode(',', array_keys($uploads));
51  }
52 }
53 
54 register_plugin(new SpdxThreeJsonldAgentPlugin());