本文整理匯總了PHP中CSearch::searchAuto方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSearch::searchAuto方法的具體用法?PHP CSearch::searchAuto怎麽用?PHP CSearch::searchAuto使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSearch
的用法示例。
在下文中一共展示了CSearch::searchAuto方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: unset
$tab_favoris_user_sans_cibles = $favoris_sans_cibles->loadList($whereFavorisSansCibles);
unset($whereFavorisSansCibles["user_id"]);
$function_id = $user->loadRefFunction()->_id;
$whereFavoris["function_id"] = " = '{$function_id}'";
$tab_favoris_function_sans_cibles = $favoris_sans_cibles->loadList($whereFavorisSansCibles);
unset($whereFavorisSansCibles["function_id"]);
$group_id = $user->loadRefFunction()->group_id;
$whereFavorisSansCibles["group_id"] = " = '{$group_id}'";
$tab_favoris_group_sans_cibles = $favoris->loadList($whereFavorisSansCibles);
$tab_favoris += $tab_favoris_user_sans_cibles + $tab_favoris_function_sans_cibles + $tab_favoris_group_sans_cibles;
}
// On effectue la recherche automatique
if (isset($tab_favoris)) {
try {
$search = new CSearch();
$results = $search->searchAuto($tab_favoris, $_ref_object);
} catch (Exception $e) {
CAppUI::displayAjaxMsg("search-not-connected", UI_MSG_ERROR);
mbLog($e->getMessage());
}
}
// Récupération des rss items pour le marquage pmsi (preuves de recherche PMSI)
$rss_items = array();
$items = array();
if ($contexte == "pmsi" && CModule::getActive("atih")) {
$rss = new CRSS();
$rss->sejour_id = $sejour_id;
$rss->loadMatchingObject();
$rss_items = $rss->loadRefsSearchItems();
foreach ($rss_items as $_items) {
$items[] = $_items->search_class . "-" . $_items->search_id;