FOSSology
4.5.1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Examples
•
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
14
use
Fossology\Lib\Plugin\AgentPlugin
;
15
20
class
SpdxThreeJsonldAgentPlugin
extends
AgentPlugin
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());
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:13
Fossology\Spdx\UI\SpdxThreeJsonldAgentPlugin
Definition:
SpdxThreeJsonldAgentPlugin.php:21
Fossology\Spdx\UI\SpdxThreeJsonldAgentPlugin\preInstall
preInstall()
Definition:
SpdxThreeJsonldAgentPlugin.php:35
Fossology\Spdx\UI\SpdxThreeJsonldAgentPlugin\uploadsAdd
uploadsAdd($uploads)
Add uploads to report.
Definition:
SpdxThreeJsonldAgentPlugin.php:45
src
spdx
ui
SpdxThreeJsonldAgentPlugin.php
Generated on Wed Mar 26 2025 09:10:53 for FOSSology by
1.9.1