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
{
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
());
Fossology\Lib\Plugin\AgentPlugin
Definition:
AgentPlugin.php:11
MimetypeAgentPlugin
UI plugin for mimetype agent.
Definition:
agent-mimetype.php:18
MimetypeAgentPlugin\AgentHasResults
AgentHasResults($uploadId=0)
Definition:
agent-mimetype.php:31
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 Thu May 2 2024 13:40:57 for FOSSology by
1.9.1