本文整理汇总了PHP中CModule::canAdmin方法的典型用法代码示例。如果您正苦于以下问题:PHP CModule::canAdmin方法的具体用法?PHP CModule::canAdmin怎么用?PHP CModule::canAdmin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CModule
的用法示例。
在下文中一共展示了CModule::canAdmin方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
// Chargement des boxes d'urgences
$boxes = array();
foreach (CService::loadServicesUHCD() as $service) {
foreach ($service->_ref_chambres as $chambre) {
foreach ($chambre->_ref_lits as $lit) {
$boxes[$lit->_id] = $lit;
}
}
}
// Si admin sur le module urgences, alors modification autorisée du diagnostic
// infirmier depuis la main courante.
$module = new CModule();
$module->mod_name = "dPurgences";
$module->loadMatchingObject();
$admin_urgences = $module->canAdmin();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("boxes", $boxes);
$smarty->assign("order_col", $order_col);
$smarty->assign("order_way", $order_way);
$smarty->assign("listPrats", $listPrats);
$smarty->assign("listSejours", $listSejours);
$smarty->assign("uhcd_affichage", $uhcd_affichage);
$smarty->assign("medicalView", $medicalView);
$smarty->assign("date", $date);
$smarty->assign("date_before", $date_before);
$smarty->assign("today", CMbDT::date());
$smarty->assign("isImedsInstalled", CModule::getActive("dPImeds") && CImeds::getTagCIDC(CGroups::loadCurrent()));
$smarty->assign("admin_urgences", $admin_urgences);
$smarty->assign("type", "UHCD");
示例2: CModule
<?php
/* $Id: $ */
/**
* @package Mediboard
* @subpackage dPsante400
* @version $Revision: $
* @author SARL OpenXtrem
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
*/
$module = new CModule();
$module->mod_name = "dPadmissions";
$module->loadMatchingObject();
$admin_admission = $module->canAdmin();
$module = new CModule();
$module->mod_name = "sip";
$module->loadMatchingObject();
$sip_active = $module->mod_active;
$idex_value = CValue::get("id400");
$object_id = CValue::get("object_id");
$idex = new CIdSante400();
$idex->id400 = $idex_value;
$idex->object_id = $object_id;
$idex->loadMatchingObject();
$group_id = CGroups::loadCurrent()->_id;
$idexs = array();
$idex_id = null;
if ($idex->_id) {
$filter = new CIdSante400();
$filter->object_class = $idex->object_class;
$filter->object_id = $idex->object_id;