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 {
20  private $mimetypeDesc = "Determine mimetype of every file. Not needed for licenses or buckets";
21 
22  public function __construct() {
23  $this->Name = "agent_mimetype";
24  $this->Title = _("MIME-type Analysis <img src=\"images/info_16.png\" data-toggle=\"tooltip\" title=\"".$this->mimetypeDesc."\" class=\"info-bullet\"/>");
25  $this->AgentName = "mimetype";
26 
27  parent::__construct();
28  }
29 
34  function AgentHasResults($uploadId=0)
35  {
36  return CheckARS($uploadId, $this->AgentName, "mimetype agent", "mimetype_ars");
37  }
38 }
39 
40 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.