20 require_once(
'HistogramBase.php');
22 define(
"TITLE_COPYRIGHTHISTOGRAM", _(
"Copyright Browser"));
29 function __construct()
31 $this->Name =
"copyright-hist";
32 $this->Title = TITLE_COPYRIGHTHISTOGRAM;
33 $this->viewName =
"copyright-view";
34 $this->agentName =
"copyright";
35 parent::__construct();
48 $typeDescriptionPairs = array(
49 'statement' => _(
"Agent Findings"),
50 'copyFindings' => _(
"User Findings")
54 foreach($typeDescriptionPairs as $type=>$description)
57 $upload_pk, $uploadtreeId, $filter, $agentId);
58 $tableVars[$type] = $vars;
62 $output[] = $tableVars;
71 protected function fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
74 $upload_pk, $Uploadtree_pk, $filter, $agentId);
76 $out = $this->
renderString(
'copyrighthist_tables.html.twig',
78 'contCopyright' => $vCopyright,
79 'contTextFindings' => $vTextFindings,
82 return array($out, $tableVars);
95 if (!empty($Item) && !empty($Upload))
99 menu_insert(
"Browse::Copyright agent/user findings",10);
104 $text = _(
"View copyright agent/user findings histogram");
118 var copyrightTabCookie = 'stickyCopyrightTab'; 120 $(document).ready(function() { 121 tableCopyright = createTablestatement(); 122 tableFindings = createPlainTablecopyFindings(); 123 $('#copyrightFindingsTabs').tabs({ 124 active: ($.cookie(copyrightTabCookie) || 0), 125 activate: function(e, ui){ 126 // Get active tab index and update cookie 127 var idString = $(e.currentTarget).attr('id'); 128 idString = parseInt(idString.slice(-1)) - 1; 129 $.cookie(copyrightTabCookie, idString);
getTableContent($upload_pk, $uploadtreeId, $filter, $agentId)
Get contents for copyright table.
getTableForSingleType($type, $description, $uploadId, $uploadTreeId, $filter, $agentId)
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
renderString($templateName, $vars=null)
createScriptBlock()
Create JavaScript block for histogram.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
Traceback_parm_keep($List)
Create a new URI, keeping only these items.
fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
Get copyright statements and fill the main content table.
RegisterMenus()
While menus can be added to any time at or after the PostInitialize phase, this is the standard locat...
Base class for histogram plugins.