本文整理汇总了PHP中CSejour::massLoadBackRefs方法的典型用法代码示例。如果您正苦于以下问题:PHP CSejour::massLoadBackRefs方法的具体用法?PHP CSejour::massLoadBackRefs怎么用?PHP CSejour::massLoadBackRefs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSejour
的用法示例。
在下文中一共展示了CSejour::massLoadBackRefs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$where = array();
if ($event_type == "register_outpatient") {
$where["type"] = "= 'urg'";
}
$sejours = $patient->loadRefsSejours($where);
CSejour::massLoadNDA($sejours);
break;
case "A12":
$leftjoin = array("affectation" => "affectation.sejour_id = sejour.sejour_id");
$where = array("patient_id" => "= '{$patient->_id}'", "entree_reelle" => "IS NOT NULL", "affectation_id" => "IS NOT NULL");
$sejour = new CSejour();
/** @var CSejour[] $sejours */
$sejours = $sejour->loadList($where, "entree DESC", null, null, $leftjoin);
$patient->_ref_sejours = $sejours;
CSejour::massLoadNDA($sejours);
CSejour::massLoadBackRefs($sejours, "affectations");
foreach ($sejours as $_sejour) {
$_sejour->_ref_affectations = $_sejour->_back["affectations"];
}
break;
case "A13":
$sejours = $patient->loadRefsSejours(array("sortie_reelle" => "IS NOT NULL"));
CSejour::massLoadNDA($sejours);
break;
case "A38":
$sejours = $patient->loadRefsSejours(array("sortie_reelle" => "IS NULL", "entree_reelle" => "IS NULL"));
CSejour::massLoadNDA($sejours);
break;
case "INSERT":
$where = array("entree_reelle" => "IS NOT NULL");
if ($event_type == "event_change_class_inpatient") {
示例2: array
$sejour = $_affectation->loadRefSejour(1);
$sejour->_ref_curr_affectation = $_affectation;
}
}
}
}
}
/* @var CPatient[] $patients */
$patients = CStoredObject::massLoadFwdRef($sejours, "patient_id");
CPatient::massLoadIPP($patients);
CStoredObject::massLoadBackRefs($patients, "dossier_medical");
CStoredObject::massLoadFwdRef($sejours, "praticien_id");
CStoredObject::massCountBackRefs($sejours, "tasks", array("realise" => "= '0'"), array(), "taches_non_realisees");
CStoredObject::massLoadBackRefs($sejours, "dossier_medical");
CSejour::massLoadSurrAffectation($sejours);
CSejour::massLoadBackRefs($sejours, "user_sejour");
CSejour::massLoadNDA($sejours);
$count_my_patient = 0;
foreach ($sejours as $sejour) {
$count_my_patient += count($sejour->loadRefsUserSejour($userCourant));
$sejour->loadRefPatient();
$sejour->loadRefPraticien();
$sejour->checkDaysRelative($date);
$sejour->loadRefPrescriptionSejour();
$prescription = $sejour->_ref_prescription_sejour;
if ($prescription->_id) {
$prescription->loadJourOp(CMbDT::date());
}
// Chargement des taches non effectuées
$sejour->_count_tasks = $sejour->_count["taches_non_realisees"];
if ($print) {