Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/ViewDataTable/HtmlTable.php')
-rw-r--r--core/ViewDataTable/HtmlTable.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/ViewDataTable/HtmlTable.php b/core/ViewDataTable/HtmlTable.php
index cac953024c..d40ed84696 100644
--- a/core/ViewDataTable/HtmlTable.php
+++ b/core/ViewDataTable/HtmlTable.php
@@ -41,7 +41,7 @@ class Piwik_ViewDataTable_HtmlTable extends Piwik_ViewDataTable
function init($currentControllerName,
$currentControllerAction,
$apiMethodToRequestDataTable,
- $controllerActionCalledWhenRequestSubTable = null)
+ $controllerActionCalledWhenRequestSubTable = null )
{
parent::init($currentControllerName,
$currentControllerAction,
@@ -82,6 +82,14 @@ class Piwik_ViewDataTable_HtmlTable extends Piwik_ViewDataTable
}
/**
+ * Hook called after the dataTable has been loaded from the API
+ * Can be used to add, delete or modify the data freshly loaded
+ */
+ protected function postDataTableLoadedFromAPI()
+ {
+ }
+
+ /**
* @return Piwik_View with all data set
*/
protected function buildView()
@@ -95,11 +103,10 @@ class Piwik_ViewDataTable_HtmlTable extends Piwik_ViewDataTable
else
{
$columns = $this->getColumnsToDisplay();
- $columnTranslations = $columnDescriptions = array();
+ $columnTranslations = array();
foreach($columns as $columnName)
{
$columnTranslations[$columnName] = $this->getColumnTranslation($columnName);
- $columnDescriptions[$columnName] = $this->getColumnDescription($columnName);
}
$nbColumns = count($columns);
// case no data in the array we use the number of columns set to be displayed
@@ -111,7 +118,6 @@ class Piwik_ViewDataTable_HtmlTable extends Piwik_ViewDataTable
$view->arrayDataTable = $this->getPHPArrayFromDataTable();
$view->dataTableColumns = $columns;
$view->columnTranslations = $columnTranslations;
- $view->columnDescriptions = $columnDescriptions;
$view->nbColumns = $nbColumns;
$view->defaultWhenColumnValueNotDefined = '-';
}