/** * Get a ConceptSearchSourceCollection of sources for the specified search group * @param ConceptSearchGroup $csg * @param ConceptSearch $cs * @return ConceptSearchSourceCollection */ private function getSearchGroupSources(ConceptSearch $cs, ConceptSearchGroup $csg) { if ($arr_source = $csg->getInlineSources()) { // TODO: Get ConceptSearchSource objects for the referenced inline sources return null; } else { return $cs->getSelectedSources(); } }
$is_advanced_search = true; } /**************************************************************************** * Setup and perform search ***************************************************************************/ $cs = null; // ConceptSearch object $csr = null; // ConceptSearchResults object $csrr = null; // ConceptSearchResultsRenderer object $enable_search_results_export = false; // Whether to show "Export" link if ($full_search_query) { // Create the ConceptSearch object $cs = new ConceptSearch($full_search_query); if ($mcl_mode == MCL_MODE_OPENMRS_ONLY) { $cs->load_concept_list_names = false; } $cs->include_retired = (bool) $arr_param['retired']; $cs->setAllSources($coll_source); $cs->setSelectedSources($coll_source_query); // Apply concept class and datatype filters foreach ($coll_selected_class->getKeys() as $key) { $cs->addFilter($coll_selected_class->Get($key)); } foreach ($coll_selected_datatype->getKeys() as $key) { $cs->addFilter($coll_selected_datatype->Get($key)); } // Perform the search if ($cs->Count()) {