8 require_once(
'HistogramBase.php');
10 define(
"TITLE_KEYWORDHISTOGRAM", _(
"Keyword Browser"));
16 $this->Name =
"keyword-hist";
17 $this->Title = TITLE_KEYWORDHISTOGRAM;
18 $this->viewName =
"keyword-view";
19 $this->agentName =
"keyword";
20 parent::__construct();
30 protected function getTableContent($upload_pk, $Uploadtree_pk, $filter, $Agent_pk)
33 $decription = _(
"Keyword Analysis");
36 list($VKeyword, $keywordVars) = $this->
getTableForSingleType($type, $decription, $upload_pk, $Uploadtree_pk, $filter, $Agent_pk);
37 $tableVars[
'keyword']=$keywordVars;
38 return array($VKeyword,$tableVars);
49 protected function fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
51 list($VKeyword, $tableVars) = $this->
getTableContent($upload_pk, $Uploadtree_pk, $filter, $agentId);
53 $V =
"<table border=0 width='100%'>\n";
54 $V .=
"<tr><td valign='top'>$VKeyword</td><td valign='top'>$VF</td></tr>\n";
57 return array($V,$tableVars);
66 if (!empty($Item) && !empty($Upload)) {
71 $text = _(
"View Keyword histogram");
81 $(document).ready(function() {
82 tableKeyword = createTablekeyword();
83 $('#testReplacementkeyword').click(function() {
84 testReplacement(tableKeyword, 'keyword');
Base class for histogram plugins.
getTableForSingleType($type, $description, $uploadId, $uploadTreeId, $filter, $agentId)
getTableContent($upload_pk, $Uploadtree_pk, $filter, $Agent_pk)
fillTables($upload_pk, $Uploadtree_pk, $filter, $agentId, $VF)
RegisterMenus()
While menus can be added to any time at or after the PostInitialize phase, this is the standard locat...
__construct()
base constructor. Most plugins will just use this
createScriptBlock()
Create JavaScript block for histogram.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
Traceback_parm_keep($List)
Create a new URI, keeping only these items.
list_t type structure used to keep various lists. (e.g. there are multiple lists).