本文整理汇总了PHP中CFunctions::getDS方法的典型用法代码示例。如果您正苦于以下问题:PHP CFunctions::getDS方法的具体用法?PHP CFunctions::getDS怎么用?PHP CFunctions::getDS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFunctions
的用法示例。
在下文中一共展示了CFunctions::getDS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CMediusers
$prat_id = CValue::getOrSession("praticien_id");
$function_id = CValue::get("function_id");
if (!$prat_id && !$function_id) {
$prat_id = $user->_id;
}
$prat = new CMediusers();
$where = array();
if ($function_id) {
$where["function_id"] = " = '{$function_id}'";
} else {
$where["user_id"] = " = '{$prat_id}'";
}
$prats = $prat->loadList($where);
$function = new CFunctions();
$function->load($function_id);
$ds = $function->getDS();
$calendar = new CPlanningMonth($date);
$calendar->title = htmlentities(CMbDT::format($date, "%B %Y"));
foreach ($prats as $_prat) {
// plages de congés (si mode prat)
if (!$function_id && CModule::getActive("dPpersonnel")) {
$plage_cong = new CPlageConge();
$plages_cong = $plage_cong->loadListForRange($_prat->_id, $calendar->date_min, $calendar->date_max);
foreach ($plages_cong as $_conge) {
$first_day = $_conge->date_debut;
$last_day = $_conge->date_fin;
$replaced_by = new CMediusers();
$replaced_by->load($_conge->replacer_id);
while ($last_day >= $first_day) {
$calendar->addClassesForDay("disabled", $first_day);
if ($replaced_by->_id) {