FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
agent-shagent.php
1
<?php
2
/***********************************************************
3
Copyright (C) 2019
4
Author: Sandip Kumar Bhuyan<sandipbhyan@gmail.com>
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
version 2 as published by the Free Software Foundation.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
***********************************************************/
19
use
Fossology\Lib\Plugin\AgentPlugin
;
20
25
class
softwareHeritageAgentPlugin
extends
AgentPlugin
26
{
27
public
function
__construct()
28
{
29
$this->Name =
"agent_shagent"
;
30
$this->Title = (
"Software Heritage Analysis"
);
31
$this->AgentName =
"softwareHeritage"
;
32
33
parent::__construct();
34
}
35
40
function
AgentHasResults
($uploadId=0)
41
{
42
return
CheckARS
($uploadId, $this->AgentName,
"Software Heritage scanner"
,
"softwareHeritage"
);
43
}
44
}
45
46
register_plugin(
new
softwareHeritageAgentPlugin
());
softwareHeritageAgentPlugin
Definition:
agent-shagent.php:25
softwareHeritageAgentPlugin\AgentHasResults
AgentHasResults($uploadId=0)
Definition:
agent-shagent.php:40
CheckARS
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
Definition:
common-agents.php:437
AgentPlugin
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:21
src
softwareHeritage
ui
agent-shagent.php
Generated on Mon Jun 29 2020 12:03:43 for FOSSology by
1.8.11