本文整理汇总了PHP中CMediusers::canDo方法的典型用法代码示例。如果您正苦于以下问题:PHP CMediusers::canDo方法的具体用法?PHP CMediusers::canDo怎么用?PHP CMediusers::canDo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMediusers
的用法示例。
在下文中一共展示了CMediusers::canDo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CMediusers
*/
$mode_operation = CValue::get("mode_operation", 0);
$sejour_id = CValue::get("sejour_id", 0);
$patient_id = CValue::get("patient_id", 0);
// Liste des Etablissements selon Permissions
$etablissements = new CMediusers();
$etablissements = $etablissements->loadEtablissements(PERM_READ);
// Chargement des prestations
$prestations = CPrestation::loadCurrentList();
$sejour = new CSejour();
$praticien = new CMediusers();
if ($sejour_id) {
$sejour->load($sejour_id);
$sejour->loadRefsFwd();
$praticien =& $sejour->_ref_praticien;
$praticien->canDo();
$patient =& $sejour->_ref_patient;
$patient->loadRefsSejours();
$sejours =& $patient->_ref_sejours;
} else {
$patient = new CPatient();
$patient->load($patient_id);
$patient->loadRefsSejours();
$sejours =& $patient->_ref_sejours;
}
$sejour->makeDatesOperations();
$sejour->loadNDA();
$sejour->loadRefCurrAffectation()->loadRefService();
$patient->loadRefsFwd();
$patient->loadRefsCorrespondants();
$patient->loadRefsCorrespondantsPatient();
示例2: CConsultation
}
} else {
if ($consult->_id && $consult->patient_id) {
$consult->loadRefPlageConsult();
if ($prat_id !== $consult->_ref_plageconsult->chir_id) {
$consult = new CConsultation();
$selConsult = null;
CValue::setSession("selConsult");
}
}
}
// On charge le praticien
$userSel = new CMediusers();
$userSel->load($prat_id);
$userSel->loadRefFunction();
$canUserSel = $userSel->canDo();
if (!$consult->_id) {
if ($current_m == "dPurgences") {
CAppUI::setMsg("Vous devez selectionner une consultation", UI_MSG_ALERT);
CAppUI::redirect("m=urgences&tab=0");
}
$smarty = new CSmartyDP();
$smarty->assign("consult", $consult);
$smarty->assign("current_m", $current_m);
$smarty->assign("date", $date);
$smarty->assign("vue", $vue);
$smarty->assign("userSel", $userSel);
$smarty->display("../../dPcabinet/templates/edit_consultation.tpl");
CApp::rip();
}
$consult->canDo()->needsEdit(array("selConsult" => null));
示例3: CMediusers
* @category Dossier patient
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkRead();
$object_class = CView::get("object_class", "str");
$object_id = CView::get("object_id", "num pos");
$patient_id = CView::get("patient_id", "num pos");
$praticien_id = CView::get("praticien_id", "num pos");
CView::checkin();
$object = new $object_class();
$object->load($object_id);
$object->countDocItems();
$user = CMediusers::get();
// Praticien concerné
if (!$user->isPraticien() && $praticien_id) {
$user = new CMediusers();
$user->load($praticien_id);
}
$user->loadRefFunction();
$user->_ref_function->loadRefGroup();
$user->canDo();
$compte_rendu = new CCompteRendu();
$smarty = new CSmartyDP();
$smarty->assign("object", $object);
$smarty->assign("praticien", $user);
$smarty->assign("patient_id", $patient_id);
$smarty->display("inc_widget_count_documents.tpl");