function &__performContentSearch() { include_once 'Services/Search/classes/class.ilObjectSearchFactory.php'; include_once 'Services/Search/classes/class.ilQueryParser.php'; include_once 'Services/Search/classes/class.ilSearchResult.php'; if (!$this->options['lom_content']) { return false; } $res =& new ilSearchResult(); $query_parser = new ilQueryParser(ilUtil::stripSlashes($this->options['lom_content'])); #$query_parser->setCombination($this->options['content_ao']); $query_parser->setCombination(QP_COMBINATION_OR); $query_parser->parse(); if ($this->options['type'] == 'all' or $this->options['type'] == 'lms') { // LM content search $lm_search =& ilObjectSearchFactory::_getLMContentSearchInstance($query_parser); $res_cont =& $lm_search->performSearch(); $res->mergeEntries($res_cont); } if ($this->options['type'] == 'all' or $this->options['type'] == 'tst') { $tst_search =& ilObjectSearchFactory::_getTestSearchInstance($query_parser); $res_tes =& $tst_search->performSearch(); $res->mergeEntries($res_tes); } if ($this->options['type'] == 'all' or $this->options['type'] == 'mep') { $med_search =& ilObjectSearchFactory::_getMediaPoolSearchInstance($query_parser); $res_med =& $med_search->performSearch(); $res->mergeEntries($res_med); } if ($this->options['type'] == 'all' or $this->options['type'] == 'glo') { $glo_search =& ilObjectSearchFactory::_getGlossaryDefinitionSearchInstance($query_parser); $res_glo =& $glo_search->performSearch(); $res->mergeEntries($res_glo); } if ($this->options['type'] == 'all' or $this->options['type'] == 'webr') { $web_search =& ilObjectSearchFactory::_getWebresourceSearchInstance($query_parser); $res_web =& $web_search->performSearch(); $res->mergeEntries($res_web); } if ($tit_res = $this->__performTitleSearch()) { $res->mergeEntries($tit_res); } return $res; }