getModel(self :: MODEL); $this -> itemId = JRequest :: getUInt('Itemid', 0); $this -> projectId = JRequest :: getString('projectId'); $locale = JFactory :: getLanguage() -> getTag(); JViewLegacy:: loadHelper('PiwikHelper'); PiwikHelper :: logPageView('viewProject', 'projectId=' . urlencode($this -> projectId) . '&locale=' . urlencode($locale)); $this -> chartUrl = $model -> getProjectStatisticsChartUrl(); $this -> project =($this -> projectId==NULL||$this -> projectId=="")?NULL: $model -> getProject($this -> projectId, $locale); $this -> publications =($this -> projectId==NULL||$this -> projectId=="")?NULL: $model -> browsePublications(NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, self :: PAGE, self :: SIZE, $locale, $this -> projectId, NULL, FALSE); $this -> datasets = ($this -> projectId==NULL||$this -> projectId=="")?NULL: $model -> browseDatasets(NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, self :: PAGE, self :: SIZE, $locale, $this -> projectId, NULL, FALSE,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); } }