/** * Delete acte * * @param CActe $acte Acte * @param CMbObject $object Object * @param CIdSante400 $idex Idex * * @return String|null */ function deleteActe($acte, $object, $idex) { if ($msg = $idex->delete()) { return $msg; } if ($msg = $acte->delete()) { return $msg; } if ($msg = $object->store()) { return $msg; } return null; }
/** * @see parent::delete() */ function delete() { $this->loadRefCodageCCAM(); if ($msg = parent::delete()) { return $msg; } if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) { $this->loadRefCodageCCAM(); if (isset($this->_ref_codage_ccam)) { if ($this->_ref_codage_ccam->_id) { $this->_ref_codage_ccam->updateRule(true); } } $this->_ref_codage_ccam->store(); } return null; }