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 
18 
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());
Generate report for multiple uploads at browse mod.
uploadsAdd($uploads)
Adds upload ids to the parameter for agent.