本文整理匯總了PHP中CSearch::testConnection方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSearch::testConnection方法的具體用法?PHP CSearch::testConnection怎麽用?PHP CSearch::testConnection使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSearch
的用法示例。
在下文中一共展示了CSearch::testConnection方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CSearchThesaurusEntry
}
$favoris = new CSearchThesaurusEntry();
$favoris_sans_cibles = new CSearchThesaurusEntry();
$targets = new CSearchTargetEntry();
$actes_ccam = array();
$diags_cim = array();
$results = array();
$tab_favoris = array();
$date = CMbDT::date("-1 month");
$types = array();
$group = CGroups::loadCurrent();
if (CAppUI::conf("search active_handler active_handler_search_types", $group)) {
$types = explode("|", CAppUI::conf("search active_handler active_handler_search_types", $group));
}
$test_search = new CSearch();
$test_search->testConnection($group);
// On récupère les favoris
if ($_ref_object instanceof CSejour) {
$date = CMbDT::format($_ref_object->entree_reelle, "%Y-%m-%d");
/** @var $_ref_object CSejour */
// actes CCAM du séjour
foreach ($_ref_object->loadRefsActesCCAM() as $_ccam) {
$diags_actes[] = $_ccam->code_acte;
}
// actes CCAM du l'intervention
foreach ($_ref_object->loadRefsOperations() as $_op) {
foreach ($_op->loadRefsActesCCAM() as $_ccam) {
$diags_actes[] = $_ccam->code_acte;
}
}
if ($_ref_object->DP || $_ref_object->DR) {