<?php
/**
 * Ce script définit la classe 'nature_defunt'.
 *
 * @package opencimetiere
 */

require_once "../gen/obj/nature_defunt.class.php";

/**
 * Définition de la classe 'nature_defunt' (om_dbform).
 */
class nature_defunt extends nature_defunt_gen {

    /**
     * SETTER_FORM - setVal.
     *
     * @return void
     */
    function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
        parent::setVal($form, $maj, $validation);
        if ($maj == 0) {
            $form->setVal('is_reductible', true);
        }
    }
}
