/** * Charge l'activité CdARR associée * * @return CActiviteCdARR */ function loadRefActiviteCdARR() { $activite = CActiviteCdARR::get($this->code_activite_cdarr); $this->_view = $activite->_view; return $this->_ref_activite_cdarr = $activite; }
<?php /** * $Id$ * * @package Mediboard * @subpackage SSR * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkRead(); $code = CValue::get("code"); $activite = CActiviteCdARR::get($code); if (!$activite->code) { CAppUI::stepMessage(UI_MSG_ERROR, "Activité CdARR '{$code}' non trouvée"); return; } $activite->loadRefsElementsByCat(); $activite->loadRefsAllExecutants(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("activite", $activite); $smarty->display("vw_activite_srr_stats.tpl");
/** * Chargement de l'activité associée * * @return CActiviteCdARR */ function loadRefActiviteCdARR() { $activite = CActiviteCdARR::get($this->code); $activite->loadRefTypeActivite(); return $this->_ref_activite_cdarr = $activite; }
/** * Ajout d'un chapitre d'un acte de rééducation * * @param DOMNode $elParent Node * @param CRHS $mbRhs RHS * * @return void */ function addChapitreActeReeducation(DOMNode $elParent, CRHS $mbRhs) { $totauxType = $mbRhs->countTypeActivite(); foreach ($totauxType as $mnemonique => $_total_type) { if (!$_total_type) { continue; } $chapitreActeReeducation = $this->addElement($elParent, "chapitreActeReeducation"); $this->addAttribute($chapitreActeReeducation, "mnemonique", strtolower($mnemonique)); $this->addElement($chapitreActeReeducation, "duree", $_total_type); $this->addElement($chapitreActeReeducation, "commentaire", CActiviteCdARR::get($mnemonique)->libelle); } }