本文整理匯總了PHP中COperation::loadlist方法的典型用法代碼示例。如果您正苦於以下問題:PHP COperation::loadlist方法的具體用法?PHP COperation::loadlist怎麽用?PHP COperation::loadlist使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類COperation
的用法示例。
在下文中一共展示了COperation::loadlist方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: implode
$where_libelle = "`libelle` LIKE '%{$libelle_intervention}%'";
$where_intervention[] = $where_libelle;
}
if ($ccam_intervention) {
$where_ccam = "`codes_ccam` LIKE '%{$ccam_intervention}%'";
$where_intervention[] = $where_ccam;
}
if ($where_intervention) {
$where_intervention = implode(" OR ", $where_intervention);
}
}
$order_intervention = "rques";
$total_intervs = null;
if ($where_intervention) {
$total_intervs = $intervention->countList($where_intervention);
$interventions = $intervention->loadlist($where_intervention, $order_intervention, "{$page_interv}, 30");
}
foreach ($interventions as &$intervention) {
$intervention->loadRefSejour();
$intervention->_ref_sejour->loadRefPatient();
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("dossierMedical", $dossierMedical);
$smarty->assign("canCabinet", $canCabinet);
$smarty->assign("canPlanningOp", $canPlanningOp);
$smarty->assign("sejours", $sejours);
$smarty->assign("page_sejour", $page_sejour);
$smarty->assign("total_sejours", $total_sejours);
$smarty->assign("interventions", $interventions);
$smarty->assign("page_interv", $page_interv);