FOSSology
4.4.0
Open Source License Compliance by Open Source Software
ReadMeOssAgentPlugin.php
Go to the documentation of this file.
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2015 Siemens AG
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
7
15
namespace
Fossology\ReadmeOSS\UI;
16
17
use
Fossology\Lib\Plugin\AgentPlugin
;
18
23
class
ReadMeOssAgentPlugin
extends
AgentPlugin
24
{
25
public
function
__construct()
26
{
27
$this->Name =
"agent_readmeoss"
;
28
$this->Title = _(
"ReadMeOSS generation"
);
29
$this->AgentName =
"readmeoss"
;
30
31
parent::__construct();
32
}
33
38
function
preInstall
()
39
{
40
// no AgentCheckBox
41
}
42
48
public
function
uploadsAdd
($uploads)
49
{
50
if
(count($uploads) == 0) {
51
return
''
;
52
}
53
return
'--uploadsAdd='
. implode(
','
, array_keys($uploads));
54
}
55
}
56
57
register_plugin(
new
ReadMeOssAgentPlugin());
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:13
Fossology\ReadmeOSS\UI\ReadMeOssAgentPlugin
Generate report for multiple uploads at browse mod.
Definition:
ReadMeOssAgentPlugin.php:24
Fossology\ReadmeOSS\UI\ReadMeOssAgentPlugin\uploadsAdd
uploadsAdd($uploads)
Adds upload ids to the parameter for agent.
Definition:
ReadMeOssAgentPlugin.php:48
Fossology\ReadmeOSS\UI\ReadMeOssAgentPlugin\preInstall
preInstall()
Definition:
ReadMeOssAgentPlugin.php:38
src
readmeoss
ui
ReadMeOssAgentPlugin.php
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1