本文整理匯總了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();