本文整理汇总了PHP中CMediusers::loadEtablissements方法的典型用法代码示例。如果您正苦于以下问题:PHP CMediusers::loadEtablissements方法的具体用法?PHP CMediusers::loadEtablissements怎么用?PHP CMediusers::loadEtablissements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMediusers
的用法示例。
在下文中一共展示了CMediusers::loadEtablissements方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CMediusers
$currProc->getEtatRedac();
$currProc->loadLastActif();
$currProc->loadLastEntry();
$currProc->loadFirstEntry();
}
// Procédure en Cours de demande
$procDemande = CDocGed::loadProcDemande($user->_id);
foreach ($procDemande as $keyProc => &$currProc) {
$currProc->loadRefs();
$currProc->getEtatRedac();
$currProc->loadLastActif();
$currProc->loadLastEntry();
}
// Procédure en Attente de Rédaction
$procEnCours = CDocGed::loadProcRedacAndValid($user->_id);
foreach ($procEnCours as $keyProc => &$currProc) {
$currProc->loadRefs();
$currProc->getEtatRedac();
$currProc->loadLastEntry();
}
// Liste des Etablissements selon Permissions
$mediuser = new CMediusers();
$etablissements = $mediuser->loadEtablissements(PERM_READ);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("etablissements", $etablissements);
$smarty->assign("procTermine", $procTermine);
$smarty->assign("procDemande", $procDemande);
$smarty->assign("procEnCours", $procEnCours);
$smarty->assign("docGed", $docGed);
$smarty->display("vw_procencours.tpl");
示例2: CIntervHorsPlage
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
global $can, $m, $tab;
CCanDo::checkRead();
$hors_plage = new CIntervHorsPlage();
if (!$hors_plage->canRead()) {
$can->redirect();
}
// Toutes les salles des blocs
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_READ);
// Les salles autorisées
$salle = new CSalle();
$listSalles = $salle->loadListWithPerms(PERM_READ);
// Liste des Etablissements selon Permissions
$etablissements = CMediusers::loadEtablissements(PERM_READ);
// Chargement des prestations
$prestations = CPrestation::loadCurrentList();
$operation_id = CValue::getOrSession("operation_id");
$chir_id = CAppUI::conf("dPplanningOp COperation use_session_praticien") ? CValue::getOrSession("chir_id") : CValue::get("chir_id");
$sejour_id = CValue::get("sejour_id");
$hour_urgence = CValue::get("hour_urgence");
$min_urgence = CValue::get("min_urgence");
$date_urgence = CValue::get("date_urgence");
$salle_id = CValue::get("salle_id");
$patient_id = CValue::get("pat_id");
$grossesse_id = CValue::get("grossesse_id");
$consult_related_id = CValue::get("consult_related_id");
// L'utilisateur est-il un praticien
$user = $chir = CMediusers::get();
if ($chir->isPraticien() and !$chir_id) {
示例3: CModule
$setup = new $setupclass();
$module = new CModule();
$module->compareToSetup($setup);
$obsolete_module = $module->_upgradable;
}
// Feed module with tabs
require "./modules/{$module->mod_name}/index.php";
if ($tab !== null) {
$module->addConfigureTab();
}
if (!$a || $a === "index") {
$tab = $module->getValidTab($tab);
}
if (!$suppressHeaders) {
// Liste des Etablissements
$etablissements = CMediusers::loadEtablissements(PERM_EDIT);
//current Group
$current_group = CGroups::loadCurrent();
// Messages
$messages = new CMessage();
$messages = $messages->loadPublications("present", $m, $g);
// Mails
$mails = CUserMessageDest::loadNewMessages();
// Creation du Template
$tplHeader = new CSmartyDP("style/{$uistyle}");
$tplHeader->assign("offline", false);
$tplHeader->assign("nodebug", true);
$tplHeader->assign("obsolete_module", $obsolete_module);
$tplHeader->assign("localeInfo", $locale_info);
// Favicon
$tplHeader->assign("mediboardShortIcon", CFaviconLoader::loadFile("style/{$uistyle}/images/icons/favicon.ico"));