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