diff options
Diffstat (limited to 'core/ViewDataTable/HtmlTable.php')
-rw-r--r-- | core/ViewDataTable/HtmlTable.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/core/ViewDataTable/HtmlTable.php b/core/ViewDataTable/HtmlTable.php index d40ed84696..cac953024c 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,14 +82,6 @@ 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() @@ -103,10 +95,11 @@ class Piwik_ViewDataTable_HtmlTable extends Piwik_ViewDataTable else { $columns = $this->getColumnsToDisplay(); - $columnTranslations = array(); + $columnTranslations = $columnDescriptions = 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 @@ -118,6 +111,7 @@ 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 = '-'; } |