本文整理汇总了PHP中CMbDT::bankHolidays方法的典型用法代码示例。如果您正苦于以下问题:PHP CMbDT::bankHolidays方法的具体用法?PHP CMbDT::bankHolidays怎么用?PHP CMbDT::bankHolidays使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMbDT
的用法示例。
在下文中一共展示了CMbDT::bankHolidays方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
foreach ($datetimes as $_datetime) {
$charge[$_planif->sejour_id][$_datetime] = array();
}
}
foreach ($element_prescription->_ref_indices_cout as $_indice_cout) {
$ressource = $_indice_cout->loadRefRessourceSoin();
$planif_date_time = CMbDate::dirac($period, $_planif->dateTime);
$ressources[$ressource->_id] = $ressource;
@($charge[$_planif->sejour_id][$planif_date_time][$ressource->_id] += $_indice_cout->nb);
@($total_sejour[$_planif->sejour_id][$ressource->_id] += $_indice_cout->nb);
@($total_datetime[$planif_date_time][$ressource->_id] += $_indice_cout->nb);
@($total[$ressource->_id] += $_indice_cout->nb);
}
}
}
$bank_holidays = CMbDT::bankHolidays();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("service_id", $service_id);
$smarty->assign("services", $services);
$smarty->assign("bank_holidays", $bank_holidays);
$smarty->assign("datetimes", $datetimes);
$smarty->assign("datetime", $datetime);
$smarty->assign("nb_periods", $nb_periods);
$smarty->assign("period", $period);
$smarty->assign("sejours", $sejours);
$smarty->assign("planifications", $planifications);
$smarty->assign("ressources", $ressources);
$smarty->assign("charge", $charge);
$smarty->assign("nb_unites", $nb_unites);
$smarty->assign("show_cost", $show_cost);