26 const NAME =
'copyright-view';
28 function __construct()
30 $this->decisionTableName =
"copyright_decision";
31 $this->tableName =
"copyright";
32 $this->modBack =
'copyright-hist';
33 $this->optionName =
"skipFileCopyRight";
34 $this->ajaxAction =
"setNextPrevCopyRight";
35 $this->skipOption =
"noCopyright";
36 $this->highlightTypeToStringMap = array(Highlight::COPYRIGHT =>
'copyright remark',
37 Highlight::URL =>
'URL', Highlight::EMAIL =>
'e-mail address',
38 Highlight::AUTHOR =>
'author or maintainer');
39 $this->xptext =
'copyright/e-mail/URL';
40 $this->typeToHighlightTypeMap = array(
41 'statement' => Highlight::COPYRIGHT,
42 'email' => Highlight::EMAIL,
43 'url' => Highlight::URL,
44 'author' => Highlight::AUTHOR);
45 parent::__construct(self::NAME, array(
46 self::TITLE => _(
"View Copyright/Email/Url Analysis")
58 $agentMap = $this->agentDao->getLatestAgentResultForUpload($uploadId,array(
'copyright'));
59 $agentId = array_key_exists(
'copyright',$agentMap) ? $agentMap[
'copyright'] : 0;
64 list($output, $tableVars) = $modCopyrightHist->getTableForSingleType(
'statement', _(
"Copyright"), $uploadId, $uploadTreeId, $filter, $agentId);
66 $vars = array(
'statement'=>$tableVars,
67 'content' =>
"$output\n",
68 'script' =>
'<script>$(document).ready(function() { createTablestatement(); } );</script>');
Namespace for Copyright agent's UI components.
plugin_find($pluginName)
Given the official name of a plugin, return the $Plugins object.
additionalVars($uploadId, $uploadTreeId, $agentId)
Get additional variables for a give item.