<?php
/**
 * Ce script définit la classe 'inhumation_colombarium'.
 *
 * @package opencimetiere
 * @version SVN : $Id$
 */

require_once "../obj/inhumation.class.php";

/**
 * Définition de la classe 'inhumation_colombarium' (om_dbform).
 *
 * Surcharge de la classe 'inhumation'.
 */
class inhumation_colombarium extends inhumation {

    /**
     * @var string
     */
    protected $_absolute_class_name = "inhumation_colombarium";

    /**
     * @var string
     */
    var $emplacement_nature = 'colombarium';

    /**
     * SETTER_FORM - setSelect.
     *
     * @return void
     */
    function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
        parent::setSelect($form, $maj);
        //
        if($maj<2){
            $this->init_select(
                $form,
                $this->f->get_db_reference(),
                $maj,
                null,
                "defunt_nature",
                $this->get_var_sql_forminc__sql("defunt_nature"),
                $this->get_var_sql_forminc__sql("defunt_nature_by_id"),
                true
            );
        }
    }
}
