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
9
use
Fossology\Lib\Plugin\AgentPlugin
;
10
17
class
MimetypeAgentPlugin
extends
AgentPlugin
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
());
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:13
MimetypeAgentPlugin
UI plugin for mimetype agent.
Definition:
agent-mimetype.php:18
MimetypeAgentPlugin\AgentHasResults
AgentHasResults($uploadId=0)
Definition:
agent-mimetype.php:34
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
mimetype
ui
agent-mimetype.php
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1