getModel(self :: MODEL); $this -> itemId = JRequest :: getUInt('Itemid', 0); $this -> datasourceId = JRequest :: getString('datasourceId'); $locale = JFactory :: getLanguage() -> getTag(); JView :: loadHelper('PiwikHelper'); PiwikHelper :: logPageView('viewDatasource', 'datasourceId=' . urlencode($this -> datasourceId) . '&locale=' . urlencode($locale)); $this -> datasource = $model -> getDatasource($this -> datasourceId, $locale, true); $this -> publications = $model -> browsePublications(NULL, NULL, NULL, NULL, NULL, NULL, NULL, $this -> datasourceId, NULL, self :: PAGE, 5, $locale, NULL, NULL); $this -> datasets = $model -> browseDatasets(NULL, NULL, NULL, NULL, NULL, NULL, NULL, $this -> datasourceId, self :: PAGE, self :: SIZE, $locale, NULL, NULL); if ($this -> datasource == NULL) { $this -> statisticsExistUrl = NULL; $this -> statisticsChartUrl = NULL; } else { $this -> statisticsExistUrl = $model -> getDatasourceStatisticsExistUrl() . $this -> datasource -> url; $this -> statisticsChartUrl = $model -> getDatasourceStatisticsChartUrl() . $this -> datasource -> url; } $this -> projectStatisticsChartUrl = $model -> getProjectStatisticsChartUrl(); if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing datasource: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }