本文整理汇总了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;