/** * Load context * * @return CConsultation|CSejour|CPatient */ function loadRefContext() { if ($this->context_class && $this->context_id) { $this->_ref_context = new $this->context_class(); $this->_ref_context = $this->_ref_context->getCached($this->context_id); } }