getModel(self :: MODEL); $this -> itemId = JRequest :: getUInt('Itemid', 0); $this -> projectId = JRequest :: getString('projectId'); $locale = JFactory :: getLanguage() -> getTag(); JView :: loadHelper('PiwikHelper'); PiwikHelper :: logPageView('viewProject', 'projectId=' . urlencode($this -> projectId) . '&locale=' . urlencode($locale)); $this -> chartUrl = $model -> getProjectStatisticsChartUrl(); $this -> project = $model -> getProject($this -> projectId, $locale); $this -> publications = $model -> browsePublications(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, self :: PAGE, self :: SIZE, $locale, $this -> projectId, NULL); $this -> datasets = $model -> browseDatasets(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, self :: PAGE, self :: SIZE, $locale, $this -> projectId, NULL); if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing project: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }