本文整理汇总了PHP中CCanDo::read方法的典型用法代码示例。如果您正苦于以下问题:PHP CCanDo::read方法的具体用法?PHP CCanDo::read怎么用?PHP CCanDo::read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCanDo
的用法示例。
在下文中一共展示了CCanDo::read方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$_operation->loadRefPlageOp();
}
}
foreach ($patient->loadRefsConsultations() as $_consult) {
$_consult->getType();
$_consult->loadRefPlageConsult();
$function = $_consult->loadRefPraticien()->loadRefFunction();
if ($_consult->sejour_id) {
unset($patient->_ref_consultations[$_consult->_id]);
if (isset($patient->_ref_sejours[$_consult->sejour_id])) {
$patient->_ref_sejours[$_consult->sejour_id]->_ref_consultations[$_consult->_id] = $_consult;
}
}
if ($function->group_id != $group->_id) {
unset($patient->_ref_consultations[$_consult->_id]);
continue;
}
$_consult->loadRefFacture()->loadRefsNotes();
}
$consultation = new CConsultation();
$consultation->load($consultation_id);
$consultation->loadRefConsultAnesth();
if (CCanDo::read()) {
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("is_anesth", $is_anesth);
$smarty->assign("consultation", $consultation);
$smarty->assign("patient", $patient);
$smarty->assign("show_dhe_ecap", CValue::get("show_dhe_ecap", 1));
$smarty->display("httpreq_get_last_refs.tpl");
}
示例2: array
<?php
/**
* dPbloc
*
* @category Bloc
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version SVN: $Id:$
* @link http://www.mediboard.org
*/
CCanDo::read();
$listBlocs = CGroups::loadCurrent()->loadBlocs();
$listSalles = array();
foreach ($listBlocs as $_bloc) {
$listSalles = $listSalles + $_bloc->loadRefsSalles();
}
$salle = new CSalle();
$salle->load(CValue::get("salle_id"), reset($listSalles)->_id);
$salle->loadRefBloc();
$date = CValue::get("date", CMbDT::date());
// Liste des jours
$listDays = array();
for ($i = 0; $i < 19 * 7; $i += 7) {
$dateArr = CMbDT::date("+{$i} day", $date);
$listDays[$dateArr] = $dateArr;
}
// Création du tableau de visualisation
$affichages = array();
foreach ($listDays as $keyDate => $valDate) {
示例3: CUserLog
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::check();
$dialog = CValue::get("dialog");
$start = CValue::get("start", 0);
$stats = CValue::get("stats", 0);
$period = CValue::get("period", "day");
$csv = CValue::get("csv", 0);
if (!CCanDo::read() && !$dialog) {
global $can;
$can->redirect();
}
$filter = new CUserLog();
if (!$dialog) {
$filter->_date_min = CValue::getOrSession("_date_min");
$filter->_date_max = CValue::getOrSession("_date_max");
$filter->user_id = CValue::getOrSession("user_id");
$filter->object_id = CValue::getOrSession("object_id");
$filter->object_class = CValue::getOrSession("object_class");
$filter->type = CValue::getOrSession("type");
} else {
$filter->_date_min = CValue::get("_date_min");
$filter->_date_max = CValue::get("_date_max");
$filter->user_id = CValue::get("user_id");