FOSSology
4.4.0
Open Source License Compliance by Open Source Software
agent-shagent.php
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2019 Sandip Kumar Bhuyan <sandipbhuyan@gmail.com>
4
Author: Sandip Kumar Bhuyan<sandipbhyan@gmail.com>
5
6
SPDX-License-Identifier: GPL-2.0-only
7
*/
8
use
Fossology\Lib\Plugin\AgentPlugin
;
9
14
class
softwareHeritageAgentPlugin
extends
AgentPlugin
15
{
16
public
function
__construct()
17
{
18
$this->Name =
"agent_shagent"
;
19
$this->Title = (
"Software Heritage Analysis"
);
20
$this->AgentName =
"softwareHeritage"
;
21
22
parent::__construct();
23
}
24
29
function
AgentHasResults
($uploadId=0)
30
{
31
return
CheckARS
($uploadId, $this->AgentName,
"Software Heritage scanner"
,
"softwareHeritage"
);
32
}
33
}
34
35
register_plugin(
new
softwareHeritageAgentPlugin
());
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:11
softwareHeritageAgentPlugin
Definition:
agent-shagent.php:15
softwareHeritageAgentPlugin\AgentHasResults
AgentHasResults($uploadId=0)
Definition:
agent-shagent.php:29
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:432
src
softwareHeritage
ui
agent-shagent.php
Generated on Thu May 2 2024 13:40:57 for FOSSology by
1.9.1