FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
ReadMeOssAgentPlugin.php
Go to the documentation of this file.
1
<?php
2
/***********************************************************
3
* Copyright (C) 2015, Siemens AG
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* version 2 as published by the Free Software Foundation.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
***********************************************************/
18
26
use
Fossology\Lib\Plugin\AgentPlugin
;
27
32
class
ReadMeOssAgentPlugin
extends
AgentPlugin
33
{
34
public
function
__construct()
35
{
36
$this->Name =
"agent_readmeoss"
;
37
$this->Title = _(
"ReadMeOSS generation"
);
38
$this->AgentName =
"readmeoss"
;
39
40
parent::__construct();
41
}
42
47
function
preInstall
()
48
{
49
// no AgentCheckBox
50
}
51
57
public
function
uploadsAdd
($uploads)
58
{
59
if
(count($uploads) == 0) {
60
return
''
;
61
}
62
return
'--uploadsAdd='
. implode(
','
, array_keys($uploads));
63
}
64
}
65
66
register_plugin(
new
ReadMeOssAgentPlugin
());
ReadMeOssAgentPlugin\uploadsAdd
uploadsAdd($uploads)
Adds upload ids to the parameter for agent.
Definition:
ReadMeOssAgentPlugin.php:57
ReadMeOssAgentPlugin
Generate report for multiple uploads at browse mod.
Definition:
ReadMeOssAgentPlugin.php:32
AgentPlugin
ReadMeOssAgentPlugin\preInstall
preInstall()
Definition:
ReadMeOssAgentPlugin.php:47
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:21
src
readmeoss
ui
ReadMeOssAgentPlugin.php
Generated on Mon Jun 29 2020 12:03:43 for FOSSology by
1.8.11