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 */
9 
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());
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.