本文整理汇总了PHP中CMbDT::timeGetNearestMinsWithInterval方法的典型用法代码示例。如果您正苦于以下问题:PHP CMbDT::timeGetNearestMinsWithInterval方法的具体用法?PHP CMbDT::timeGetNearestMinsWithInterval怎么用?PHP CMbDT::timeGetNearestMinsWithInterval使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMbDT
的用法示例。
在下文中一共展示了CMbDT::timeGetNearestMinsWithInterval方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: min
$plage->_ref_chir->loadRefsFwd();
$plage->multicountOperations();
$nbIntervNonPlacees += $plage->_count_operations - $plage->_count_operations_placees;
$plage->loadAffectationsPersonnel();
$plage->fin = min($plage->fin, $max);
$plage->debut = max($plage->debut, $min);
$plage->updateFormFields();
$plage->makeView();
if ($plage->debut >= $plage->fin) {
unset($listPlages[$keyDate][$plage->_id]);
}
}
// Remplissage du tableau de visualisation
foreach ($listPlages[$keyDate] as $plage) {
$plage->debut = CMbDT::timeGetNearestMinsWithInterval($plage->debut, CPlageOp::$minutes_interval);
$plage->fin = CMbDT::timeGetNearestMinsWithInterval($plage->fin, CPlageOp::$minutes_interval);
$plage->_nbQuartHeure = CMbDT::timeCountIntervals($plage->debut, $plage->fin, "00:" . CPlageOp::$minutes_interval . ":00");
for ($time = $plage->debut; $time < $plage->fin; $time = CMbDT::time("+" . CPlageOp::$minutes_interval . " minutes", $time)) {
$affichages["{$keyDate}-{$time}"] = "full";
}
$affichages["{$keyDate}-{$plage->debut}"] = $plage->_id;
}
// Ajout des interventions hors plage
foreach ($horsPlages as $_op) {
if ($_op->salle_id) {
$affichages["{$keyDate}-HorsPlage"][$_op->_id] = $_op;
}
}
}
//Création du template
$smarty = new CSmartyDP();