本文整理匯總了PHP中CSejour::loadRefsAffectations方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSejour::loadRefsAffectations方法的具體用法?PHP CSejour::loadRefsAffectations怎麽用?PHP CSejour::loadRefsAffectations使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSejour
的用法示例。
在下文中一共展示了CSejour::loadRefsAffectations方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$atc_classes = array();
$datetime_min = "";
if ($period) {
$datetime_min = CMbDT::dateTime("- {$period} HOURS");
}
// Chargement du sejour
$sejour = new CSejour();
$sejour->load($sejour_id);
$sejour->loadNDA();
$sejour->loadExtDiagnostics();
$sejour->loadRefsConsultAnesth();
$sejour->_ref_consult_anesth->loadRefConsultation();
$sejour->canRead();
// Chargement des affectations
$sejour->loadRefCurrAffectation()->loadRefLit();
foreach ($sejour->loadRefsAffectations() as $_affectation) {
$_affectation->loadRefLit();
}
// Chargement des tâches
foreach ($sejour->loadRefsTasks() as $_task) {
$_task->loadRefPrescriptionLineElement();
$_task->setDateAndAuthor();
$_task->loadRefAuthor();
$_task->loadRefAuthorRealise();
}
// Chargement des opérations
$sejour->loadRefsOperations();
foreach ($sejour->_ref_operations as $_interv) {
$_interv->loadRefChir();
$_interv->loadRefAnesth();
$_interv->loadRefPlageOp();
示例2: cmp_dateAsc
}
return $arrA->_datetime < $arrB->_datetime ? -1 : 1;
}
function cmp_dateAsc($arrA, $arrB)
{
if ($arrA->_datetime == $arrB->_datetime) {
return 0;
}
return $arrA->_datetime > $arrB->_datetime ? -1 : 1;
}
// Récuperation du sejour sélectionné
$sejour = new CSejour();
$sejour->load($sejour_id);
$sejour->loadRefs();
$sejour->loadRefService();
$sejour->loadRefsAffectations();
$operations = $sejour->_ref_operations;
$affectations = $sejour->_ref_affectations;
$datesOperation = array();
// load service for affectations
if ($sejour->_ref_last_affectation) {
$sejour->_ref_last_affectation->loadRefService();
}
foreach ($operations as $key) {
$key->loadRefPlageOp();
$datesOperation[$key->operation_id]['id'] = $key->operation_id;
$datesOperation[$key->operation_id]['date'] = $key->_datetime;
$datesOperation[$key->operation_id]['entree_salle'] = $key->entree_salle;
$datesOperation[$key->operation_id]['sortie_salle'] = $key->sortie_salle;
$datesOperation[$key->operation_id]['entree_reveil'] = $key->entree_reveil;
$datesOperation[$key->operation_id]['sortie_reveil_possible'] = $key->sortie_reveil_possible;