getTag(); $this -> itemId = JRequest :: getUInt('Itemid', 0); $term = JRequest :: getString('term'); $funder = JRequest :: getString('funder'); $limit = JRequest :: getUInt('limit', self :: SIZE); $result = $this -> getModel(self :: MODEL) -> quickSearchProjects($term, $funder, $limit, $locale); $this -> projects = array(); if ($result != NULL) { foreach ($result as $project) { if (($project -> id != NULL) && (($project -> acronym != NULL) || ($project -> title != NULL) || ($project -> code != NULL))) $this -> projects[] = array('id' => $project -> id, 'name' => implode(' - ', array_filter(array($project -> acronym, $project -> title, $project -> code))), 'html' => ProjectHelper::getProjectHtml ($project, $this -> itemId)); } } if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing projects (raw): ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }