当前位置: 首页>>代码示例>>PHP>>正文


PHP CMediusers::loadProfessionnelDeSanteByPref方法代码示例

本文整理汇总了PHP中CMediusers::loadProfessionnelDeSanteByPref方法的典型用法代码示例。如果您正苦于以下问题:PHP CMediusers::loadProfessionnelDeSanteByPref方法的具体用法?PHP CMediusers::loadProfessionnelDeSanteByPref怎么用?PHP CMediusers::loadProfessionnelDeSanteByPref使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CMediusers的用法示例。


在下文中一共展示了CMediusers::loadProfessionnelDeSanteByPref方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: CMediusers

        $utilisation_func = utilisation_rdv($plages_func, $listPlace, $plage);
    }
    if ($display_nb_consult == "etab") {
        $where["chir_id"] = CSQLDataSource::prepareIn(array_keys($listAllPrat));
        /** @var CPlageconsult[] $plages_etab */
        $plages_etab = $plage->loadList($where);
        $utilisation_etab = utilisation_rdv($plages_etab, $listPlace, $plage);
    }
    // next consult
    $next_plage = $plage->getNextPlage();
    // previous consult
    $previous_plage = $plage->getPreviousPlage();
}
// user's function available
$mediuser = new CMediusers();
$mediusers = $mediuser->loadProfessionnelDeSanteByPref(PERM_READ, $function_id);
// Vérifier le droit d'écriture sur la plage sélectionnée
$plage->canDo();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("plageconsult_id", $plageconsult_id);
$smarty->assign("plage", $plage);
$smarty->assign("listPlace", $listPlace);
$smarty->assign("next_plage", $next_plage);
$smarty->assign("list_users", $mediusers);
$smarty->assign("previous_plage", $previous_plage);
$smarty->assign("listBefore", $listBefore);
$smarty->assign("listAfter", $listAfter);
$smarty->assign("quotas", $quotas);
$smarty->assign("multiple", $multiple);
$smarty->assign("consultation", $consultation_target);
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:httpreq_list_places.php

示例2: array

        $_chir->loadRefFunction();
    }
} else {
    $listChir = CConsultation::loadPraticiens(PERM_EDIT);
}
// Liste des consultations a avancer si desistement
$ds = $plage->getDS();
$now = CMbDT::date();
// get desistements
$count_si_desistement = CConsultation::countDesistementsForDay($function_id ? array_keys($listChir) : array($chirSel), $now);
// Liste des praticiens
$fnc = new CFunctions();
$listFnc = $fnc->loadListWithPerms(PERM_READ, array("group_id" => " = '{$group->_id}' "), 'text');
$mediuser = new CMediusers();
foreach ($listFnc as $id => $_fnc) {
    $users = $mediuser->loadProfessionnelDeSanteByPref(PERM_READ, $_fnc->_id, null, true);
    if (!count($users)) {
        unset($listFnc[$id]);
    }
}
// if only one function and function_id
if (count($listFnc) == 1 && !$chirSel) {
    $function_id = reset($listFnc)->_id;
}
// Période
$today = CMbDT::date();
$debut = CValue::getOrSession("debut", $today);
$debut = CMbDT::date("last sunday", $debut);
$fin = CMbDT::date("next sunday", $debut);
$debut = CMbDT::date("+1 day", $debut);
$prev = CMbDT::date("-1 week", $debut);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_planning_new.php

示例3: array

$where = CValue::get('where', array());
$whereComplex = CValue::get('whereComplex', array());
$ljoin = CValue::get("ljoin", array());
CSessionHandler::writeClose();
/** @var CMediusers $object */
$object = new CMediusers();
$user = CMediusers::get();
$use_edit = CAppUI::pref("useEditAutocompleteUsers");
if (!$edit && $use_edit) {
    $edit = 1;
}
// Droits sur les utilisateurs retournés
$permType = $edit ? PERM_EDIT : PERM_READ;
// Récupération de la liste des utilisateurs
if ($rdv) {
    $listUsers = $object->loadProfessionnelDeSanteByPref($permType, null, $keywords);
} elseif ($praticiens) {
    $listUsers = $object->loadPraticiens($permType, null, $keywords);
} else {
    $listUsers = $object->loadUsers($permType, null, $keywords);
}
if ($compta) {
    $listUsersCompta = CConsultation::loadPraticiensCompta();
    foreach ($listUsers as $_user) {
        if (!isset($listUsersCompta[$_user->_id])) {
            unset($listUsers[$_user->_id]);
        }
    }
}
$template = $object->getTypedTemplate("autocomplete");
// Création du template
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_users_autocomplete.php

示例4: loadPraticiens

 /**
  * Charge les praticiens susceptibles d'être concernés par les consultation
  * en fonction de les préférences utilisateurs
  *
  * @param int    $permType    Type de permission
  * @param ref    $function_id Fonction spécifique
  * @param string $name        Nom spécifique
  * @param bool   $secondary   Chercher parmi les fonctions secondaires
  * @param bool   $actif       Seulement les actifs
  *
  * @return CMediusers[]
  */
 static function loadPraticiens($permType = PERM_READ, $function_id = null, $name = null, $secondary = false, $actif = true)
 {
     $user = new CMediusers();
     return $user->loadProfessionnelDeSanteByPref($permType, $function_id, $name, $secondary, $actif);
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:17,代码来源:CConsultation.class.php

示例5: unset

        unset($plageSel->_ref_consultations[$keyConsult]);
        continue;
    }
    $consultation->loadRefSejour(1);
    $consultation->loadRefPatient(1);
    $consultation->loadRefCategorie(1);
    $consultation->countDocItems();
}
if ($chirSel && $plageSel->chir_id != $chirSel) {
    $plageconsult_id = null;
    $plageSel = new CPlageconsult();
}
CValue::setSession("plageconsult_id", $plageconsult_id);
// Liste des chirurgiens
$mediusers = new CMediusers();
$listChirs = $mediusers->loadProfessionnelDeSanteByPref(PERM_EDIT);
$listDaysSelect = array();
for ($i = 0; $i < 7; $i++) {
    $dateArr = CMbDT::date("+{$i} day", $debut);
    $listDaysSelect[$dateArr] = $dateArr;
}
$holidays = CMbDate::getHolidays();
// Variable permettant de compter les jours pour la suppression du samedi et du dimanche
$i = 0;
// Détermination des bornes du semainier
$min = CPlageconsult::$hours_start . ":" . reset(CPlageconsult::$minutes) . ":00";
$max = CPlageconsult::$hours_stop . ":" . end(CPlageconsult::$minutes) . ":00";
// Extension du semainier s'il y a des plages qui dépassent des bornes
// de configuration hours_start et hours_stop
$hours = CPlageconsult::$hours;
$min_hour = sprintf("%01d", CMbDT::transform($min, null, "%H"));
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:edit_plage_consultation.php

示例6: CFunctions

 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$function_id = CValue::getOrSession("function_id");
$date = CValue::getOrSession("date");
// filters
$show_free = CValue::get("show_free", 1);
$cancelled = CValue::get("cancelled");
$hide_in_conge = CValue::get("hide_in_conge", 0);
$facturated = CValue::get("facturated");
$finished = CValue::get("finished");
$actes = CValue::get("actes");
$function = new CFunctions();
$function->load($function_id);
$muser = new CMediusers();
$musers = $muser->loadProfessionnelDeSanteByPref(PERM_READ, $function_id, null, true);
$planning = new CPlanningWeek(0, 0, count($musers), count($musers), false, "auto");
$planning->title = "Planning du " . htmlentities(CMbDT::format($date, "%A %d %B %Y"));
$planning->guid = "planning_j_n";
$planning->dragndrop = 1;
$planning->hour_divider = 12;
$planning->show_half = true;
$i = 0;
foreach ($musers as $_user) {
    $user_id = $_user->_id;
    // plages conge
    $conge = new CPlageConge();
    $where = array();
    $where["date_debut"] = " <= '{$date}'";
    $where["date_fin"] = " >= '{$date}'";
    $where["user_id"] = " = '{$_user->_id}'";
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_vw_journee_new.php


注:本文中的CMediusers::loadProfessionnelDeSanteByPref方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。