FOSSology  4.4.0
Open Source License Compliance by Open Source Software
agent-mimetype.php
Go to the documentation of this file.
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2008-2013 Hewlett-Packard Development Company, L.P.
4  SPDX-FileCopyrightText: © 2015 Siemens AG
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
10 
18 {
19  public function __construct() {
20  $this->Name = "agent_mimetype";
21  $this->Title = _("MIME-type Analysis (Determine mimetype of every file. Not needed for licenses or buckets)");
22  $this->AgentName = "mimetype";
23 
24  parent::__construct();
25  }
26 
31  function AgentHasResults($uploadId=0)
32  {
33  return CheckARS($uploadId, $this->AgentName, "mimetype agent", "mimetype_ars");
34  }
35 }
36 
37 register_plugin(new MimetypeAgentPlugin());
UI plugin for mimetype agent.
AgentHasResults($uploadId=0)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.