19 require_once(
'HistogramBase.php');
21 define(
"TITLE_KEYWORDHISTOGRAM", _(
"Keyword Browser"));
24 function __construct()
26 $this->Name =
"keyword-hist";
27 $this->Title = TITLE_KEYWORDHISTOGRAM;
28 $this->viewName =
"keyword-view";
29 $this->agentName =
"keyword";
30 parent::__construct();
40 protected function getTableContent($upload_pk, $Uploadtree_pk, $filter, $Agent_pk)
43 $decription = _(
"Keyword Analysis");
46 list($VKeyword, $keywordVars) = $this->
getTableForSingleType($type, $decription, $upload_pk, $Uploadtree_pk, $filter, $Agent_pk);
47 $tableVars[
'keyword']=$keywordVars;
48 return array($VKeyword,$tableVars);
59 protected function fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
61 list($VKeyword, $tableVars) = $this->
getTableContent($upload_pk, $Uploadtree_pk, $filter, $agentId);
63 $V =
"<table border=0 width='100%'>\n";
64 $V .=
"<tr><td valign='top' width='50%'>$VKeyword</td><td valign='top'>$VF</td></tr>\n";
67 return array($V,$tableVars);
70 function RegisterMenus()
76 if (!empty($Item) && !empty($Upload))
85 $text = _(
"View Keyword histogram");
91 protected function createScriptBlock()
95 $(document).ready(function() { 96 tableKeyword = createTablekeyword(); getTableForSingleType($type, $description, $uploadId, $uploadTreeId, $filter, $agentId)
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
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.
getTableContent($upload_pk, $Uploadtree_pk, $filter, $Agent_pk)
Base class for histogram plugins.