FOSSology
4.5.1
Open Source License Compliance by Open Source Software
SpdxTwoTagValueAgentPlugin.php
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2015 Siemens AG
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
7
8
namespace
Fossology\Spdx\UI;
9
10
use
Fossology\Lib\Plugin\AgentPlugin
;
11
16
class
SpdxTwoTagValueAgentPlugin
extends
AgentPlugin
17
{
18
public
function
__construct()
19
{
20
$this->Name =
"agent_spdx2tv"
;
21
$this->Title = _(
"SPDX2 generation in Tag:Value format"
);
22
$this->AgentName =
"spdx2tv"
;
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
SpdxTwoTagValueAgentPlugin());
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:13
Fossology\Spdx\UI\SpdxTwoTagValueAgentPlugin
Add multiple uploads to SPDX2 report in Tag:Value format.
Definition:
SpdxTwoTagValueAgentPlugin.php:17
Fossology\Spdx\UI\SpdxTwoTagValueAgentPlugin\preInstall
preInstall()
Definition:
SpdxTwoTagValueAgentPlugin.php:31
Fossology\Spdx\UI\SpdxTwoTagValueAgentPlugin\uploadsAdd
uploadsAdd($uploads)
Add uploads to report.
Definition:
SpdxTwoTagValueAgentPlugin.php:41
src
spdx
ui
SpdxTwoTagValueAgentPlugin.php
Generated on Wed Mar 26 2025 09:10:53 for FOSSology by
1.9.1