[opendebitdeboisson-commits] r385 - in branches/poc-upgrade-om-4.10: gen/obj gen/sql/pgsql obj

0 views
Skip to first unread message

fmi...@adullact.net

unread,
Aug 8, 2019, 7:00:34 AM8/8/19
to openmairie-ope...@googlegroups.com
Author: fmichon
Date: 2019-08-08 13:00:30 +0200 (Thu, 08 Aug 2019)
New Revision: 385

Modified:
branches/poc-upgrade-om-4.10/gen/obj/adresse_postale.class.php
branches/poc-upgrade-om-4.10/gen/obj/courrier.class.php
branches/poc-upgrade-om-4.10/gen/obj/demande_licence.class.php
branches/poc-upgrade-om-4.10/gen/obj/dossier.class.php
branches/poc-upgrade-om-4.10/gen/obj/etablissement.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_collectivite.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_dashboard.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_droit.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_etat.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_lettretype.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_logo.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_parametre.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_permission.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_profil.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_requete.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_sig_extent.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_sig_flux.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_sig_map.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_comp.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_flux.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_sousetat.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_utilisateur.class.php
branches/poc-upgrade-om-4.10/gen/obj/om_widget.class.php
branches/poc-upgrade-om-4.10/gen/obj/perimetre.class.php
branches/poc-upgrade-om-4.10/gen/obj/qualite_exploitant.class.php
branches/poc-upgrade-om-4.10/gen/obj/rivoli.class.php
branches/poc-upgrade-om-4.10/gen/obj/statut_demande.class.php
branches/poc-upgrade-om-4.10/gen/obj/terme.class.php
branches/poc-upgrade-om-4.10/gen/obj/titre_de_civilite.class.php
branches/poc-upgrade-om-4.10/gen/obj/type_demande.class.php
branches/poc-upgrade-om-4.10/gen/obj/type_etablissement.class.php
branches/poc-upgrade-om-4.10/gen/obj/type_licence.class.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/adresse_postale.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/courrier.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/demande_licence.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/dossier.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/etablissement.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_collectivite.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_dashboard.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_droit.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_etat.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_lettretype.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_logo.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_parametre.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_permission.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_profil.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_requete.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_extent.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_flux.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_comp.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_flux.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sousetat.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_utilisateur.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_widget.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/perimetre.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/qualite_exploitant.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/rivoli.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/statut_demande.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/terme.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/titre_de_civilite.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_demande.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_etablissement.inc.php
branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_licence.inc.php
branches/poc-upgrade-om-4.10/obj/opendebitdeboisson.class.php
Log:
* Reg?\195?\169n?\195?\169r?\195?\169ation compl?\195?\168te et ajout du nom de package.


Modified: branches/poc-upgrade-om-4.10/gen/obj/adresse_postale.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/adresse_postale.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/adresse_postale.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,26 +1,62 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *adresse_postale_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *adresse_postale_gen*.
+ */
class adresse_postale_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "adresse_postale";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "adresse_postale";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "adresse_postale";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"adresse_postale"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -27,8 +63,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -41,72 +76,69 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['adresse_postale'])) {
- $this->valF['adresse_postale'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["adresse_postale"])) {
+ $this->valF["adresse_postale"] = ""; // -> requis
} else {
- $this->valF['adresse_postale'] = $val['adresse_postale'];
+ $this->valF["adresse_postale"] = $val["adresse_postale"];
}
- if ($val['rivoli'] == "") {
- $this->valF['rivoli'] = NULL;
+ if ($val["rivoli"] == "") {
+ $this->valF["rivoli"] = null;
} else {
- $this->valF['rivoli'] = $val['rivoli'];
+ $this->valF["rivoli"] = $val["rivoli"];
}
- if (!is_numeric($val['numero'])) {
- $this->valF['numero'] = NULL;
+ if (!is_numeric($val["numero"])) {
+ $this->valF["numero"] = null;
} else {
- $this->valF['numero'] = $val['numero'];
+ $this->valF["numero"] = $val["numero"];
}
- if ($val['complement'] == "") {
- $this->valF['complement'] = NULL;
+ if ($val["complement"] == "") {
+ $this->valF["complement"] = null;
} else {
- $this->valF['complement'] = $val['complement'];
+ $this->valF["complement"] = $val["complement"];
}
- if ($val['libelle'] == "") {
- $this->valF['libelle'] = NULL;
+ if ($val["libelle"] == "") {
+ $this->valF["libelle"] = null;
} else {
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["libelle"] = $val["libelle"];
}
- if ($val['geom'] == "") {
- unset($this->valF['geom']);
+ if ($val["geom"] == "") {
+ unset($this->valF["geom"]);
} else {
- $this->valF['geom'] = $val['geom'];
+ $this->valF["geom"] = $val["geom"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("adresse_postale", "hidden");
$form->setType("rivoli", "text");
$form->setType("numero", "text");
@@ -114,9 +146,8 @@
$form->setType("libelle", "text");
$form->setType("geom", "geom");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("adresse_postale", "hiddenstatic");
$form->setType("rivoli", "text");
$form->setType("numero", "text");
@@ -124,9 +155,8 @@
$form->setType("libelle", "text");
$form->setType("geom", "geom");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("adresse_postale", "hiddenstatic");
$form->setType("rivoli", "hiddenstatic");
$form->setType("numero", "hiddenstatic");
@@ -134,9 +164,8 @@
$form->setType("libelle", "hiddenstatic");
$form->setType("geom", "geom");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("adresse_postale", "static");
$form->setType("rivoli", "static");
$form->setType("numero", "static");
@@ -144,17 +173,18 @@
$form->setType("libelle", "static");
$form->setType("geom", "geom");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('adresse_postale','VerifNum(this)');
- $form->setOnchange('numero','VerifNum(this)');
+ $form->setOnchange("adresse_postale", "VerifNum(this)");
+ $form->setOnchange("numero", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("adresse_postale", 11);
@@ -166,7 +196,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("adresse_postale", 11);
@@ -177,21 +207,23 @@
$form->setMax("geom", 551424);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('adresse_postale', __('adresse_postale'));
- $form->setLib('rivoli', __('rivoli'));
- $form->setLib('numero', __('numero'));
- $form->setLib('complement', __('complement'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('geom', __('geom'));
+ $form->setLib("adresse_postale", __("adresse_postale"));
+ $form->setLib("rivoli", __("rivoli"));
+ $form->setLib("numero", __("numero"));
+ $form->setLib("complement", __("complement"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("geom", __("geom"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// geom
if ($maj == 1 || $maj == 3) {
$contenu = array();
@@ -200,20 +232,11 @@
}
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/courrier.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/courrier.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/courrier.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *courrier_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *courrier_gen*.
+ */
class courrier_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "courrier";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "courrier";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "courrier";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"courrier",
"etablissement",
@@ -17,17 +49,26 @@
"fichier_finalise",
"modele_lettre_type"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"etablissement" => array("etablissement", "etablissement_permanent", "etablissement_temporaire", ),
);
+
+ /**
+ * Liste des champs avec un type abstrait.
+ * @var null|array
+ */
var $abstract_type = array(
"fichier" => "file",
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("date_courrier");
@@ -34,8 +75,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -51,8 +91,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_etablissement.
*/
function get_var_sql_forminc__sql_etablissement() {
return "SELECT etablissement.etablissement, etablissement.raison_sociale FROM ".DB_PREFIXE."etablissement ORDER BY etablissement.raison_sociale ASC";
@@ -59,121 +98,115 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_etablissement_by_id.
*/
function get_var_sql_forminc__sql_etablissement_by_id() {
return "SELECT etablissement.etablissement, etablissement.raison_sociale FROM ".DB_PREFIXE."etablissement WHERE etablissement = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['courrier'])) {
- $this->valF['courrier'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["courrier"])) {
+ $this->valF["courrier"] = ""; // -> requis
} else {
- $this->valF['courrier'] = $val['courrier'];
+ $this->valF["courrier"] = $val["courrier"];
}
- if ($val['date_courrier'] != "") {
- $this->valF['date_courrier'] = $this->dateDB($val['date_courrier']);
+ if ($val["date_courrier"] != "") {
+ $this->valF["date_courrier"] = $this->dateDB($val["date_courrier"]);
} else {
- $this->valF['date_courrier'] = NULL;
+ $this->valF["date_courrier"] = null;
}
- $this->valF['modele_lettre_type'] = $val['modele_lettre_type'];
- if ($val['objet'] == "") {
- $this->valF['objet'] = NULL;
+ $this->valF["modele_lettre_type"] = $val["modele_lettre_type"];
+ if ($val["objet"] == "") {
+ $this->valF["objet"] = null;
} else {
- $this->valF['objet'] = $val['objet'];
+ $this->valF["objet"] = $val["objet"];
}
- $this->valF['corps_om_html'] = $val['corps_om_html'];
- if ($val['fichier'] == "") {
- $this->valF['fichier'] = NULL;
+ $this->valF["corps_om_html"] = $val["corps_om_html"];
+ if ($val["fichier"] == "") {
+ $this->valF["fichier"] = null;
} else {
- $this->valF['fichier'] = $val['fichier'];
+ $this->valF["fichier"] = $val["fichier"];
}
- if ($val['fichier_finalise'] == 1 || $val['fichier_finalise'] == "t" || $val['fichier_finalise'] == "Oui") {
- $this->valF['fichier_finalise'] = true;
+ if ($val["fichier_finalise"] == 1 || $val["fichier_finalise"] == "t" || $val["fichier_finalise"] == "Oui") {
+ $this->valF["fichier_finalise"] = true;
} else {
- $this->valF['fichier_finalise'] = false;
+ $this->valF["fichier_finalise"] = false;
}
- if (!is_numeric($val['etablissement'])) {
- $this->valF['etablissement'] = ""; // -> requis
+ if (!is_numeric($val["etablissement"])) {
+ $this->valF["etablissement"] = ""; // -> requis
} else {
- $this->valF['etablissement'] = $val['etablissement'];
+ $this->valF["etablissement"] = $val["etablissement"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("courrier", "hidden");
$form->setType("date_courrier", "date");
$form->setType("modele_lettre_type", "text");
$form->setType("objet", "text");
$form->setType("corps_om_html", "html");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("fichier", "upload");
} else {
$form->setType("fichier", "upload2");
}
$form->setType("fichier_finalise", "checkbox");
- if ($this->is_in_context_of_foreign_key("etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("etablissement", "selecthiddenstatic");
} else {
$form->setType("etablissement", "select");
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("courrier", "hiddenstatic");
$form->setType("date_courrier", "date");
$form->setType("modele_lettre_type", "text");
$form->setType("objet", "text");
$form->setType("corps_om_html", "html");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("fichier", "upload");
} else {
$form->setType("fichier", "upload2");
}
$form->setType("fichier_finalise", "checkbox");
- if ($this->is_in_context_of_foreign_key("etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("etablissement", "selecthiddenstatic");
} else {
$form->setType("etablissement", "select");
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("courrier", "hiddenstatic");
$form->setType("date_courrier", "hiddenstatic");
$form->setType("modele_lettre_type", "hiddenstatic");
@@ -183,9 +216,8 @@
$form->setType("fichier_finalise", "hiddenstatic");
$form->setType("etablissement", "selectstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("courrier", "static");
$form->setType("date_courrier", "datestatic");
$form->setType("modele_lettre_type", "static");
@@ -195,18 +227,19 @@
$form->setType("fichier_finalise", "checkboxstatic");
$form->setType("etablissement", "selectstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('courrier','VerifNum(this)');
- $form->setOnchange('date_courrier','fdate(this)');
- $form->setOnchange('etablissement','VerifNum(this)');
+ $form->setOnchange("courrier", "VerifNum(this)");
+ $form->setOnchange("date_courrier", "fdate(this)");
+ $form->setOnchange("etablissement", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("courrier", 11);
@@ -220,7 +253,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("courrier", 11);
@@ -233,23 +266,25 @@
$form->setMax("etablissement", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('courrier', __('courrier'));
- $form->setLib('date_courrier', __('date_courrier'));
- $form->setLib('modele_lettre_type', __('modele_lettre_type'));
- $form->setLib('objet', __('objet'));
- $form->setLib('corps_om_html', __('corps_om_html'));
- $form->setLib('fichier', __('fichier'));
- $form->setLib('fichier_finalise', __('fichier_finalise'));
- $form->setLib('etablissement', __('etablissement'));
+ $form->setLib("courrier", __("courrier"));
+ $form->setLib("date_courrier", __("date_courrier"));
+ $form->setLib("modele_lettre_type", __("modele_lettre_type"));
+ $form->setLib("objet", __("objet"));
+ $form->setLib("corps_om_html", __("corps_om_html"));
+ $form->setLib("fichier", __("fichier"));
+ $form->setLib("fichier_finalise", __("fichier_finalise"));
+ $form->setLib("etablissement", __("etablissement"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// etablissement
$this->init_select(
$form,
@@ -263,24 +298,16 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('etablissement', $this->retourformulaire))
- $form->setVal('etablissement', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
+ $form->setVal("etablissement", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/demande_licence.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/demande_licence.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/demande_licence.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 10/08/2018 17:44
+/**
+ * Ce script contient la définition de la classe *demande_licence_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *demande_licence_gen*.
+ */
class demande_licence_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "demande_licence";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "demande_licence";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "demande_licence";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"date_debut_validite",
"date_demande_licence",
@@ -23,7 +55,12 @@
"type_demande",
"type_licence"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"etablissement" => array("etablissement", "etablissement_permanent", "etablissement_temporaire", ),
"statut_demande" => array("statut_demande", ),
@@ -31,10 +68,9 @@
"type_demande" => array("type_demande", ),
"type_licence" => array("type_licence", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("date_demande_licence");
@@ -41,8 +77,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -66,8 +101,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_etablissement.
*/
function get_var_sql_forminc__sql_etablissement() {
return "SELECT etablissement.etablissement, etablissement.raison_sociale FROM ".DB_PREFIXE."etablissement ORDER BY etablissement.raison_sociale ASC";
@@ -74,8 +108,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_etablissement_by_id.
*/
function get_var_sql_forminc__sql_etablissement_by_id() {
return "SELECT etablissement.etablissement, etablissement.raison_sociale FROM ".DB_PREFIXE."etablissement WHERE etablissement = <idx>";
@@ -82,8 +115,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_statut_demande.
*/
function get_var_sql_forminc__sql_statut_demande() {
return "SELECT statut_demande.statut_demande, statut_demande.libelle FROM ".DB_PREFIXE."statut_demande ORDER BY statut_demande.libelle ASC";
@@ -90,8 +122,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_statut_demande_by_id.
*/
function get_var_sql_forminc__sql_statut_demande_by_id() {
return "SELECT statut_demande.statut_demande, statut_demande.libelle FROM ".DB_PREFIXE."statut_demande WHERE statut_demande = <idx>";
@@ -98,8 +129,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_terme.
*/
function get_var_sql_forminc__sql_terme() {
return "SELECT terme.terme, terme.libelle FROM ".DB_PREFIXE."terme ORDER BY terme.libelle ASC";
@@ -106,8 +136,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_terme_by_id.
*/
function get_var_sql_forminc__sql_terme_by_id() {
return "SELECT terme.terme, terme.libelle FROM ".DB_PREFIXE."terme WHERE terme = <idx>";
@@ -114,8 +143,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_type_demande.
*/
function get_var_sql_forminc__sql_type_demande() {
return "SELECT type_demande.type_demande, type_demande.libelle FROM ".DB_PREFIXE."type_demande ORDER BY type_demande.libelle ASC";
@@ -122,8 +150,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_type_demande_by_id.
*/
function get_var_sql_forminc__sql_type_demande_by_id() {
return "SELECT type_demande.type_demande, type_demande.libelle FROM ".DB_PREFIXE."type_demande WHERE type_demande = <idx>";
@@ -130,8 +157,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_type_licence.
*/
function get_var_sql_forminc__sql_type_licence() {
return "SELECT type_licence.type_licence, type_licence.libelle FROM ".DB_PREFIXE."type_licence ORDER BY type_licence.libelle ASC";
@@ -138,122 +164,118 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_type_licence_by_id.
*/
function get_var_sql_forminc__sql_type_licence_by_id() {
return "SELECT type_licence.type_licence, type_licence.libelle FROM ".DB_PREFIXE."type_licence WHERE type_licence = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['demande_licence'])) {
- $this->valF['demande_licence'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["demande_licence"])) {
+ $this->valF["demande_licence"] = ""; // -> requis
} else {
- $this->valF['demande_licence'] = $val['demande_licence'];
+ $this->valF["demande_licence"] = $val["demande_licence"];
}
- if ($val['date_demande_licence'] != "") {
- $this->valF['date_demande_licence'] = $this->dateDB($val['date_demande_licence']);
+ if ($val["date_demande_licence"] != "") {
+ $this->valF["date_demande_licence"] = $this->dateDB($val["date_demande_licence"]);
}
- if ($val['date_ancienne_demande'] != "") {
- $this->valF['date_ancienne_demande'] = $this->dateDB($val['date_ancienne_demande']);
+ if ($val["date_ancienne_demande"] != "") {
+ $this->valF["date_ancienne_demande"] = $this->dateDB($val["date_ancienne_demande"]);
} else {
- $this->valF['date_ancienne_demande'] = NULL;
+ $this->valF["date_ancienne_demande"] = null;
}
- if (!is_numeric($val['type_demande'])) {
- $this->valF['type_demande'] = ""; // -> requis
+ if (!is_numeric($val["type_demande"])) {
+ $this->valF["type_demande"] = ""; // -> requis
} else {
- $this->valF['type_demande'] = $val['type_demande'];
+ $this->valF["type_demande"] = $val["type_demande"];
}
- if (!is_numeric($val['type_licence'])) {
- $this->valF['type_licence'] = ""; // -> requis
+ if (!is_numeric($val["type_licence"])) {
+ $this->valF["type_licence"] = ""; // -> requis
} else {
- $this->valF['type_licence'] = $val['type_licence'];
+ $this->valF["type_licence"] = $val["type_licence"];
}
- $this->valF['compte_rendu'] = $val['compte_rendu'];
- if (!is_numeric($val['statut_demande'])) {
- $this->valF['statut_demande'] = NULL;
+ $this->valF["compte_rendu"] = $val["compte_rendu"];
+ if (!is_numeric($val["statut_demande"])) {
+ $this->valF["statut_demande"] = null;
} else {
- $this->valF['statut_demande'] = $val['statut_demande'];
+ $this->valF["statut_demande"] = $val["statut_demande"];
}
- if ($val['numero_licence'] == "") {
- $this->valF['numero_licence'] = NULL;
+ if ($val["numero_licence"] == "") {
+ $this->valF["numero_licence"] = null;
} else {
- $this->valF['numero_licence'] = $val['numero_licence'];
+ $this->valF["numero_licence"] = $val["numero_licence"];
}
- if ($val['occasion'] == "") {
- $this->valF['occasion'] = NULL;
+ if ($val["occasion"] == "") {
+ $this->valF["occasion"] = null;
} else {
- $this->valF['occasion'] = $val['occasion'];
+ $this->valF["occasion"] = $val["occasion"];
}
- $this->valF['particularite'] = $val['particularite'];
- if (!is_numeric($val['terme'])) {
- $this->valF['terme'] = ""; // -> requis
+ $this->valF["particularite"] = $val["particularite"];
+ if (!is_numeric($val["terme"])) {
+ $this->valF["terme"] = ""; // -> requis
} else {
- $this->valF['terme'] = $val['terme'];
+ $this->valF["terme"] = $val["terme"];
}
- if ($val['date_debut_validite'] != "") {
- $this->valF['date_debut_validite'] = $this->dateDB($val['date_debut_validite']);
+ if ($val["date_debut_validite"] != "") {
+ $this->valF["date_debut_validite"] = $this->dateDB($val["date_debut_validite"]);
}
- $this->valF['heure_debut'] = $val['heure_debut'];
- if ($val['date_fin_validite'] != "") {
- $this->valF['date_fin_validite'] = $this->dateDB($val['date_fin_validite']);
+ $this->valF["heure_debut"] = $val["heure_debut"];
+ if ($val["date_fin_validite"] != "") {
+ $this->valF["date_fin_validite"] = $this->dateDB($val["date_fin_validite"]);
}
- $this->valF['heure_fin'] = $val['heure_fin'];
- if (!is_numeric($val['etablissement'])) {
- $this->valF['etablissement'] = ""; // -> requis
+ $this->valF["heure_fin"] = $val["heure_fin"];
+ if (!is_numeric($val["etablissement"])) {
+ $this->valF["etablissement"] = ""; // -> requis
} else {
- $this->valF['etablissement'] = $val['etablissement'];
+ $this->valF["etablissement"] = $val["etablissement"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("demande_licence", "hidden");
$form->setType("date_demande_licence", "date");
$form->setType("date_ancienne_demande", "date");
- if ($this->is_in_context_of_foreign_key("type_demande", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("type_demande", $this->getParameter("retourformulaire"))) {
$form->setType("type_demande", "selecthiddenstatic");
} else {
$form->setType("type_demande", "select");
}
- if ($this->is_in_context_of_foreign_key("type_licence", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("type_licence", $this->getParameter("retourformulaire"))) {
$form->setType("type_licence", "selecthiddenstatic");
} else {
$form->setType("type_licence", "select");
}
$form->setType("compte_rendu", "textarea");
- if ($this->is_in_context_of_foreign_key("statut_demande", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("statut_demande", $this->getParameter("retourformulaire"))) {
$form->setType("statut_demande", "selecthiddenstatic");
} else {
$form->setType("statut_demande", "select");
@@ -261,7 +283,7 @@
$form->setType("numero_licence", "text");
$form->setType("occasion", "text");
$form->setType("particularite", "textarea");
- if ($this->is_in_context_of_foreign_key("terme", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("terme", $this->getParameter("retourformulaire"))) {
$form->setType("terme", "selecthiddenstatic");
} else {
$form->setType("terme", "select");
@@ -270,30 +292,29 @@
$form->setType("heure_debut", "text");
$form->setType("date_fin_validite", "date");
$form->setType("heure_fin", "text");
- if ($this->is_in_context_of_foreign_key("etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("etablissement", "selecthiddenstatic");
} else {
$form->setType("etablissement", "select");
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("demande_licence", "hiddenstatic");
$form->setType("date_demande_licence", "date");
$form->setType("date_ancienne_demande", "date");
- if ($this->is_in_context_of_foreign_key("type_demande", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("type_demande", $this->getParameter("retourformulaire"))) {
$form->setType("type_demande", "selecthiddenstatic");
} else {
$form->setType("type_demande", "select");
}
- if ($this->is_in_context_of_foreign_key("type_licence", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("type_licence", $this->getParameter("retourformulaire"))) {
$form->setType("type_licence", "selecthiddenstatic");
} else {
$form->setType("type_licence", "select");
}
$form->setType("compte_rendu", "textarea");
- if ($this->is_in_context_of_foreign_key("statut_demande", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("statut_demande", $this->getParameter("retourformulaire"))) {
$form->setType("statut_demande", "selecthiddenstatic");
} else {
$form->setType("statut_demande", "select");
@@ -301,7 +322,7 @@
$form->setType("numero_licence", "text");
$form->setType("occasion", "text");
$form->setType("particularite", "textarea");
- if ($this->is_in_context_of_foreign_key("terme", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("terme", $this->getParameter("retourformulaire"))) {
$form->setType("terme", "selecthiddenstatic");
} else {
$form->setType("terme", "select");
@@ -310,15 +331,14 @@
$form->setType("heure_debut", "text");
$form->setType("date_fin_validite", "date");
$form->setType("heure_fin", "text");
- if ($this->is_in_context_of_foreign_key("etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("etablissement", "selecthiddenstatic");
} else {
$form->setType("etablissement", "select");
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("demande_licence", "hiddenstatic");
$form->setType("date_demande_licence", "hiddenstatic");
$form->setType("date_ancienne_demande", "hiddenstatic");
@@ -336,9 +356,8 @@
$form->setType("heure_fin", "hiddenstatic");
$form->setType("etablissement", "selectstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("demande_licence", "static");
$form->setType("date_demande_licence", "datestatic");
$form->setType("date_ancienne_demande", "datestatic");
@@ -356,25 +375,26 @@
$form->setType("heure_fin", "static");
$form->setType("etablissement", "selectstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('demande_licence','VerifNum(this)');
- $form->setOnchange('date_demande_licence','fdate(this)');
- $form->setOnchange('date_ancienne_demande','fdate(this)');
- $form->setOnchange('type_demande','VerifNum(this)');
- $form->setOnchange('type_licence','VerifNum(this)');
- $form->setOnchange('statut_demande','VerifNum(this)');
- $form->setOnchange('terme','VerifNum(this)');
- $form->setOnchange('date_debut_validite','fdate(this)');
- $form->setOnchange('date_fin_validite','fdate(this)');
- $form->setOnchange('etablissement','VerifNum(this)');
+ $form->setOnchange("demande_licence", "VerifNum(this)");
+ $form->setOnchange("date_demande_licence", "fdate(this)");
+ $form->setOnchange("date_ancienne_demande", "fdate(this)");
+ $form->setOnchange("type_demande", "VerifNum(this)");
+ $form->setOnchange("type_licence", "VerifNum(this)");
+ $form->setOnchange("statut_demande", "VerifNum(this)");
+ $form->setOnchange("terme", "VerifNum(this)");
+ $form->setOnchange("date_debut_validite", "fdate(this)");
+ $form->setOnchange("date_fin_validite", "fdate(this)");
+ $form->setOnchange("etablissement", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("demande_licence", 11);
@@ -396,7 +416,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("demande_licence", 11);
@@ -417,31 +437,33 @@
$form->setMax("etablissement", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('demande_licence', __('demande_licence'));
- $form->setLib('date_demande_licence', __('date_demande_licence'));
- $form->setLib('date_ancienne_demande', __('date_ancienne_demande'));
- $form->setLib('type_demande', __('type_demande'));
- $form->setLib('type_licence', __('type_licence'));
- $form->setLib('compte_rendu', __('compte_rendu'));
- $form->setLib('statut_demande', __('statut_demande'));
- $form->setLib('numero_licence', __('numero_licence'));
- $form->setLib('occasion', __('occasion'));
- $form->setLib('particularite', __('particularite'));
- $form->setLib('terme', __('terme'));
- $form->setLib('date_debut_validite', __('date_debut_validite'));
- $form->setLib('heure_debut', __('heure_debut'));
- $form->setLib('date_fin_validite', __('date_fin_validite'));
- $form->setLib('heure_fin', __('heure_fin'));
- $form->setLib('etablissement', __('etablissement'));
+ $form->setLib("demande_licence", __("demande_licence"));
+ $form->setLib("date_demande_licence", __("date_demande_licence"));
+ $form->setLib("date_ancienne_demande", __("date_ancienne_demande"));
+ $form->setLib("type_demande", __("type_demande"));
+ $form->setLib("type_licence", __("type_licence"));
+ $form->setLib("compte_rendu", __("compte_rendu"));
+ $form->setLib("statut_demande", __("statut_demande"));
+ $form->setLib("numero_licence", __("numero_licence"));
+ $form->setLib("occasion", __("occasion"));
+ $form->setLib("particularite", __("particularite"));
+ $form->setLib("terme", __("terme"));
+ $form->setLib("date_debut_validite", __("date_debut_validite"));
+ $form->setLib("heure_debut", __("heure_debut"));
+ $form->setLib("date_fin_validite", __("date_fin_validite"));
+ $form->setLib("heure_fin", __("heure_fin"));
+ $form->setLib("etablissement", __("etablissement"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// etablissement
$this->init_select(
$form,
@@ -499,32 +521,28 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('etablissement', $this->retourformulaire))
- $form->setVal('etablissement', $idxformulaire);
- if($this->is_in_context_of_foreign_key('statut_demande', $this->retourformulaire))
- $form->setVal('statut_demande', $idxformulaire);
- if($this->is_in_context_of_foreign_key('terme', $this->retourformulaire))
- $form->setVal('terme', $idxformulaire);
- if($this->is_in_context_of_foreign_key('type_demande', $this->retourformulaire))
- $form->setVal('type_demande', $idxformulaire);
- if($this->is_in_context_of_foreign_key('type_licence', $this->retourformulaire))
- $form->setVal('type_licence', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
+ $form->setVal("etablissement", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("statut_demande", $this->getParameter("retourformulaire"))) {
+ $form->setVal("statut_demande", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("terme", $this->getParameter("retourformulaire"))) {
+ $form->setVal("terme", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("type_demande", $this->getParameter("retourformulaire"))) {
+ $form->setVal("type_demande", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("type_licence", $this->getParameter("retourformulaire"))) {
+ $form->setVal("type_licence", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/dossier.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/dossier.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/dossier.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *dossier_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *dossier_gen*.
+ */
class dossier_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "dossier";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "dossier";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "dossier";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"date_piece",
"dossier",
@@ -17,17 +49,26 @@
"etablissement",
"fichier"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"etablissement" => array("etablissement", "etablissement_permanent", "etablissement_temporaire", ),
);
+
+ /**
+ * Liste des champs avec un type abstrait.
+ * @var null|array
+ */
var $abstract_type = array(
"fichier" => "file",
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("date_piece");
@@ -34,8 +75,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -48,8 +88,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_etablissement.
*/
function get_var_sql_forminc__sql_etablissement() {
return "SELECT etablissement.etablissement, etablissement.raison_sociale FROM ".DB_PREFIXE."etablissement ORDER BY etablissement.raison_sociale ASC";
@@ -56,102 +95,96 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_etablissement_by_id.
*/
function get_var_sql_forminc__sql_etablissement_by_id() {
return "SELECT etablissement.etablissement, etablissement.raison_sociale FROM ".DB_PREFIXE."etablissement WHERE etablissement = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['dossier'])) {
- $this->valF['dossier'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["dossier"])) {
+ $this->valF["dossier"] = ""; // -> requis
} else {
- $this->valF['dossier'] = $val['dossier'];
+ $this->valF["dossier"] = $val["dossier"];
}
- if ($val['date_piece'] != "") {
- $this->valF['date_piece'] = $this->dateDB($val['date_piece']);
+ if ($val["date_piece"] != "") {
+ $this->valF["date_piece"] = $this->dateDB($val["date_piece"]);
}
- $this->valF['fichier'] = $val['fichier'];
- if ($val['observation'] == "") {
- $this->valF['observation'] = NULL;
+ $this->valF["fichier"] = $val["fichier"];
+ if ($val["observation"] == "") {
+ $this->valF["observation"] = null;
} else {
- $this->valF['observation'] = $val['observation'];
+ $this->valF["observation"] = $val["observation"];
}
- if (!is_numeric($val['etablissement'])) {
- $this->valF['etablissement'] = ""; // -> requis
+ if (!is_numeric($val["etablissement"])) {
+ $this->valF["etablissement"] = ""; // -> requis
} else {
- $this->valF['etablissement'] = $val['etablissement'];
+ $this->valF["etablissement"] = $val["etablissement"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("dossier", "hidden");
$form->setType("date_piece", "date");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("fichier", "upload");
} else {
$form->setType("fichier", "upload2");
}
$form->setType("observation", "text");
- if ($this->is_in_context_of_foreign_key("etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("etablissement", "selecthiddenstatic");
} else {
$form->setType("etablissement", "select");
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("dossier", "hiddenstatic");
$form->setType("date_piece", "date");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("fichier", "upload");
} else {
$form->setType("fichier", "upload2");
}
$form->setType("observation", "text");
- if ($this->is_in_context_of_foreign_key("etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("etablissement", "selecthiddenstatic");
} else {
$form->setType("etablissement", "select");
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("dossier", "hiddenstatic");
$form->setType("date_piece", "hiddenstatic");
$form->setType("fichier", "filestatic");
@@ -158,9 +191,8 @@
$form->setType("observation", "hiddenstatic");
$form->setType("etablissement", "selectstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("dossier", "static");
$form->setType("date_piece", "datestatic");
$form->setType("fichier", "file");
@@ -167,18 +199,19 @@
$form->setType("observation", "static");
$form->setType("etablissement", "selectstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('dossier','VerifNum(this)');
- $form->setOnchange('date_piece','fdate(this)');
- $form->setOnchange('etablissement','VerifNum(this)');
+ $form->setOnchange("dossier", "VerifNum(this)");
+ $form->setOnchange("date_piece", "fdate(this)");
+ $form->setOnchange("etablissement", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("dossier", 11);
@@ -189,7 +222,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("dossier", 11);
@@ -199,20 +232,22 @@
$form->setMax("etablissement", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('dossier', __('dossier'));
- $form->setLib('date_piece', __('date_piece'));
- $form->setLib('fichier', __('fichier'));
- $form->setLib('observation', __('observation'));
- $form->setLib('etablissement', __('etablissement'));
+ $form->setLib("dossier", __("dossier"));
+ $form->setLib("date_piece", __("date_piece"));
+ $form->setLib("fichier", __("fichier"));
+ $form->setLib("observation", __("observation"));
+ $form->setLib("etablissement", __("etablissement"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// etablissement
$this->init_select(
$form,
@@ -226,24 +261,16 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('etablissement', $this->retourformulaire))
- $form->setVal('etablissement', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("etablissement", $this->getParameter("retourformulaire"))) {
+ $form->setVal("etablissement", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/etablissement.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/etablissement.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/etablissement.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 28/12/2018 13:16
+/**
+ * Ce script contient la définition de la classe *etablissement_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *etablissement_gen*.
+ */
class etablissement_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "etablissement";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "etablissement";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "etablissement";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"enseigne",
"etablissement",
@@ -17,16 +49,20 @@
"nature",
"raison_sociale"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"titre_de_civilite" => array("titre_de_civilite", ),
"qualite_exploitant" => array("qualite_exploitant", ),
"type_etablissement" => array("type_etablissement", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("raison_sociale");
@@ -33,8 +69,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -104,8 +139,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_civilite_co_exploitant.
*/
function get_var_sql_forminc__sql_civilite_co_exploitant() {
return "SELECT titre_de_civilite.titre_de_civilite, titre_de_civilite.libelle FROM ".DB_PREFIXE."titre_de_civilite ORDER BY titre_de_civilite.libelle ASC";
@@ -112,8 +146,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_civilite_co_exploitant_by_id.
*/
function get_var_sql_forminc__sql_civilite_co_exploitant_by_id() {
return "SELECT titre_de_civilite.titre_de_civilite, titre_de_civilite.libelle FROM ".DB_PREFIXE."titre_de_civilite WHERE titre_de_civilite = <idx>";
@@ -120,8 +153,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_civilite_exploitant.
*/
function get_var_sql_forminc__sql_civilite_exploitant() {
return "SELECT titre_de_civilite.titre_de_civilite, titre_de_civilite.libelle FROM ".DB_PREFIXE."titre_de_civilite ORDER BY titre_de_civilite.libelle ASC";
@@ -128,8 +160,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_civilite_exploitant_by_id.
*/
function get_var_sql_forminc__sql_civilite_exploitant_by_id() {
return "SELECT titre_de_civilite.titre_de_civilite, titre_de_civilite.libelle FROM ".DB_PREFIXE."titre_de_civilite WHERE titre_de_civilite = <idx>";
@@ -136,8 +167,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_civilite_proprietaire.
*/
function get_var_sql_forminc__sql_civilite_proprietaire() {
return "SELECT titre_de_civilite.titre_de_civilite, titre_de_civilite.libelle FROM ".DB_PREFIXE."titre_de_civilite ORDER BY titre_de_civilite.libelle ASC";
@@ -144,8 +174,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_civilite_proprietaire_by_id.
*/
function get_var_sql_forminc__sql_civilite_proprietaire_by_id() {
return "SELECT titre_de_civilite.titre_de_civilite, titre_de_civilite.libelle FROM ".DB_PREFIXE."titre_de_civilite WHERE titre_de_civilite = <idx>";
@@ -152,8 +181,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_qualite_ancien_exploitant.
*/
function get_var_sql_forminc__sql_qualite_ancien_exploitant() {
return "SELECT qualite_exploitant.qualite_exploitant, qualite_exploitant.libelle FROM ".DB_PREFIXE."qualite_exploitant ORDER BY qualite_exploitant.libelle ASC";
@@ -160,8 +188,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_qualite_ancien_exploitant_by_id.
*/
function get_var_sql_forminc__sql_qualite_ancien_exploitant_by_id() {
return "SELECT qualite_exploitant.qualite_exploitant, qualite_exploitant.libelle FROM ".DB_PREFIXE."qualite_exploitant WHERE qualite_exploitant = <idx>";
@@ -168,8 +195,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_qualite_co_exploitant.
*/
function get_var_sql_forminc__sql_qualite_co_exploitant() {
return "SELECT qualite_exploitant.qualite_exploitant, qualite_exploitant.libelle FROM ".DB_PREFIXE."qualite_exploitant ORDER BY qualite_exploitant.libelle ASC";
@@ -176,8 +202,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_qualite_co_exploitant_by_id.
*/
function get_var_sql_forminc__sql_qualite_co_exploitant_by_id() {
return "SELECT qualite_exploitant.qualite_exploitant, qualite_exploitant.libelle FROM ".DB_PREFIXE."qualite_exploitant WHERE qualite_exploitant = <idx>";
@@ -184,8 +209,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_qualite_exploitant.
*/
function get_var_sql_forminc__sql_qualite_exploitant() {
return "SELECT qualite_exploitant.qualite_exploitant, qualite_exploitant.libelle FROM ".DB_PREFIXE."qualite_exploitant ORDER BY qualite_exploitant.libelle ASC";
@@ -192,8 +216,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_qualite_exploitant_by_id.
*/
function get_var_sql_forminc__sql_qualite_exploitant_by_id() {
return "SELECT qualite_exploitant.qualite_exploitant, qualite_exploitant.libelle FROM ".DB_PREFIXE."qualite_exploitant WHERE qualite_exploitant = <idx>";
@@ -200,8 +223,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_type_etablissement.
*/
function get_var_sql_forminc__sql_type_etablissement() {
return "SELECT type_etablissement.type_etablissement, type_etablissement.libelle FROM ".DB_PREFIXE."type_etablissement ORDER BY type_etablissement.libelle ASC";
@@ -208,335 +230,331 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_type_etablissement_by_id.
*/
function get_var_sql_forminc__sql_type_etablissement_by_id() {
return "SELECT type_etablissement.type_etablissement, type_etablissement.libelle FROM ".DB_PREFIXE."type_etablissement WHERE type_etablissement = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['etablissement'])) {
- $this->valF['etablissement'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["etablissement"])) {
+ $this->valF["etablissement"] = ""; // -> requis
} else {
- $this->valF['etablissement'] = $val['etablissement'];
+ $this->valF["etablissement"] = $val["etablissement"];
}
- $this->valF['raison_sociale'] = $val['raison_sociale'];
- $this->valF['enseigne'] = $val['enseigne'];
- if ($val['no_siret'] == "") {
- $this->valF['no_siret'] = NULL;
+ $this->valF["raison_sociale"] = $val["raison_sociale"];
+ $this->valF["enseigne"] = $val["enseigne"];
+ if ($val["no_siret"] == "") {
+ $this->valF["no_siret"] = null;
} else {
- $this->valF['no_siret'] = $val['no_siret'];
+ $this->valF["no_siret"] = $val["no_siret"];
}
- if ($val['forme_juridique'] == "") {
- $this->valF['forme_juridique'] = NULL;
+ if ($val["forme_juridique"] == "") {
+ $this->valF["forme_juridique"] = null;
} else {
- $this->valF['forme_juridique'] = $val['forme_juridique'];
+ $this->valF["forme_juridique"] = $val["forme_juridique"];
}
- $this->valF['nature'] = $val['nature'];
- if (!is_numeric($val['type_etablissement'])) {
- $this->valF['type_etablissement'] = NULL;
+ $this->valF["nature"] = $val["nature"];
+ if (!is_numeric($val["type_etablissement"])) {
+ $this->valF["type_etablissement"] = null;
} else {
- $this->valF['type_etablissement'] = $val['type_etablissement'];
+ $this->valF["type_etablissement"] = $val["type_etablissement"];
}
- if ($val['permis_exploitation'] == 1 || $val['permis_exploitation'] == "t" || $val['permis_exploitation'] == "Oui") {
- $this->valF['permis_exploitation'] = true;
+ if ($val["permis_exploitation"] == 1 || $val["permis_exploitation"] == "t" || $val["permis_exploitation"] == "Oui") {
+ $this->valF["permis_exploitation"] = true;
} else {
- $this->valF['permis_exploitation'] = false;
+ $this->valF["permis_exploitation"] = false;
}
- if ($val['date_permis_exploitation'] != "") {
- $this->valF['date_permis_exploitation'] = $this->dateDB($val['date_permis_exploitation']);
+ if ($val["date_permis_exploitation"] != "") {
+ $this->valF["date_permis_exploitation"] = $this->dateDB($val["date_permis_exploitation"]);
} else {
- $this->valF['date_permis_exploitation'] = NULL;
+ $this->valF["date_permis_exploitation"] = null;
}
- if ($val['permis_exploitation_nuit'] == 1 || $val['permis_exploitation_nuit'] == "t" || $val['permis_exploitation_nuit'] == "Oui") {
- $this->valF['permis_exploitation_nuit'] = true;
+ if ($val["permis_exploitation_nuit"] == 1 || $val["permis_exploitation_nuit"] == "t" || $val["permis_exploitation_nuit"] == "Oui") {
+ $this->valF["permis_exploitation_nuit"] = true;
} else {
- $this->valF['permis_exploitation_nuit'] = false;
+ $this->valF["permis_exploitation_nuit"] = false;
}
- if ($val['date_permis_exploitation_nuit'] != "") {
- $this->valF['date_permis_exploitation_nuit'] = $this->dateDB($val['date_permis_exploitation_nuit']);
+ if ($val["date_permis_exploitation_nuit"] != "") {
+ $this->valF["date_permis_exploitation_nuit"] = $this->dateDB($val["date_permis_exploitation_nuit"]);
} else {
- $this->valF['date_permis_exploitation_nuit'] = NULL;
+ $this->valF["date_permis_exploitation_nuit"] = null;
}
- if (!is_numeric($val['numero_voie'])) {
- $this->valF['numero_voie'] = NULL;
+ if (!is_numeric($val["numero_voie"])) {
+ $this->valF["numero_voie"] = null;
} else {
- $this->valF['numero_voie'] = $val['numero_voie'];
+ $this->valF["numero_voie"] = $val["numero_voie"];
}
- if ($val['complement'] == "") {
- $this->valF['complement'] = NULL;
+ if ($val["complement"] == "") {
+ $this->valF["complement"] = null;
} else {
- $this->valF['complement'] = $val['complement'];
+ $this->valF["complement"] = $val["complement"];
}
- if ($val['voie'] == "") {
- $this->valF['voie'] = NULL;
+ if ($val["voie"] == "") {
+ $this->valF["voie"] = null;
} else {
- $this->valF['voie'] = $val['voie'];
+ $this->valF["voie"] = $val["voie"];
}
- if ($val['libelle_voie'] == "") {
- $this->valF['libelle_voie'] = NULL;
+ if ($val["libelle_voie"] == "") {
+ $this->valF["libelle_voie"] = null;
} else {
- $this->valF['libelle_voie'] = $val['libelle_voie'];
+ $this->valF["libelle_voie"] = $val["libelle_voie"];
}
- if ($val['complement_voie'] == "") {
- $this->valF['complement_voie'] = NULL;
+ if ($val["complement_voie"] == "") {
+ $this->valF["complement_voie"] = null;
} else {
- $this->valF['complement_voie'] = $val['complement_voie'];
+ $this->valF["complement_voie"] = $val["complement_voie"];
}
- if ($val['cp_etablissement'] == "") {
- $this->valF['cp_etablissement'] = NULL;
+ if ($val["cp_etablissement"] == "") {
+ $this->valF["cp_etablissement"] = null;
} else {
- $this->valF['cp_etablissement'] = $val['cp_etablissement'];
+ $this->valF["cp_etablissement"] = $val["cp_etablissement"];
}
- if ($val['ville_etablissement'] == "") {
- $this->valF['ville_etablissement'] = NULL;
+ if ($val["ville_etablissement"] == "") {
+ $this->valF["ville_etablissement"] = null;
} else {
- $this->valF['ville_etablissement'] = $val['ville_etablissement'];
+ $this->valF["ville_etablissement"] = $val["ville_etablissement"];
}
- if ($val['geom'] == "") {
- unset($this->valF['geom']);
+ if ($val["geom"] == "") {
+ unset($this->valF["geom"]);
} else {
- $this->valF['geom'] = $val['geom'];
+ $this->valF["geom"] = $val["geom"];
}
- if (!is_numeric($val['civilite_exploitant'])) {
- $this->valF['civilite_exploitant'] = NULL;
+ if (!is_numeric($val["civilite_exploitant"])) {
+ $this->valF["civilite_exploitant"] = null;
} else {
- $this->valF['civilite_exploitant'] = $val['civilite_exploitant'];
+ $this->valF["civilite_exploitant"] = $val["civilite_exploitant"];
}
- if ($val['nom_exploitant'] == "") {
- $this->valF['nom_exploitant'] = NULL;
+ if ($val["nom_exploitant"] == "") {
+ $this->valF["nom_exploitant"] = null;
} else {
- $this->valF['nom_exploitant'] = $val['nom_exploitant'];
+ $this->valF["nom_exploitant"] = $val["nom_exploitant"];
}
- if ($val['nom_marital_exploitant'] == "") {
- $this->valF['nom_marital_exploitant'] = NULL;
+ if ($val["nom_marital_exploitant"] == "") {
+ $this->valF["nom_marital_exploitant"] = null;
} else {
- $this->valF['nom_marital_exploitant'] = $val['nom_marital_exploitant'];
+ $this->valF["nom_marital_exploitant"] = $val["nom_marital_exploitant"];
}
- if ($val['prenom_exploitant'] == "") {
- $this->valF['prenom_exploitant'] = NULL;
+ if ($val["prenom_exploitant"] == "") {
+ $this->valF["prenom_exploitant"] = null;
} else {
- $this->valF['prenom_exploitant'] = $val['prenom_exploitant'];
+ $this->valF["prenom_exploitant"] = $val["prenom_exploitant"];
}
- if ($val['date_naissance_exploitant'] != "") {
- $this->valF['date_naissance_exploitant'] = $this->dateDB($val['date_naissance_exploitant']);
+ if ($val["date_naissance_exploitant"] != "") {
+ $this->valF["date_naissance_exploitant"] = $this->dateDB($val["date_naissance_exploitant"]);
} else {
- $this->valF['date_naissance_exploitant'] = NULL;
+ $this->valF["date_naissance_exploitant"] = null;
}
- if ($val['ville_naissance_exploitant'] == "") {
- $this->valF['ville_naissance_exploitant'] = NULL;
+ if ($val["ville_naissance_exploitant"] == "") {
+ $this->valF["ville_naissance_exploitant"] = null;
} else {
- $this->valF['ville_naissance_exploitant'] = $val['ville_naissance_exploitant'];
+ $this->valF["ville_naissance_exploitant"] = $val["ville_naissance_exploitant"];
}
- if ($val['cp_naissance_exploitant'] == "") {
- $this->valF['cp_naissance_exploitant'] = NULL;
+ if ($val["cp_naissance_exploitant"] == "") {
+ $this->valF["cp_naissance_exploitant"] = null;
} else {
- $this->valF['cp_naissance_exploitant'] = $val['cp_naissance_exploitant'];
+ $this->valF["cp_naissance_exploitant"] = $val["cp_naissance_exploitant"];
}
- if ($val['adresse1_exploitant'] == "") {
- $this->valF['adresse1_exploitant'] = NULL;
+ if ($val["adresse1_exploitant"] == "") {
+ $this->valF["adresse1_exploitant"] = null;
} else {
- $this->valF['adresse1_exploitant'] = $val['adresse1_exploitant'];
+ $this->valF["adresse1_exploitant"] = $val["adresse1_exploitant"];
}
- if ($val['adresse2_exploitant'] == "") {
- $this->valF['adresse2_exploitant'] = NULL;
+ if ($val["adresse2_exploitant"] == "") {
+ $this->valF["adresse2_exploitant"] = null;
} else {
- $this->valF['adresse2_exploitant'] = $val['adresse2_exploitant'];
+ $this->valF["adresse2_exploitant"] = $val["adresse2_exploitant"];
}
- if ($val['cp_exploitant'] == "") {
- $this->valF['cp_exploitant'] = NULL;
+ if ($val["cp_exploitant"] == "") {
+ $this->valF["cp_exploitant"] = null;
} else {
- $this->valF['cp_exploitant'] = $val['cp_exploitant'];
+ $this->valF["cp_exploitant"] = $val["cp_exploitant"];
}
- if ($val['ville_exploitant'] == "") {
- $this->valF['ville_exploitant'] = NULL;
+ if ($val["ville_exploitant"] == "") {
+ $this->valF["ville_exploitant"] = null;
} else {
- $this->valF['ville_exploitant'] = $val['ville_exploitant'];
+ $this->valF["ville_exploitant"] = $val["ville_exploitant"];
}
- if (!is_numeric($val['qualite_exploitant'])) {
- $this->valF['qualite_exploitant'] = NULL;
+ if (!is_numeric($val["qualite_exploitant"])) {
+ $this->valF["qualite_exploitant"] = null;
} else {
- $this->valF['qualite_exploitant'] = $val['qualite_exploitant'];
+ $this->valF["qualite_exploitant"] = $val["qualite_exploitant"];
}
- if ($val['nationalite_exploitant'] == "") {
- $this->valF['nationalite_exploitant'] = NULL;
+ if ($val["nationalite_exploitant"] == "") {
+ $this->valF["nationalite_exploitant"] = null;
} else {
- $this->valF['nationalite_exploitant'] = $val['nationalite_exploitant'];
+ $this->valF["nationalite_exploitant"] = $val["nationalite_exploitant"];
}
- $this->valF['particularite_exploitant'] = $val['particularite_exploitant'];
- if (!is_numeric($val['civilite_co_exploitant'])) {
- $this->valF['civilite_co_exploitant'] = NULL;
+ $this->valF["particularite_exploitant"] = $val["particularite_exploitant"];
+ if (!is_numeric($val["civilite_co_exploitant"])) {
+ $this->valF["civilite_co_exploitant"] = null;
} else {
- $this->valF['civilite_co_exploitant'] = $val['civilite_co_exploitant'];
+ $this->valF["civilite_co_exploitant"] = $val["civilite_co_exploitant"];
}
- if ($val['nom_co_exploitant'] == "") {
- $this->valF['nom_co_exploitant'] = NULL;
+ if ($val["nom_co_exploitant"] == "") {
+ $this->valF["nom_co_exploitant"] = null;
} else {
- $this->valF['nom_co_exploitant'] = $val['nom_co_exploitant'];
+ $this->valF["nom_co_exploitant"] = $val["nom_co_exploitant"];
}
- if ($val['nom_marital_co_exploitant'] == "") {
- $this->valF['nom_marital_co_exploitant'] = NULL;
+ if ($val["nom_marital_co_exploitant"] == "") {
+ $this->valF["nom_marital_co_exploitant"] = null;
} else {
- $this->valF['nom_marital_co_exploitant'] = $val['nom_marital_co_exploitant'];
+ $this->valF["nom_marital_co_exploitant"] = $val["nom_marital_co_exploitant"];
}
- if ($val['prenom_co_exploitant'] == "") {
- $this->valF['prenom_co_exploitant'] = NULL;
+ if ($val["prenom_co_exploitant"] == "") {
+ $this->valF["prenom_co_exploitant"] = null;
} else {
- $this->valF['prenom_co_exploitant'] = $val['prenom_co_exploitant'];
+ $this->valF["prenom_co_exploitant"] = $val["prenom_co_exploitant"];
}
- if ($val['date_naissance_co_exploitant'] != "") {
- $this->valF['date_naissance_co_exploitant'] = $this->dateDB($val['date_naissance_co_exploitant']);
+ if ($val["date_naissance_co_exploitant"] != "") {
+ $this->valF["date_naissance_co_exploitant"] = $this->dateDB($val["date_naissance_co_exploitant"]);
} else {
- $this->valF['date_naissance_co_exploitant'] = NULL;
+ $this->valF["date_naissance_co_exploitant"] = null;
}
- if ($val['ville_naissance_co_exploitant'] == "") {
- $this->valF['ville_naissance_co_exploitant'] = NULL;
+ if ($val["ville_naissance_co_exploitant"] == "") {
+ $this->valF["ville_naissance_co_exploitant"] = null;
} else {
- $this->valF['ville_naissance_co_exploitant'] = $val['ville_naissance_co_exploitant'];
+ $this->valF["ville_naissance_co_exploitant"] = $val["ville_naissance_co_exploitant"];
}
- if ($val['cp_naissance_co_exploitant'] == "") {
- $this->valF['cp_naissance_co_exploitant'] = NULL;
+ if ($val["cp_naissance_co_exploitant"] == "") {
+ $this->valF["cp_naissance_co_exploitant"] = null;
} else {
- $this->valF['cp_naissance_co_exploitant'] = $val['cp_naissance_co_exploitant'];
+ $this->valF["cp_naissance_co_exploitant"] = $val["cp_naissance_co_exploitant"];
}
- if ($val['adresse1_co_exploitant'] == "") {
- $this->valF['adresse1_co_exploitant'] = NULL;
+ if ($val["adresse1_co_exploitant"] == "") {
+ $this->valF["adresse1_co_exploitant"] = null;
} else {
- $this->valF['adresse1_co_exploitant'] = $val['adresse1_co_exploitant'];
+ $this->valF["adresse1_co_exploitant"] = $val["adresse1_co_exploitant"];
}
- if ($val['adresse2_co_exploitant'] == "") {
- $this->valF['adresse2_co_exploitant'] = NULL;
+ if ($val["adresse2_co_exploitant"] == "") {
+ $this->valF["adresse2_co_exploitant"] = null;
} else {
- $this->valF['adresse2_co_exploitant'] = $val['adresse2_co_exploitant'];
+ $this->valF["adresse2_co_exploitant"] = $val["adresse2_co_exploitant"];
}
- if ($val['cp_co_exploitant'] == "") {
- $this->valF['cp_co_exploitant'] = NULL;
+ if ($val["cp_co_exploitant"] == "") {
+ $this->valF["cp_co_exploitant"] = null;
} else {
- $this->valF['cp_co_exploitant'] = $val['cp_co_exploitant'];
+ $this->valF["cp_co_exploitant"] = $val["cp_co_exploitant"];
}
- if ($val['ville_co_exploitant'] == "") {
- $this->valF['ville_co_exploitant'] = NULL;
+ if ($val["ville_co_exploitant"] == "") {
+ $this->valF["ville_co_exploitant"] = null;
} else {
- $this->valF['ville_co_exploitant'] = $val['ville_co_exploitant'];
+ $this->valF["ville_co_exploitant"] = $val["ville_co_exploitant"];
}
- if ($val['nationalite_co_exploitant'] == "") {
- $this->valF['nationalite_co_exploitant'] = NULL;
+ if ($val["nationalite_co_exploitant"] == "") {
+ $this->valF["nationalite_co_exploitant"] = null;
} else {
- $this->valF['nationalite_co_exploitant'] = $val['nationalite_co_exploitant'];
+ $this->valF["nationalite_co_exploitant"] = $val["nationalite_co_exploitant"];
}
- if (!is_numeric($val['qualite_co_exploitant'])) {
- $this->valF['qualite_co_exploitant'] = NULL;
+ if (!is_numeric($val["qualite_co_exploitant"])) {
+ $this->valF["qualite_co_exploitant"] = null;
} else {
- $this->valF['qualite_co_exploitant'] = $val['qualite_co_exploitant'];
+ $this->valF["qualite_co_exploitant"] = $val["qualite_co_exploitant"];
}
- $this->valF['particularite_co_exploitant'] = $val['particularite_co_exploitant'];
- if ($val['nom_ancien_exploitant'] == "") {
- $this->valF['nom_ancien_exploitant'] = NULL;
+ $this->valF["particularite_co_exploitant"] = $val["particularite_co_exploitant"];
+ if ($val["nom_ancien_exploitant"] == "") {
+ $this->valF["nom_ancien_exploitant"] = null;
} else {
- $this->valF['nom_ancien_exploitant'] = $val['nom_ancien_exploitant'];
+ $this->valF["nom_ancien_exploitant"] = $val["nom_ancien_exploitant"];
}
- if ($val['prenom_ancien_exploitant'] == "") {
- $this->valF['prenom_ancien_exploitant'] = NULL;
+ if ($val["prenom_ancien_exploitant"] == "") {
+ $this->valF["prenom_ancien_exploitant"] = null;
} else {
- $this->valF['prenom_ancien_exploitant'] = $val['prenom_ancien_exploitant'];
+ $this->valF["prenom_ancien_exploitant"] = $val["prenom_ancien_exploitant"];
}
- if (!is_numeric($val['qualite_ancien_exploitant'])) {
- $this->valF['qualite_ancien_exploitant'] = NULL;
+ if (!is_numeric($val["qualite_ancien_exploitant"])) {
+ $this->valF["qualite_ancien_exploitant"] = null;
} else {
- $this->valF['qualite_ancien_exploitant'] = $val['qualite_ancien_exploitant'];
+ $this->valF["qualite_ancien_exploitant"] = $val["qualite_ancien_exploitant"];
}
- if (!is_numeric($val['civilite_proprietaire'])) {
- $this->valF['civilite_proprietaire'] = NULL;
+ if (!is_numeric($val["civilite_proprietaire"])) {
+ $this->valF["civilite_proprietaire"] = null;
} else {
- $this->valF['civilite_proprietaire'] = $val['civilite_proprietaire'];
+ $this->valF["civilite_proprietaire"] = $val["civilite_proprietaire"];
}
- if ($val['nom_proprietaire'] == "") {
- $this->valF['nom_proprietaire'] = NULL;
+ if ($val["nom_proprietaire"] == "") {
+ $this->valF["nom_proprietaire"] = null;
} else {
- $this->valF['nom_proprietaire'] = $val['nom_proprietaire'];
+ $this->valF["nom_proprietaire"] = $val["nom_proprietaire"];
}
- if ($val['prenom_proprietaire'] == "") {
- $this->valF['prenom_proprietaire'] = NULL;
+ if ($val["prenom_proprietaire"] == "") {
+ $this->valF["prenom_proprietaire"] = null;
} else {
- $this->valF['prenom_proprietaire'] = $val['prenom_proprietaire'];
+ $this->valF["prenom_proprietaire"] = $val["prenom_proprietaire"];
}
- if ($val['adresse1_proprietaire'] == "") {
- $this->valF['adresse1_proprietaire'] = NULL;
+ if ($val["adresse1_proprietaire"] == "") {
+ $this->valF["adresse1_proprietaire"] = null;
} else {
- $this->valF['adresse1_proprietaire'] = $val['adresse1_proprietaire'];
+ $this->valF["adresse1_proprietaire"] = $val["adresse1_proprietaire"];
}
- if ($val['adresse2_proprietaire'] == "") {
- $this->valF['adresse2_proprietaire'] = NULL;
+ if ($val["adresse2_proprietaire"] == "") {
+ $this->valF["adresse2_proprietaire"] = null;
} else {
- $this->valF['adresse2_proprietaire'] = $val['adresse2_proprietaire'];
+ $this->valF["adresse2_proprietaire"] = $val["adresse2_proprietaire"];
}
- if ($val['cp_proprietaire'] == "") {
- $this->valF['cp_proprietaire'] = NULL;
+ if ($val["cp_proprietaire"] == "") {
+ $this->valF["cp_proprietaire"] = null;
} else {
- $this->valF['cp_proprietaire'] = $val['cp_proprietaire'];
+ $this->valF["cp_proprietaire"] = $val["cp_proprietaire"];
}
- if ($val['ville_proprietaire'] == "") {
- $this->valF['ville_proprietaire'] = NULL;
+ if ($val["ville_proprietaire"] == "") {
+ $this->valF["ville_proprietaire"] = null;
} else {
- $this->valF['ville_proprietaire'] = $val['ville_proprietaire'];
+ $this->valF["ville_proprietaire"] = $val["ville_proprietaire"];
}
- if ($val['profession_proprietaire'] == "") {
- $this->valF['profession_proprietaire'] = NULL;
+ if ($val["profession_proprietaire"] == "") {
+ $this->valF["profession_proprietaire"] = null;
} else {
- $this->valF['profession_proprietaire'] = $val['profession_proprietaire'];
+ $this->valF["profession_proprietaire"] = $val["profession_proprietaire"];
}
- if ($val['date_fermeture'] != "") {
- $this->valF['date_fermeture'] = $this->dateDB($val['date_fermeture']);
+ if ($val["date_fermeture"] != "") {
+ $this->valF["date_fermeture"] = $this->dateDB($val["date_fermeture"]);
} else {
- $this->valF['date_fermeture'] = NULL;
+ $this->valF["date_fermeture"] = null;
}
- if ($val['date_liquidation'] != "") {
- $this->valF['date_liquidation'] = $this->dateDB($val['date_liquidation']);
+ if ($val["date_liquidation"] != "") {
+ $this->valF["date_liquidation"] = $this->dateDB($val["date_liquidation"]);
} else {
- $this->valF['date_liquidation'] = NULL;
+ $this->valF["date_liquidation"] = null;
}
- $this->valF['observation'] = $val['observation'];
- if ($val['ancien_proprietaire'] == "") {
- $this->valF['ancien_proprietaire'] = NULL;
+ $this->valF["observation"] = $val["observation"];
+ if ($val["ancien_proprietaire"] == "") {
+ $this->valF["ancien_proprietaire"] = null;
} else {
- $this->valF['ancien_proprietaire'] = $val['ancien_proprietaire'];
+ $this->valF["ancien_proprietaire"] = $val["ancien_proprietaire"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("etablissement", "hidden");
$form->setType("raison_sociale", "text");
$form->setType("enseigne", "text");
@@ -543,7 +561,7 @@
$form->setType("no_siret", "text");
$form->setType("forme_juridique", "text");
$form->setType("nature", "text");
- if ($this->is_in_context_of_foreign_key("type_etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("type_etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("type_etablissement", "selecthiddenstatic");
} else {
$form->setType("type_etablissement", "select");
@@ -560,7 +578,7 @@
$form->setType("cp_etablissement", "text");
$form->setType("ville_etablissement", "text");
$form->setType("geom", "geom");
- if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
$form->setType("civilite_exploitant", "selecthiddenstatic");
} else {
$form->setType("civilite_exploitant", "select");
@@ -575,7 +593,7 @@
$form->setType("adresse2_exploitant", "text");
$form->setType("cp_exploitant", "text");
$form->setType("ville_exploitant", "text");
- if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
$form->setType("qualite_exploitant", "selecthiddenstatic");
} else {
$form->setType("qualite_exploitant", "select");
@@ -582,7 +600,7 @@
}
$form->setType("nationalite_exploitant", "text");
$form->setType("particularite_exploitant", "textarea");
- if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
$form->setType("civilite_co_exploitant", "selecthiddenstatic");
} else {
$form->setType("civilite_co_exploitant", "select");
@@ -598,7 +616,7 @@
$form->setType("cp_co_exploitant", "text");
$form->setType("ville_co_exploitant", "text");
$form->setType("nationalite_co_exploitant", "text");
- if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
$form->setType("qualite_co_exploitant", "selecthiddenstatic");
} else {
$form->setType("qualite_co_exploitant", "select");
@@ -606,12 +624,12 @@
$form->setType("particularite_co_exploitant", "textarea");
$form->setType("nom_ancien_exploitant", "text");
$form->setType("prenom_ancien_exploitant", "text");
- if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
$form->setType("qualite_ancien_exploitant", "selecthiddenstatic");
} else {
$form->setType("qualite_ancien_exploitant", "select");
}
- if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
$form->setType("civilite_proprietaire", "selecthiddenstatic");
} else {
$form->setType("civilite_proprietaire", "select");
@@ -628,9 +646,8 @@
$form->setType("observation", "textarea");
$form->setType("ancien_proprietaire", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("etablissement", "hiddenstatic");
$form->setType("raison_sociale", "text");
$form->setType("enseigne", "text");
@@ -637,7 +654,7 @@
$form->setType("no_siret", "text");
$form->setType("forme_juridique", "text");
$form->setType("nature", "text");
- if ($this->is_in_context_of_foreign_key("type_etablissement", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("type_etablissement", $this->getParameter("retourformulaire"))) {
$form->setType("type_etablissement", "selecthiddenstatic");
} else {
$form->setType("type_etablissement", "select");
@@ -654,7 +671,7 @@
$form->setType("cp_etablissement", "text");
$form->setType("ville_etablissement", "text");
$form->setType("geom", "geom");
- if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
$form->setType("civilite_exploitant", "selecthiddenstatic");
} else {
$form->setType("civilite_exploitant", "select");
@@ -669,7 +686,7 @@
$form->setType("adresse2_exploitant", "text");
$form->setType("cp_exploitant", "text");
$form->setType("ville_exploitant", "text");
- if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
$form->setType("qualite_exploitant", "selecthiddenstatic");
} else {
$form->setType("qualite_exploitant", "select");
@@ -676,7 +693,7 @@
}
$form->setType("nationalite_exploitant", "text");
$form->setType("particularite_exploitant", "textarea");
- if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
$form->setType("civilite_co_exploitant", "selecthiddenstatic");
} else {
$form->setType("civilite_co_exploitant", "select");
@@ -692,7 +709,7 @@
$form->setType("cp_co_exploitant", "text");
$form->setType("ville_co_exploitant", "text");
$form->setType("nationalite_co_exploitant", "text");
- if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
$form->setType("qualite_co_exploitant", "selecthiddenstatic");
} else {
$form->setType("qualite_co_exploitant", "select");
@@ -700,12 +717,12 @@
$form->setType("particularite_co_exploitant", "textarea");
$form->setType("nom_ancien_exploitant", "text");
$form->setType("prenom_ancien_exploitant", "text");
- if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
$form->setType("qualite_ancien_exploitant", "selecthiddenstatic");
} else {
$form->setType("qualite_ancien_exploitant", "select");
}
- if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
$form->setType("civilite_proprietaire", "selecthiddenstatic");
} else {
$form->setType("civilite_proprietaire", "select");
@@ -722,9 +739,8 @@
$form->setType("observation", "textarea");
$form->setType("ancien_proprietaire", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("etablissement", "hiddenstatic");
$form->setType("raison_sociale", "hiddenstatic");
$form->setType("enseigne", "hiddenstatic");
@@ -788,9 +804,8 @@
$form->setType("observation", "hiddenstatic");
$form->setType("ancien_proprietaire", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("etablissement", "static");
$form->setType("raison_sociale", "static");
$form->setType("enseigne", "static");
@@ -854,30 +869,31 @@
$form->setType("observation", "textareastatic");
$form->setType("ancien_proprietaire", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('etablissement','VerifNum(this)');
- $form->setOnchange('type_etablissement','VerifNum(this)');
- $form->setOnchange('date_permis_exploitation','fdate(this)');
- $form->setOnchange('date_permis_exploitation_nuit','fdate(this)');
- $form->setOnchange('numero_voie','VerifNum(this)');
- $form->setOnchange('civilite_exploitant','VerifNum(this)');
- $form->setOnchange('date_naissance_exploitant','fdate(this)');
- $form->setOnchange('qualite_exploitant','VerifNum(this)');
- $form->setOnchange('civilite_co_exploitant','VerifNum(this)');
- $form->setOnchange('date_naissance_co_exploitant','fdate(this)');
- $form->setOnchange('qualite_co_exploitant','VerifNum(this)');
- $form->setOnchange('qualite_ancien_exploitant','VerifNum(this)');
- $form->setOnchange('civilite_proprietaire','VerifNum(this)');
- $form->setOnchange('date_fermeture','fdate(this)');
- $form->setOnchange('date_liquidation','fdate(this)');
+ $form->setOnchange("etablissement", "VerifNum(this)");
+ $form->setOnchange("type_etablissement", "VerifNum(this)");
+ $form->setOnchange("date_permis_exploitation", "fdate(this)");
+ $form->setOnchange("date_permis_exploitation_nuit", "fdate(this)");
+ $form->setOnchange("numero_voie", "VerifNum(this)");
+ $form->setOnchange("civilite_exploitant", "VerifNum(this)");
+ $form->setOnchange("date_naissance_exploitant", "fdate(this)");
+ $form->setOnchange("qualite_exploitant", "VerifNum(this)");
+ $form->setOnchange("civilite_co_exploitant", "VerifNum(this)");
+ $form->setOnchange("date_naissance_co_exploitant", "fdate(this)");
+ $form->setOnchange("qualite_co_exploitant", "VerifNum(this)");
+ $form->setOnchange("qualite_ancien_exploitant", "VerifNum(this)");
+ $form->setOnchange("civilite_proprietaire", "VerifNum(this)");
+ $form->setOnchange("date_fermeture", "fdate(this)");
+ $form->setOnchange("date_liquidation", "fdate(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("etablissement", 11);
@@ -945,7 +961,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("etablissement", 11);
@@ -1012,77 +1028,79 @@
$form->setMax("ancien_proprietaire", 250);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('etablissement', __('etablissement'));
- $form->setLib('raison_sociale', __('raison_sociale'));
- $form->setLib('enseigne', __('enseigne'));
- $form->setLib('no_siret', __('no_siret'));
- $form->setLib('forme_juridique', __('forme_juridique'));
- $form->setLib('nature', __('nature'));
- $form->setLib('type_etablissement', __('type_etablissement'));
- $form->setLib('permis_exploitation', __('permis_exploitation'));
- $form->setLib('date_permis_exploitation', __('date_permis_exploitation'));
- $form->setLib('permis_exploitation_nuit', __('permis_exploitation_nuit'));
- $form->setLib('date_permis_exploitation_nuit', __('date_permis_exploitation_nuit'));
- $form->setLib('numero_voie', __('numero_voie'));
- $form->setLib('complement', __('complement'));
- $form->setLib('voie', __('voie'));
- $form->setLib('libelle_voie', __('libelle_voie'));
- $form->setLib('complement_voie', __('complement_voie'));
- $form->setLib('cp_etablissement', __('cp_etablissement'));
- $form->setLib('ville_etablissement', __('ville_etablissement'));
- $form->setLib('geom', __('geom'));
- $form->setLib('civilite_exploitant', __('civilite_exploitant'));
- $form->setLib('nom_exploitant', __('nom_exploitant'));
- $form->setLib('nom_marital_exploitant', __('nom_marital_exploitant'));
- $form->setLib('prenom_exploitant', __('prenom_exploitant'));
- $form->setLib('date_naissance_exploitant', __('date_naissance_exploitant'));
- $form->setLib('ville_naissance_exploitant', __('ville_naissance_exploitant'));
- $form->setLib('cp_naissance_exploitant', __('cp_naissance_exploitant'));
- $form->setLib('adresse1_exploitant', __('adresse1_exploitant'));
- $form->setLib('adresse2_exploitant', __('adresse2_exploitant'));
- $form->setLib('cp_exploitant', __('cp_exploitant'));
- $form->setLib('ville_exploitant', __('ville_exploitant'));
- $form->setLib('qualite_exploitant', __('qualite_exploitant'));
- $form->setLib('nationalite_exploitant', __('nationalite_exploitant'));
- $form->setLib('particularite_exploitant', __('particularite_exploitant'));
- $form->setLib('civilite_co_exploitant', __('civilite_co_exploitant'));
- $form->setLib('nom_co_exploitant', __('nom_co_exploitant'));
- $form->setLib('nom_marital_co_exploitant', __('nom_marital_co_exploitant'));
- $form->setLib('prenom_co_exploitant', __('prenom_co_exploitant'));
- $form->setLib('date_naissance_co_exploitant', __('date_naissance_co_exploitant'));
- $form->setLib('ville_naissance_co_exploitant', __('ville_naissance_co_exploitant'));
- $form->setLib('cp_naissance_co_exploitant', __('cp_naissance_co_exploitant'));
- $form->setLib('adresse1_co_exploitant', __('adresse1_co_exploitant'));
- $form->setLib('adresse2_co_exploitant', __('adresse2_co_exploitant'));
- $form->setLib('cp_co_exploitant', __('cp_co_exploitant'));
- $form->setLib('ville_co_exploitant', __('ville_co_exploitant'));
- $form->setLib('nationalite_co_exploitant', __('nationalite_co_exploitant'));
- $form->setLib('qualite_co_exploitant', __('qualite_co_exploitant'));
- $form->setLib('particularite_co_exploitant', __('particularite_co_exploitant'));
- $form->setLib('nom_ancien_exploitant', __('nom_ancien_exploitant'));
- $form->setLib('prenom_ancien_exploitant', __('prenom_ancien_exploitant'));
- $form->setLib('qualite_ancien_exploitant', __('qualite_ancien_exploitant'));
- $form->setLib('civilite_proprietaire', __('civilite_proprietaire'));
- $form->setLib('nom_proprietaire', __('nom_proprietaire'));
- $form->setLib('prenom_proprietaire', __('prenom_proprietaire'));
- $form->setLib('adresse1_proprietaire', __('adresse1_proprietaire'));
- $form->setLib('adresse2_proprietaire', __('adresse2_proprietaire'));
- $form->setLib('cp_proprietaire', __('cp_proprietaire'));
- $form->setLib('ville_proprietaire', __('ville_proprietaire'));
- $form->setLib('profession_proprietaire', __('profession_proprietaire'));
- $form->setLib('date_fermeture', __('date_fermeture'));
- $form->setLib('date_liquidation', __('date_liquidation'));
- $form->setLib('observation', __('observation'));
- $form->setLib('ancien_proprietaire', __('ancien_proprietaire'));
+ $form->setLib("etablissement", __("etablissement"));
+ $form->setLib("raison_sociale", __("raison_sociale"));
+ $form->setLib("enseigne", __("enseigne"));
+ $form->setLib("no_siret", __("no_siret"));
+ $form->setLib("forme_juridique", __("forme_juridique"));
+ $form->setLib("nature", __("nature"));
+ $form->setLib("type_etablissement", __("type_etablissement"));
+ $form->setLib("permis_exploitation", __("permis_exploitation"));
+ $form->setLib("date_permis_exploitation", __("date_permis_exploitation"));
+ $form->setLib("permis_exploitation_nuit", __("permis_exploitation_nuit"));
+ $form->setLib("date_permis_exploitation_nuit", __("date_permis_exploitation_nuit"));
+ $form->setLib("numero_voie", __("numero_voie"));
+ $form->setLib("complement", __("complement"));
+ $form->setLib("voie", __("voie"));
+ $form->setLib("libelle_voie", __("libelle_voie"));
+ $form->setLib("complement_voie", __("complement_voie"));
+ $form->setLib("cp_etablissement", __("cp_etablissement"));
+ $form->setLib("ville_etablissement", __("ville_etablissement"));
+ $form->setLib("geom", __("geom"));
+ $form->setLib("civilite_exploitant", __("civilite_exploitant"));
+ $form->setLib("nom_exploitant", __("nom_exploitant"));
+ $form->setLib("nom_marital_exploitant", __("nom_marital_exploitant"));
+ $form->setLib("prenom_exploitant", __("prenom_exploitant"));
+ $form->setLib("date_naissance_exploitant", __("date_naissance_exploitant"));
+ $form->setLib("ville_naissance_exploitant", __("ville_naissance_exploitant"));
+ $form->setLib("cp_naissance_exploitant", __("cp_naissance_exploitant"));
+ $form->setLib("adresse1_exploitant", __("adresse1_exploitant"));
+ $form->setLib("adresse2_exploitant", __("adresse2_exploitant"));
+ $form->setLib("cp_exploitant", __("cp_exploitant"));
+ $form->setLib("ville_exploitant", __("ville_exploitant"));
+ $form->setLib("qualite_exploitant", __("qualite_exploitant"));
+ $form->setLib("nationalite_exploitant", __("nationalite_exploitant"));
+ $form->setLib("particularite_exploitant", __("particularite_exploitant"));
+ $form->setLib("civilite_co_exploitant", __("civilite_co_exploitant"));
+ $form->setLib("nom_co_exploitant", __("nom_co_exploitant"));
+ $form->setLib("nom_marital_co_exploitant", __("nom_marital_co_exploitant"));
+ $form->setLib("prenom_co_exploitant", __("prenom_co_exploitant"));
+ $form->setLib("date_naissance_co_exploitant", __("date_naissance_co_exploitant"));
+ $form->setLib("ville_naissance_co_exploitant", __("ville_naissance_co_exploitant"));
+ $form->setLib("cp_naissance_co_exploitant", __("cp_naissance_co_exploitant"));
+ $form->setLib("adresse1_co_exploitant", __("adresse1_co_exploitant"));
+ $form->setLib("adresse2_co_exploitant", __("adresse2_co_exploitant"));
+ $form->setLib("cp_co_exploitant", __("cp_co_exploitant"));
+ $form->setLib("ville_co_exploitant", __("ville_co_exploitant"));
+ $form->setLib("nationalite_co_exploitant", __("nationalite_co_exploitant"));
+ $form->setLib("qualite_co_exploitant", __("qualite_co_exploitant"));
+ $form->setLib("particularite_co_exploitant", __("particularite_co_exploitant"));
+ $form->setLib("nom_ancien_exploitant", __("nom_ancien_exploitant"));
+ $form->setLib("prenom_ancien_exploitant", __("prenom_ancien_exploitant"));
+ $form->setLib("qualite_ancien_exploitant", __("qualite_ancien_exploitant"));
+ $form->setLib("civilite_proprietaire", __("civilite_proprietaire"));
+ $form->setLib("nom_proprietaire", __("nom_proprietaire"));
+ $form->setLib("prenom_proprietaire", __("prenom_proprietaire"));
+ $form->setLib("adresse1_proprietaire", __("adresse1_proprietaire"));
+ $form->setLib("adresse2_proprietaire", __("adresse2_proprietaire"));
+ $form->setLib("cp_proprietaire", __("cp_proprietaire"));
+ $form->setLib("ville_proprietaire", __("ville_proprietaire"));
+ $form->setLib("profession_proprietaire", __("profession_proprietaire"));
+ $form->setLib("date_fermeture", __("date_fermeture"));
+ $form->setLib("date_liquidation", __("date_liquidation"));
+ $form->setLib("observation", __("observation"));
+ $form->setLib("ancien_proprietaire", __("ancien_proprietaire"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// civilite_co_exploitant
$this->init_select(
$form,
@@ -1168,52 +1186,46 @@
}
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('type_etablissement', $this->retourformulaire))
- $form->setVal('type_etablissement', $idxformulaire);
- }// fin validation
- if ($validation == 0 and $maj == 0) {
- if($this->is_in_context_of_foreign_key('titre_de_civilite', $this->retourformulaire))
- $form->setVal('civilite_co_exploitant', $idxformulaire);
- if($this->is_in_context_of_foreign_key('titre_de_civilite', $this->retourformulaire))
- $form->setVal('civilite_exploitant', $idxformulaire);
- if($this->is_in_context_of_foreign_key('titre_de_civilite', $this->retourformulaire))
- $form->setVal('civilite_proprietaire', $idxformulaire);
- if($this->is_in_context_of_foreign_key('qualite_exploitant', $this->retourformulaire))
- $form->setVal('qualite_ancien_exploitant', $idxformulaire);
- if($this->is_in_context_of_foreign_key('qualite_exploitant', $this->retourformulaire))
- $form->setVal('qualite_co_exploitant', $idxformulaire);
- if($this->is_in_context_of_foreign_key('qualite_exploitant', $this->retourformulaire))
- $form->setVal('qualite_exploitant', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("type_etablissement", $this->getParameter("retourformulaire"))) {
+ $form->setVal("type_etablissement", $this->getParameter("idxformulaire"));
+ }
+ }
+ if ($validation == 0 && $maj == 0) {
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("civilite_co_exploitant", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("civilite_exploitant", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("titre_de_civilite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("civilite_proprietaire", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
+ $form->setVal("qualite_ancien_exploitant", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
+ $form->setVal("qualite_co_exploitant", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("qualite_exploitant", $this->getParameter("retourformulaire"))) {
+ $form->setVal("qualite_exploitant", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : courrier
$this->rechercheTable($this->f->db, "courrier", "etablissement", $id);
- // Verification de la cle secondaire : demande_licence
$this->rechercheTable($this->f->db, "demande_licence", "etablissement", $id);
- // Verification de la cle secondaire : dossier
$this->rechercheTable($this->f->db, "dossier", "etablissement", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_collectivite.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_collectivite.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_collectivite.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_collectivite_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_collectivite_gen*.
+ */
class om_collectivite_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_collectivite";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_collectivite";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_collectivite";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"niveau",
"om_collectivite"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -40,88 +75,83 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- $this->valF['libelle'] = $val['libelle'];
- $this->valF['niveau'] = $val['niveau'];
+ $this->valF["libelle"] = $val["libelle"];
+ $this->valF["niveau"] = $val["niveau"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_collectivite", "hidden");
$form->setType("libelle", "text");
$form->setType("niveau", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_collectivite", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("niveau", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_collectivite", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("niveau", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_collectivite", "static");
$form->setType("libelle", "static");
$form->setType("niveau", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_collectivite','VerifNum(this)');
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_collectivite", 11);
@@ -130,7 +160,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_collectivite", 11);
@@ -138,65 +168,52 @@
$form->setMax("niveau", 1);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('niveau', __('niveau'));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("niveau", __("niveau"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_etat
$this->rechercheTable($this->f->db, "om_etat", "om_collectivite", $id);
- // Verification de la cle secondaire : om_lettretype
$this->rechercheTable($this->f->db, "om_lettretype", "om_collectivite", $id);
- // Verification de la cle secondaire : om_logo
$this->rechercheTable($this->f->db, "om_logo", "om_collectivite", $id);
- // Verification de la cle secondaire : om_parametre
$this->rechercheTable($this->f->db, "om_parametre", "om_collectivite", $id);
- // Verification de la cle secondaire : om_sig_flux
$this->rechercheTable($this->f->db, "om_sig_flux", "om_collectivite", $id);
- // Verification de la cle secondaire : om_sig_map
$this->rechercheTable($this->f->db, "om_sig_map", "om_collectivite", $id);
- // Verification de la cle secondaire : om_sousetat
$this->rechercheTable($this->f->db, "om_sousetat", "om_collectivite", $id);
- // Verification de la cle secondaire : om_utilisateur
$this->rechercheTable($this->f->db, "om_utilisateur", "om_collectivite", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_dashboard.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_dashboard.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_dashboard.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_dashboard_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_dashboard_gen*.
+ */
class om_dashboard_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_dashboard";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_dashboard";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_dashboard";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"bloc",
"om_dashboard",
@@ -17,15 +49,19 @@
"om_profil",
"om_widget"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_profil" => array("om_profil", ),
"om_widget" => array("om_widget", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("om_profil");
@@ -32,8 +68,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -46,8 +81,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_profil.
*/
function get_var_sql_forminc__sql_om_profil() {
return "SELECT om_profil.om_profil, om_profil.libelle FROM ".DB_PREFIXE."om_profil ORDER BY om_profil.libelle ASC";
@@ -54,8 +88,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_profil_by_id.
*/
function get_var_sql_forminc__sql_om_profil_by_id() {
return "SELECT om_profil.om_profil, om_profil.libelle FROM ".DB_PREFIXE."om_profil WHERE om_profil = <idx>";
@@ -62,8 +95,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_widget.
*/
function get_var_sql_forminc__sql_om_widget() {
return "SELECT om_widget.om_widget, om_widget.libelle FROM ".DB_PREFIXE."om_widget ORDER BY om_widget.libelle ASC";
@@ -70,72 +102,68 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_widget_by_id.
*/
function get_var_sql_forminc__sql_om_widget_by_id() {
return "SELECT om_widget.om_widget, om_widget.libelle FROM ".DB_PREFIXE."om_widget WHERE om_widget = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_dashboard'])) {
- $this->valF['om_dashboard'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_dashboard"])) {
+ $this->valF["om_dashboard"] = ""; // -> requis
} else {
- $this->valF['om_dashboard'] = $val['om_dashboard'];
+ $this->valF["om_dashboard"] = $val["om_dashboard"];
}
- if (!is_numeric($val['om_profil'])) {
- $this->valF['om_profil'] = ""; // -> requis
+ if (!is_numeric($val["om_profil"])) {
+ $this->valF["om_profil"] = ""; // -> requis
} else {
- $this->valF['om_profil'] = $val['om_profil'];
+ $this->valF["om_profil"] = $val["om_profil"];
}
- $this->valF['bloc'] = $val['bloc'];
- if (!is_numeric($val['position'])) {
- $this->valF['position'] = NULL;
+ $this->valF["bloc"] = $val["bloc"];
+ if (!is_numeric($val["position"])) {
+ $this->valF["position"] = null;
} else {
- $this->valF['position'] = $val['position'];
+ $this->valF["position"] = $val["position"];
}
- if (!is_numeric($val['om_widget'])) {
- $this->valF['om_widget'] = ""; // -> requis
+ if (!is_numeric($val["om_widget"])) {
+ $this->valF["om_widget"] = ""; // -> requis
} else {
- $this->valF['om_widget'] = $val['om_widget'];
+ $this->valF["om_widget"] = $val["om_widget"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_dashboard", "hidden");
- if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
$form->setType("om_profil", "selecthiddenstatic");
} else {
$form->setType("om_profil", "select");
@@ -142,17 +170,16 @@
}
$form->setType("bloc", "text");
$form->setType("position", "text");
- if ($this->is_in_context_of_foreign_key("om_widget", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_widget", $this->getParameter("retourformulaire"))) {
$form->setType("om_widget", "selecthiddenstatic");
} else {
$form->setType("om_widget", "select");
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_dashboard", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
$form->setType("om_profil", "selecthiddenstatic");
} else {
$form->setType("om_profil", "select");
@@ -159,15 +186,14 @@
}
$form->setType("bloc", "text");
$form->setType("position", "text");
- if ($this->is_in_context_of_foreign_key("om_widget", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_widget", $this->getParameter("retourformulaire"))) {
$form->setType("om_widget", "selecthiddenstatic");
} else {
$form->setType("om_widget", "select");
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_dashboard", "hiddenstatic");
$form->setType("om_profil", "selectstatic");
$form->setType("bloc", "hiddenstatic");
@@ -174,9 +200,8 @@
$form->setType("position", "hiddenstatic");
$form->setType("om_widget", "selectstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_dashboard", "static");
$form->setType("om_profil", "selectstatic");
$form->setType("bloc", "static");
@@ -183,19 +208,20 @@
$form->setType("position", "static");
$form->setType("om_widget", "selectstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_dashboard','VerifNum(this)');
- $form->setOnchange('om_profil','VerifNum(this)');
- $form->setOnchange('position','VerifNum(this)');
- $form->setOnchange('om_widget','VerifNum(this)');
+ $form->setOnchange("om_dashboard", "VerifNum(this)");
+ $form->setOnchange("om_profil", "VerifNum(this)");
+ $form->setOnchange("position", "VerifNum(this)");
+ $form->setOnchange("om_widget", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_dashboard", 11);
@@ -206,7 +232,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_dashboard", 11);
@@ -216,20 +242,22 @@
$form->setMax("om_widget", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_dashboard', __('om_dashboard'));
- $form->setLib('om_profil', __('om_profil'));
- $form->setLib('bloc', __('bloc'));
- $form->setLib('position', __('position'));
- $form->setLib('om_widget', __('om_widget'));
+ $form->setLib("om_dashboard", __("om_dashboard"));
+ $form->setLib("om_profil", __("om_profil"));
+ $form->setLib("bloc", __("bloc"));
+ $form->setLib("position", __("position"));
+ $form->setLib("om_widget", __("om_widget"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_profil
$this->init_select(
$form,
@@ -254,26 +282,19 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_profil', $this->retourformulaire))
- $form->setVal('om_profil', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_widget', $this->retourformulaire))
- $form->setVal('om_widget', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_profil", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_widget", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_widget", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_droit.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_droit.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_droit.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,31 +1,73 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_droit_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_droit_gen*.
+ */
class om_droit_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_droit";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_droit";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_droit";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"om_droit",
"om_profil"
);
+
+ /**
+ * Liste des champs uniques.
+ * @var array
+ */
var $unique_key = array(
- array("libelle","om_profil"),
+ array("libelle", "om_profil"),
);
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_profil" => array("om_profil", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -32,8 +74,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -44,8 +85,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_profil.
*/
function get_var_sql_forminc__sql_om_profil() {
return "SELECT om_profil.om_profil, om_profil.libelle FROM ".DB_PREFIXE."om_profil ORDER BY om_profil.libelle ASC";
@@ -52,104 +92,98 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_profil_by_id.
*/
function get_var_sql_forminc__sql_om_profil_by_id() {
return "SELECT om_profil.om_profil, om_profil.libelle FROM ".DB_PREFIXE."om_profil WHERE om_profil = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_droit'])) {
- $this->valF['om_droit'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_droit"])) {
+ $this->valF["om_droit"] = ""; // -> requis
} else {
- $this->valF['om_droit'] = $val['om_droit'];
+ $this->valF["om_droit"] = $val["om_droit"];
}
- $this->valF['libelle'] = $val['libelle'];
- if (!is_numeric($val['om_profil'])) {
- $this->valF['om_profil'] = ""; // -> requis
+ $this->valF["libelle"] = $val["libelle"];
+ if (!is_numeric($val["om_profil"])) {
+ $this->valF["om_profil"] = ""; // -> requis
} else {
- $this->valF['om_profil'] = $val['om_profil'];
+ $this->valF["om_profil"] = $val["om_profil"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_droit", "hidden");
$form->setType("libelle", "text");
- if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
$form->setType("om_profil", "selecthiddenstatic");
} else {
$form->setType("om_profil", "select");
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_droit", "hiddenstatic");
$form->setType("libelle", "text");
- if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
$form->setType("om_profil", "selecthiddenstatic");
} else {
$form->setType("om_profil", "select");
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_droit", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("om_profil", "selectstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_droit", "static");
$form->setType("libelle", "static");
$form->setType("om_profil", "selectstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_droit','VerifNum(this)');
- $form->setOnchange('om_profil','VerifNum(this)');
+ $form->setOnchange("om_droit", "VerifNum(this)");
+ $form->setOnchange("om_profil", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_droit", 11);
@@ -158,7 +192,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_droit", 11);
@@ -166,18 +200,20 @@
$form->setMax("om_profil", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_droit', __('om_droit'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('om_profil', __('om_profil'));
+ $form->setLib("om_droit", __("om_droit"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("om_profil", __("om_profil"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_profil
$this->init_select(
$form,
@@ -191,24 +227,16 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_profil', $this->retourformulaire))
- $form->setVal('om_profil', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_profil", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_etat.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_etat.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_etat.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_etat_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_etat_gen*.
+ */
class om_etat_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_etat";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_etat";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_etat";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"corps_om_htmletatex",
"format",
@@ -31,15 +63,19 @@
"titre_om_htmletat",
"titretop"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
"om_requete" => array("om_requete", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -46,8 +82,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -83,8 +118,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -91,8 +125,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
@@ -99,8 +132,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sql.
*/
function get_var_sql_forminc__sql_om_sql() {
return "SELECT om_requete.om_requete, om_requete.libelle FROM ".DB_PREFIXE."om_requete ORDER BY om_requete.libelle ASC";
@@ -107,151 +139,147 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sql_by_id.
*/
function get_var_sql_forminc__sql_om_sql_by_id() {
return "SELECT om_requete.om_requete, om_requete.libelle FROM ".DB_PREFIXE."om_requete WHERE om_requete = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_etat'])) {
- $this->valF['om_etat'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_etat"])) {
+ $this->valF["om_etat"] = ""; // -> requis
} else {
- $this->valF['om_etat'] = $val['om_etat'];
+ $this->valF["om_etat"] = $val["om_etat"];
}
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- $this->valF['id'] = $val['id'];
- $this->valF['libelle'] = $val['libelle'];
- if ($val['actif'] == 1 || $val['actif'] == "t" || $val['actif'] == "Oui") {
- $this->valF['actif'] = true;
+ $this->valF["id"] = $val["id"];
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["actif"] == 1 || $val["actif"] == "t" || $val["actif"] == "Oui") {
+ $this->valF["actif"] = true;
} else {
- $this->valF['actif'] = false;
+ $this->valF["actif"] = false;
}
- $this->valF['orientation'] = $val['orientation'];
- $this->valF['format'] = $val['format'];
- if ($val['logo'] == "") {
- $this->valF['logo'] = NULL;
+ $this->valF["orientation"] = $val["orientation"];
+ $this->valF["format"] = $val["format"];
+ if ($val["logo"] == "") {
+ $this->valF["logo"] = null;
} else {
- $this->valF['logo'] = $val['logo'];
+ $this->valF["logo"] = $val["logo"];
}
- if (!is_numeric($val['logoleft'])) {
- $this->valF['logoleft'] = ""; // -> requis
+ if (!is_numeric($val["logoleft"])) {
+ $this->valF["logoleft"] = ""; // -> requis
} else {
- $this->valF['logoleft'] = $val['logoleft'];
+ $this->valF["logoleft"] = $val["logoleft"];
}
- if (!is_numeric($val['logotop'])) {
- $this->valF['logotop'] = ""; // -> requis
+ if (!is_numeric($val["logotop"])) {
+ $this->valF["logotop"] = ""; // -> requis
} else {
- $this->valF['logotop'] = $val['logotop'];
+ $this->valF["logotop"] = $val["logotop"];
}
- $this->valF['titre_om_htmletat'] = $val['titre_om_htmletat'];
- if (!is_numeric($val['titreleft'])) {
- $this->valF['titreleft'] = ""; // -> requis
+ $this->valF["titre_om_htmletat"] = $val["titre_om_htmletat"];
+ if (!is_numeric($val["titreleft"])) {
+ $this->valF["titreleft"] = ""; // -> requis
} else {
- $this->valF['titreleft'] = $val['titreleft'];
+ $this->valF["titreleft"] = $val["titreleft"];
}
- if (!is_numeric($val['titretop'])) {
- $this->valF['titretop'] = ""; // -> requis
+ if (!is_numeric($val["titretop"])) {
+ $this->valF["titretop"] = ""; // -> requis
} else {
- $this->valF['titretop'] = $val['titretop'];
+ $this->valF["titretop"] = $val["titretop"];
}
- if (!is_numeric($val['titrelargeur'])) {
- $this->valF['titrelargeur'] = ""; // -> requis
+ if (!is_numeric($val["titrelargeur"])) {
+ $this->valF["titrelargeur"] = ""; // -> requis
} else {
- $this->valF['titrelargeur'] = $val['titrelargeur'];
+ $this->valF["titrelargeur"] = $val["titrelargeur"];
}
- if (!is_numeric($val['titrehauteur'])) {
- $this->valF['titrehauteur'] = ""; // -> requis
+ if (!is_numeric($val["titrehauteur"])) {
+ $this->valF["titrehauteur"] = ""; // -> requis
} else {
- $this->valF['titrehauteur'] = $val['titrehauteur'];
+ $this->valF["titrehauteur"] = $val["titrehauteur"];
}
- $this->valF['titrebordure'] = $val['titrebordure'];
- $this->valF['corps_om_htmletatex'] = $val['corps_om_htmletatex'];
- if (!is_numeric($val['om_sql'])) {
- $this->valF['om_sql'] = ""; // -> requis
+ $this->valF["titrebordure"] = $val["titrebordure"];
+ $this->valF["corps_om_htmletatex"] = $val["corps_om_htmletatex"];
+ if (!is_numeric($val["om_sql"])) {
+ $this->valF["om_sql"] = ""; // -> requis
} else {
- $this->valF['om_sql'] = $val['om_sql'];
+ $this->valF["om_sql"] = $val["om_sql"];
}
- $this->valF['se_font'] = $val['se_font'];
- $this->valF['se_couleurtexte'] = $val['se_couleurtexte'];
- if (!is_numeric($val['margeleft'])) {
- $this->valF['margeleft'] = 0; // -> default
+ $this->valF["se_font"] = $val["se_font"];
+ $this->valF["se_couleurtexte"] = $val["se_couleurtexte"];
+ if (!is_numeric($val["margeleft"])) {
+ $this->valF["margeleft"] = 0; // -> default
} else {
- $this->valF['margeleft'] = $val['margeleft'];
+ $this->valF["margeleft"] = $val["margeleft"];
}
- if (!is_numeric($val['margetop'])) {
- $this->valF['margetop'] = 0; // -> default
+ if (!is_numeric($val["margetop"])) {
+ $this->valF["margetop"] = 0; // -> default
} else {
- $this->valF['margetop'] = $val['margetop'];
+ $this->valF["margetop"] = $val["margetop"];
}
- if (!is_numeric($val['margeright'])) {
- $this->valF['margeright'] = 0; // -> default
+ if (!is_numeric($val["margeright"])) {
+ $this->valF["margeright"] = 0; // -> default
} else {
- $this->valF['margeright'] = $val['margeright'];
+ $this->valF["margeright"] = $val["margeright"];
}
- if (!is_numeric($val['margebottom'])) {
- $this->valF['margebottom'] = 0; // -> default
+ if (!is_numeric($val["margebottom"])) {
+ $this->valF["margebottom"] = 0; // -> default
} else {
- $this->valF['margebottom'] = $val['margebottom'];
+ $this->valF["margebottom"] = $val["margebottom"];
}
- $this->valF['header_om_htmletat'] = $val['header_om_htmletat'];
- if (!is_numeric($val['header_offset'])) {
- $this->valF['header_offset'] = 0; // -> default
+ $this->valF["header_om_htmletat"] = $val["header_om_htmletat"];
+ if (!is_numeric($val["header_offset"])) {
+ $this->valF["header_offset"] = 0; // -> default
} else {
- $this->valF['header_offset'] = $val['header_offset'];
+ $this->valF["header_offset"] = $val["header_offset"];
}
- $this->valF['footer_om_htmletat'] = $val['footer_om_htmletat'];
- if (!is_numeric($val['footer_offset'])) {
- $this->valF['footer_offset'] = 0; // -> default
+ $this->valF["footer_om_htmletat"] = $val["footer_om_htmletat"];
+ if (!is_numeric($val["footer_offset"])) {
+ $this->valF["footer_offset"] = 0; // -> default
} else {
- $this->valF['footer_offset'] = $val['footer_offset'];
+ $this->valF["footer_offset"] = $val["footer_offset"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_etat", "hidden");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -279,7 +307,7 @@
$form->setType("titrehauteur", "text");
$form->setType("titrebordure", "text");
$form->setType("corps_om_htmletatex", "htmlEtatEx");
- if ($this->is_in_context_of_foreign_key("om_requete", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_requete", $this->getParameter("retourformulaire"))) {
$form->setType("om_sql", "selecthiddenstatic");
} else {
$form->setType("om_sql", "select");
@@ -295,11 +323,10 @@
$form->setType("footer_om_htmletat", "htmlEtat");
$form->setType("footer_offset", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_etat", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -327,7 +354,7 @@
$form->setType("titrehauteur", "text");
$form->setType("titrebordure", "text");
$form->setType("corps_om_htmletatex", "htmlEtatEx");
- if ($this->is_in_context_of_foreign_key("om_requete", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_requete", $this->getParameter("retourformulaire"))) {
$form->setType("om_sql", "selecthiddenstatic");
} else {
$form->setType("om_sql", "select");
@@ -343,9 +370,8 @@
$form->setType("footer_om_htmletat", "htmlEtat");
$form->setType("footer_offset", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_etat", "hiddenstatic");
if ($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
@@ -379,11 +405,10 @@
$form->setType("footer_om_htmletat", "hiddenstatic");
$form->setType("footer_offset", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_etat", "static");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -423,30 +448,31 @@
$form->setType("footer_om_htmletat", "htmlstatic");
$form->setType("footer_offset", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_etat','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
- $form->setOnchange('logoleft','VerifNum(this)');
- $form->setOnchange('logotop','VerifNum(this)');
- $form->setOnchange('titreleft','VerifNum(this)');
- $form->setOnchange('titretop','VerifNum(this)');
- $form->setOnchange('titrelargeur','VerifNum(this)');
- $form->setOnchange('titrehauteur','VerifNum(this)');
- $form->setOnchange('om_sql','VerifNum(this)');
- $form->setOnchange('margeleft','VerifNum(this)');
- $form->setOnchange('margetop','VerifNum(this)');
- $form->setOnchange('margeright','VerifNum(this)');
- $form->setOnchange('margebottom','VerifNum(this)');
- $form->setOnchange('header_offset','VerifNum(this)');
- $form->setOnchange('footer_offset','VerifNum(this)');
+ $form->setOnchange("om_etat", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
+ $form->setOnchange("logoleft", "VerifNum(this)");
+ $form->setOnchange("logotop", "VerifNum(this)");
+ $form->setOnchange("titreleft", "VerifNum(this)");
+ $form->setOnchange("titretop", "VerifNum(this)");
+ $form->setOnchange("titrelargeur", "VerifNum(this)");
+ $form->setOnchange("titrehauteur", "VerifNum(this)");
+ $form->setOnchange("om_sql", "VerifNum(this)");
+ $form->setOnchange("margeleft", "VerifNum(this)");
+ $form->setOnchange("margetop", "VerifNum(this)");
+ $form->setOnchange("margeright", "VerifNum(this)");
+ $form->setOnchange("margebottom", "VerifNum(this)");
+ $form->setOnchange("header_offset", "VerifNum(this)");
+ $form->setOnchange("footer_offset", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_etat", 11);
@@ -480,7 +506,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_etat", 11);
@@ -513,43 +539,45 @@
$form->setMax("footer_offset", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_etat', __('om_etat'));
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('id', __('id'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('actif', __('actif'));
- $form->setLib('orientation', __('orientation'));
- $form->setLib('format', __('format'));
- $form->setLib('logo', __('logo'));
- $form->setLib('logoleft', __('logoleft'));
- $form->setLib('logotop', __('logotop'));
- $form->setLib('titre_om_htmletat', __('titre_om_htmletat'));
- $form->setLib('titreleft', __('titreleft'));
- $form->setLib('titretop', __('titretop'));
- $form->setLib('titrelargeur', __('titrelargeur'));
- $form->setLib('titrehauteur', __('titrehauteur'));
- $form->setLib('titrebordure', __('titrebordure'));
- $form->setLib('corps_om_htmletatex', __('corps_om_htmletatex'));
- $form->setLib('om_sql', __('om_sql'));
- $form->setLib('se_font', __('se_font'));
- $form->setLib('se_couleurtexte', __('se_couleurtexte'));
- $form->setLib('margeleft', __('margeleft'));
- $form->setLib('margetop', __('margetop'));
- $form->setLib('margeright', __('margeright'));
- $form->setLib('margebottom', __('margebottom'));
- $form->setLib('header_om_htmletat', __('header_om_htmletat'));
- $form->setLib('header_offset', __('header_offset'));
- $form->setLib('footer_om_htmletat', __('footer_om_htmletat'));
- $form->setLib('footer_offset', __('footer_offset'));
+ $form->setLib("om_etat", __("om_etat"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("id", __("id"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("actif", __("actif"));
+ $form->setLib("orientation", __("orientation"));
+ $form->setLib("format", __("format"));
+ $form->setLib("logo", __("logo"));
+ $form->setLib("logoleft", __("logoleft"));
+ $form->setLib("logotop", __("logotop"));
+ $form->setLib("titre_om_htmletat", __("titre_om_htmletat"));
+ $form->setLib("titreleft", __("titreleft"));
+ $form->setLib("titretop", __("titretop"));
+ $form->setLib("titrelargeur", __("titrelargeur"));
+ $form->setLib("titrehauteur", __("titrehauteur"));
+ $form->setLib("titrebordure", __("titrebordure"));
+ $form->setLib("corps_om_htmletatex", __("corps_om_htmletatex"));
+ $form->setLib("om_sql", __("om_sql"));
+ $form->setLib("se_font", __("se_font"));
+ $form->setLib("se_couleurtexte", __("se_couleurtexte"));
+ $form->setLib("margeleft", __("margeleft"));
+ $form->setLib("margetop", __("margetop"));
+ $form->setLib("margeright", __("margeright"));
+ $form->setLib("margebottom", __("margebottom"));
+ $form->setLib("header_om_htmletat", __("header_om_htmletat"));
+ $form->setLib("header_offset", __("header_offset"));
+ $form->setLib("footer_om_htmletat", __("footer_om_htmletat"));
+ $form->setLib("footer_offset", __("footer_offset"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -574,36 +602,32 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_requete', $this->retourformulaire))
- $form->setVal('om_sql', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_requete", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_sql", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_lettretype.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_lettretype.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_lettretype.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_lettretype_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_lettretype_gen*.
+ */
class om_lettretype_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_lettretype";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_lettretype";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_lettretype";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"corps_om_htmletatex",
"format",
@@ -29,15 +61,19 @@
"titre_om_htmletat",
"titretop"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
"om_requete" => array("om_requete", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -44,8 +80,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -81,8 +116,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -89,8 +123,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
@@ -97,8 +130,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sql.
*/
function get_var_sql_forminc__sql_om_sql() {
return "SELECT om_requete.om_requete, om_requete.libelle FROM ".DB_PREFIXE."om_requete ORDER BY om_requete.libelle ASC";
@@ -105,159 +137,155 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sql_by_id.
*/
function get_var_sql_forminc__sql_om_sql_by_id() {
return "SELECT om_requete.om_requete, om_requete.libelle FROM ".DB_PREFIXE."om_requete WHERE om_requete = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_lettretype'])) {
- $this->valF['om_lettretype'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_lettretype"])) {
+ $this->valF["om_lettretype"] = ""; // -> requis
} else {
- $this->valF['om_lettretype'] = $val['om_lettretype'];
+ $this->valF["om_lettretype"] = $val["om_lettretype"];
}
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- $this->valF['id'] = $val['id'];
- $this->valF['libelle'] = $val['libelle'];
- if ($val['actif'] == 1 || $val['actif'] == "t" || $val['actif'] == "Oui") {
- $this->valF['actif'] = true;
+ $this->valF["id"] = $val["id"];
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["actif"] == 1 || $val["actif"] == "t" || $val["actif"] == "Oui") {
+ $this->valF["actif"] = true;
} else {
- $this->valF['actif'] = false;
+ $this->valF["actif"] = false;
}
- $this->valF['orientation'] = $val['orientation'];
- $this->valF['format'] = $val['format'];
- if ($val['logo'] == "") {
- $this->valF['logo'] = NULL;
+ $this->valF["orientation"] = $val["orientation"];
+ $this->valF["format"] = $val["format"];
+ if ($val["logo"] == "") {
+ $this->valF["logo"] = null;
} else {
- $this->valF['logo'] = $val['logo'];
+ $this->valF["logo"] = $val["logo"];
}
- if (!is_numeric($val['logoleft'])) {
- $this->valF['logoleft'] = ""; // -> requis
+ if (!is_numeric($val["logoleft"])) {
+ $this->valF["logoleft"] = ""; // -> requis
} else {
- $this->valF['logoleft'] = $val['logoleft'];
+ $this->valF["logoleft"] = $val["logoleft"];
}
- if (!is_numeric($val['logotop'])) {
- $this->valF['logotop'] = ""; // -> requis
+ if (!is_numeric($val["logotop"])) {
+ $this->valF["logotop"] = ""; // -> requis
} else {
- $this->valF['logotop'] = $val['logotop'];
+ $this->valF["logotop"] = $val["logotop"];
}
- $this->valF['titre_om_htmletat'] = $val['titre_om_htmletat'];
- if (!is_numeric($val['titreleft'])) {
- $this->valF['titreleft'] = ""; // -> requis
+ $this->valF["titre_om_htmletat"] = $val["titre_om_htmletat"];
+ if (!is_numeric($val["titreleft"])) {
+ $this->valF["titreleft"] = ""; // -> requis
} else {
- $this->valF['titreleft'] = $val['titreleft'];
+ $this->valF["titreleft"] = $val["titreleft"];
}
- if (!is_numeric($val['titretop'])) {
- $this->valF['titretop'] = ""; // -> requis
+ if (!is_numeric($val["titretop"])) {
+ $this->valF["titretop"] = ""; // -> requis
} else {
- $this->valF['titretop'] = $val['titretop'];
+ $this->valF["titretop"] = $val["titretop"];
}
- if (!is_numeric($val['titrelargeur'])) {
- $this->valF['titrelargeur'] = ""; // -> requis
+ if (!is_numeric($val["titrelargeur"])) {
+ $this->valF["titrelargeur"] = ""; // -> requis
} else {
- $this->valF['titrelargeur'] = $val['titrelargeur'];
+ $this->valF["titrelargeur"] = $val["titrelargeur"];
}
- if (!is_numeric($val['titrehauteur'])) {
- $this->valF['titrehauteur'] = ""; // -> requis
+ if (!is_numeric($val["titrehauteur"])) {
+ $this->valF["titrehauteur"] = ""; // -> requis
} else {
- $this->valF['titrehauteur'] = $val['titrehauteur'];
+ $this->valF["titrehauteur"] = $val["titrehauteur"];
}
- $this->valF['titrebordure'] = $val['titrebordure'];
- $this->valF['corps_om_htmletatex'] = $val['corps_om_htmletatex'];
- if (!is_numeric($val['om_sql'])) {
- $this->valF['om_sql'] = ""; // -> requis
+ $this->valF["titrebordure"] = $val["titrebordure"];
+ $this->valF["corps_om_htmletatex"] = $val["corps_om_htmletatex"];
+ if (!is_numeric($val["om_sql"])) {
+ $this->valF["om_sql"] = ""; // -> requis
} else {
- $this->valF['om_sql'] = $val['om_sql'];
+ $this->valF["om_sql"] = $val["om_sql"];
}
- if (!is_numeric($val['margeleft'])) {
- $this->valF['margeleft'] = 0; // -> default
+ if (!is_numeric($val["margeleft"])) {
+ $this->valF["margeleft"] = 0; // -> default
} else {
- $this->valF['margeleft'] = $val['margeleft'];
+ $this->valF["margeleft"] = $val["margeleft"];
}
- if (!is_numeric($val['margetop'])) {
- $this->valF['margetop'] = 0; // -> default
+ if (!is_numeric($val["margetop"])) {
+ $this->valF["margetop"] = 0; // -> default
} else {
- $this->valF['margetop'] = $val['margetop'];
+ $this->valF["margetop"] = $val["margetop"];
}
- if (!is_numeric($val['margeright'])) {
- $this->valF['margeright'] = 0; // -> default
+ if (!is_numeric($val["margeright"])) {
+ $this->valF["margeright"] = 0; // -> default
} else {
- $this->valF['margeright'] = $val['margeright'];
+ $this->valF["margeright"] = $val["margeright"];
}
- if (!is_numeric($val['margebottom'])) {
- $this->valF['margebottom'] = 0; // -> default
+ if (!is_numeric($val["margebottom"])) {
+ $this->valF["margebottom"] = 0; // -> default
} else {
- $this->valF['margebottom'] = $val['margebottom'];
+ $this->valF["margebottom"] = $val["margebottom"];
}
- if ($val['se_font'] == "") {
- $this->valF['se_font'] = NULL;
+ if ($val["se_font"] == "") {
+ $this->valF["se_font"] = null;
} else {
- $this->valF['se_font'] = $val['se_font'];
+ $this->valF["se_font"] = $val["se_font"];
}
- if ($val['se_couleurtexte'] == "") {
- $this->valF['se_couleurtexte'] = NULL;
+ if ($val["se_couleurtexte"] == "") {
+ $this->valF["se_couleurtexte"] = null;
} else {
- $this->valF['se_couleurtexte'] = $val['se_couleurtexte'];
+ $this->valF["se_couleurtexte"] = $val["se_couleurtexte"];
}
- $this->valF['header_om_htmletat'] = $val['header_om_htmletat'];
- if (!is_numeric($val['header_offset'])) {
- $this->valF['header_offset'] = 0; // -> default
+ $this->valF["header_om_htmletat"] = $val["header_om_htmletat"];
+ if (!is_numeric($val["header_offset"])) {
+ $this->valF["header_offset"] = 0; // -> default
} else {
- $this->valF['header_offset'] = $val['header_offset'];
+ $this->valF["header_offset"] = $val["header_offset"];
}
- $this->valF['footer_om_htmletat'] = $val['footer_om_htmletat'];
- if (!is_numeric($val['footer_offset'])) {
- $this->valF['footer_offset'] = 0; // -> default
+ $this->valF["footer_om_htmletat"] = $val["footer_om_htmletat"];
+ if (!is_numeric($val["footer_offset"])) {
+ $this->valF["footer_offset"] = 0; // -> default
} else {
- $this->valF['footer_offset'] = $val['footer_offset'];
+ $this->valF["footer_offset"] = $val["footer_offset"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_lettretype", "hidden");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -285,7 +313,7 @@
$form->setType("titrehauteur", "text");
$form->setType("titrebordure", "text");
$form->setType("corps_om_htmletatex", "htmlEtatEx");
- if ($this->is_in_context_of_foreign_key("om_requete", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_requete", $this->getParameter("retourformulaire"))) {
$form->setType("om_sql", "selecthiddenstatic");
} else {
$form->setType("om_sql", "select");
@@ -301,11 +329,10 @@
$form->setType("footer_om_htmletat", "htmlEtat");
$form->setType("footer_offset", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_lettretype", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -333,7 +360,7 @@
$form->setType("titrehauteur", "text");
$form->setType("titrebordure", "text");
$form->setType("corps_om_htmletatex", "htmlEtatEx");
- if ($this->is_in_context_of_foreign_key("om_requete", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_requete", $this->getParameter("retourformulaire"))) {
$form->setType("om_sql", "selecthiddenstatic");
} else {
$form->setType("om_sql", "select");
@@ -349,9 +376,8 @@
$form->setType("footer_om_htmletat", "htmlEtat");
$form->setType("footer_offset", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_lettretype", "hiddenstatic");
if ($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
@@ -385,11 +411,10 @@
$form->setType("footer_om_htmletat", "hiddenstatic");
$form->setType("footer_offset", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_lettretype", "static");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -429,30 +454,31 @@
$form->setType("footer_om_htmletat", "htmlstatic");
$form->setType("footer_offset", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_lettretype','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
- $form->setOnchange('logoleft','VerifNum(this)');
- $form->setOnchange('logotop','VerifNum(this)');
- $form->setOnchange('titreleft','VerifNum(this)');
- $form->setOnchange('titretop','VerifNum(this)');
- $form->setOnchange('titrelargeur','VerifNum(this)');
- $form->setOnchange('titrehauteur','VerifNum(this)');
- $form->setOnchange('om_sql','VerifNum(this)');
- $form->setOnchange('margeleft','VerifNum(this)');
- $form->setOnchange('margetop','VerifNum(this)');
- $form->setOnchange('margeright','VerifNum(this)');
- $form->setOnchange('margebottom','VerifNum(this)');
- $form->setOnchange('header_offset','VerifNum(this)');
- $form->setOnchange('footer_offset','VerifNum(this)');
+ $form->setOnchange("om_lettretype", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
+ $form->setOnchange("logoleft", "VerifNum(this)");
+ $form->setOnchange("logotop", "VerifNum(this)");
+ $form->setOnchange("titreleft", "VerifNum(this)");
+ $form->setOnchange("titretop", "VerifNum(this)");
+ $form->setOnchange("titrelargeur", "VerifNum(this)");
+ $form->setOnchange("titrehauteur", "VerifNum(this)");
+ $form->setOnchange("om_sql", "VerifNum(this)");
+ $form->setOnchange("margeleft", "VerifNum(this)");
+ $form->setOnchange("margetop", "VerifNum(this)");
+ $form->setOnchange("margeright", "VerifNum(this)");
+ $form->setOnchange("margebottom", "VerifNum(this)");
+ $form->setOnchange("header_offset", "VerifNum(this)");
+ $form->setOnchange("footer_offset", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_lettretype", 11);
@@ -486,7 +512,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_lettretype", 11);
@@ -519,43 +545,45 @@
$form->setMax("footer_offset", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_lettretype', __('om_lettretype'));
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('id', __('id'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('actif', __('actif'));
- $form->setLib('orientation', __('orientation'));
- $form->setLib('format', __('format'));
- $form->setLib('logo', __('logo'));
- $form->setLib('logoleft', __('logoleft'));
- $form->setLib('logotop', __('logotop'));
- $form->setLib('titre_om_htmletat', __('titre_om_htmletat'));
- $form->setLib('titreleft', __('titreleft'));
- $form->setLib('titretop', __('titretop'));
- $form->setLib('titrelargeur', __('titrelargeur'));
- $form->setLib('titrehauteur', __('titrehauteur'));
- $form->setLib('titrebordure', __('titrebordure'));
- $form->setLib('corps_om_htmletatex', __('corps_om_htmletatex'));
- $form->setLib('om_sql', __('om_sql'));
- $form->setLib('margeleft', __('margeleft'));
- $form->setLib('margetop', __('margetop'));
- $form->setLib('margeright', __('margeright'));
- $form->setLib('margebottom', __('margebottom'));
- $form->setLib('se_font', __('se_font'));
- $form->setLib('se_couleurtexte', __('se_couleurtexte'));
- $form->setLib('header_om_htmletat', __('header_om_htmletat'));
- $form->setLib('header_offset', __('header_offset'));
- $form->setLib('footer_om_htmletat', __('footer_om_htmletat'));
- $form->setLib('footer_offset', __('footer_offset'));
+ $form->setLib("om_lettretype", __("om_lettretype"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("id", __("id"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("actif", __("actif"));
+ $form->setLib("orientation", __("orientation"));
+ $form->setLib("format", __("format"));
+ $form->setLib("logo", __("logo"));
+ $form->setLib("logoleft", __("logoleft"));
+ $form->setLib("logotop", __("logotop"));
+ $form->setLib("titre_om_htmletat", __("titre_om_htmletat"));
+ $form->setLib("titreleft", __("titreleft"));
+ $form->setLib("titretop", __("titretop"));
+ $form->setLib("titrelargeur", __("titrelargeur"));
+ $form->setLib("titrehauteur", __("titrehauteur"));
+ $form->setLib("titrebordure", __("titrebordure"));
+ $form->setLib("corps_om_htmletatex", __("corps_om_htmletatex"));
+ $form->setLib("om_sql", __("om_sql"));
+ $form->setLib("margeleft", __("margeleft"));
+ $form->setLib("margetop", __("margetop"));
+ $form->setLib("margeright", __("margeright"));
+ $form->setLib("margebottom", __("margebottom"));
+ $form->setLib("se_font", __("se_font"));
+ $form->setLib("se_couleurtexte", __("se_couleurtexte"));
+ $form->setLib("header_om_htmletat", __("header_om_htmletat"));
+ $form->setLib("header_offset", __("header_offset"));
+ $form->setLib("footer_om_htmletat", __("footer_om_htmletat"));
+ $form->setLib("footer_offset", __("footer_offset"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -580,36 +608,32 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_requete', $this->retourformulaire))
- $form->setVal('om_sql', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_requete", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_sql", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_logo.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_logo.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_logo.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 01/08/2019 11:34
+/**
+ * Ce script contient la définition de la classe *om_logo_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_logo_gen*.
+ */
class om_logo_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_logo";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_logo";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_logo";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"fichier",
"id",
@@ -18,17 +50,26 @@
"om_collectivite",
"om_logo"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
);
+
+ /**
+ * Liste des champs avec un type abstrait.
+ * @var null|array
+ */
var $abstract_type = array(
"fichier" => "file",
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -35,8 +76,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -52,8 +92,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -60,86 +99,82 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_logo'])) {
- $this->valF['om_logo'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_logo"])) {
+ $this->valF["om_logo"] = ""; // -> requis
} else {
- $this->valF['om_logo'] = $val['om_logo'];
+ $this->valF["om_logo"] = $val["om_logo"];
}
- $this->valF['id'] = $val['id'];
- $this->valF['libelle'] = $val['libelle'];
- if ($val['description'] == "") {
- $this->valF['description'] = NULL;
+ $this->valF["id"] = $val["id"];
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["description"] == "") {
+ $this->valF["description"] = null;
} else {
- $this->valF['description'] = $val['description'];
+ $this->valF["description"] = $val["description"];
}
- $this->valF['fichier'] = $val['fichier'];
- if (!is_numeric($val['resolution'])) {
- $this->valF['resolution'] = NULL;
+ $this->valF["fichier"] = $val["fichier"];
+ if (!is_numeric($val["resolution"])) {
+ $this->valF["resolution"] = null;
} else {
- $this->valF['resolution'] = $val['resolution'];
+ $this->valF["resolution"] = $val["resolution"];
}
- if ($val['actif'] == 1 || $val['actif'] == "t" || $val['actif'] == "Oui") {
- $this->valF['actif'] = true;
+ if ($val["actif"] == 1 || $val["actif"] == "t" || $val["actif"] == "Oui") {
+ $this->valF["actif"] = true;
} else {
- $this->valF['actif'] = false;
+ $this->valF["actif"] = false;
}
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_logo", "hidden");
$form->setType("id", "text");
$form->setType("libelle", "text");
$form->setType("description", "text");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("fichier", "upload");
} else {
$form->setType("fichier", "upload2");
@@ -146,7 +181,7 @@
}
$form->setType("resolution", "text");
$form->setType("actif", "checkbox");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -160,14 +195,13 @@
}
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_logo", "hiddenstatic");
$form->setType("id", "text");
$form->setType("libelle", "text");
$form->setType("description", "text");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("fichier", "upload");
} else {
$form->setType("fichier", "upload2");
@@ -174,7 +208,7 @@
}
$form->setType("resolution", "text");
$form->setType("actif", "checkbox");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -188,9 +222,8 @@
}
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_logo", "hiddenstatic");
$form->setType("id", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
@@ -204,9 +237,8 @@
$form->setType("om_collectivite", "hidden");
}
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_logo", "static");
$form->setType("id", "static");
$form->setType("libelle", "static");
@@ -214,7 +246,7 @@
$form->setType("fichier", "file");
$form->setType("resolution", "static");
$form->setType("actif", "checkboxstatic");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -228,18 +260,19 @@
}
}
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_logo','VerifNum(this)');
- $form->setOnchange('resolution','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
+ $form->setOnchange("om_logo", "VerifNum(this)");
+ $form->setOnchange("resolution", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_logo", 11);
@@ -253,7 +286,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_logo", 11);
@@ -266,23 +299,25 @@
$form->setMax("om_collectivite", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_logo', __('om_logo'));
- $form->setLib('id', __('id'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('description', __('description'));
- $form->setLib('fichier', __('fichier'));
- $form->setLib('resolution', __('resolution'));
- $form->setLib('actif', __('actif'));
- $form->setLib('om_collectivite', __('om_collectivite'));
+ $form->setLib("om_logo", __("om_logo"));
+ $form->setLib("id", __("id"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("description", __("description"));
+ $form->setLib("fichier", __("fichier"));
+ $form->setLib("resolution", __("resolution"));
+ $form->setLib("actif", __("actif"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -296,34 +331,29 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_parametre.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_parametre.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_parametre.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_parametre_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_parametre_gen*.
+ */
class om_parametre_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_parametre";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_parametre";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_parametre";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"om_collectivite",
@@ -17,14 +49,18 @@
"om_parametre",
"valeur"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -31,8 +67,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -44,8 +79,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -52,69 +86,65 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_parametre'])) {
- $this->valF['om_parametre'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_parametre"])) {
+ $this->valF["om_parametre"] = ""; // -> requis
} else {
- $this->valF['om_parametre'] = $val['om_parametre'];
+ $this->valF["om_parametre"] = $val["om_parametre"];
}
- $this->valF['libelle'] = $val['libelle'];
- $this->valF['valeur'] = $val['valeur'];
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ $this->valF["libelle"] = $val["libelle"];
+ $this->valF["valeur"] = $val["valeur"];
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_parametre", "hidden");
$form->setType("libelle", "text");
$form->setType("valeur", "textarea");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -128,13 +158,12 @@
}
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_parametre", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("valeur", "textarea");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -148,9 +177,8 @@
}
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_parametre", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("valeur", "hiddenstatic");
@@ -160,13 +188,12 @@
$form->setType("om_collectivite", "hidden");
}
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_parametre", "static");
$form->setType("libelle", "static");
$form->setType("valeur", "textareastatic");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -180,17 +207,18 @@
}
}
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_parametre','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
+ $form->setOnchange("om_parametre", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_parametre", 11);
@@ -200,7 +228,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_parametre", 11);
@@ -209,19 +237,21 @@
$form->setMax("om_collectivite", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_parametre', __('om_parametre'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('valeur', __('valeur'));
- $form->setLib('om_collectivite', __('om_collectivite'));
+ $form->setLib("om_parametre", __("om_parametre"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("valeur", __("valeur"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -235,34 +265,29 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_permission.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_permission.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_permission.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_permission_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_permission_gen*.
+ */
class om_permission_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_permission";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_permission";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_permission";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"om_permission",
"type"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -40,84 +75,79 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_permission'])) {
- $this->valF['om_permission'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_permission"])) {
+ $this->valF["om_permission"] = ""; // -> requis
} else {
- $this->valF['om_permission'] = $val['om_permission'];
+ $this->valF["om_permission"] = $val["om_permission"];
}
- $this->valF['libelle'] = $val['libelle'];
- $this->valF['type'] = $val['type'];
+ $this->valF["libelle"] = $val["libelle"];
+ $this->valF["type"] = $val["type"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_permission", "hidden");
$form->setType("libelle", "text");
$form->setType("type", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_permission", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("type", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_permission", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("type", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_permission", "static");
$form->setType("libelle", "static");
$form->setType("type", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_permission','VerifNum(this)');
+ $form->setOnchange("om_permission", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_permission", 11);
@@ -126,7 +156,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_permission", 11);
@@ -134,34 +164,27 @@
$form->setMax("type", 100);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_permission', __('om_permission'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('type', __('type'));
+ $form->setLib("om_permission", __("om_permission"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("type", __("type"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_profil.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_profil.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_profil.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,27 +1,63 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_profil_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_profil_gen*.
+ */
class om_profil_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_profil";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_profil";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_profil";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"om_profil"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -28,8 +64,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -39,89 +74,84 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_profil'])) {
- $this->valF['om_profil'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_profil"])) {
+ $this->valF["om_profil"] = ""; // -> requis
} else {
- $this->valF['om_profil'] = $val['om_profil'];
+ $this->valF["om_profil"] = $val["om_profil"];
}
- $this->valF['libelle'] = $val['libelle'];
- if (!is_numeric($val['hierarchie'])) {
- $this->valF['hierarchie'] = 0; // -> default
+ $this->valF["libelle"] = $val["libelle"];
+ if (!is_numeric($val["hierarchie"])) {
+ $this->valF["hierarchie"] = 0; // -> default
} else {
- $this->valF['hierarchie'] = $val['hierarchie'];
+ $this->valF["hierarchie"] = $val["hierarchie"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_profil", "hidden");
$form->setType("libelle", "text");
$form->setType("hierarchie", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_profil", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("hierarchie", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_profil", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("hierarchie", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_profil", "static");
$form->setType("libelle", "static");
$form->setType("hierarchie", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_profil','VerifNum(this)');
- $form->setOnchange('hierarchie','VerifNum(this)');
+ $form->setOnchange("om_profil", "VerifNum(this)");
+ $form->setOnchange("hierarchie", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_profil", 11);
@@ -130,7 +160,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_profil", 11);
@@ -138,48 +168,37 @@
$form->setMax("hierarchie", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_profil', __('om_profil'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('hierarchie', __('hierarchie'));
+ $form->setLib("om_profil", __("om_profil"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("hierarchie", __("hierarchie"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_dashboard
$this->rechercheTable($this->f->db, "om_dashboard", "om_profil", $id);
- // Verification de la cle secondaire : om_droit
$this->rechercheTable($this->f->db, "om_droit", "om_profil", $id);
- // Verification de la cle secondaire : om_utilisateur
$this->rechercheTable($this->f->db, "om_utilisateur", "om_profil", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_requete.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_requete.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_requete.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_requete_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_requete_gen*.
+ */
class om_requete_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_requete";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_requete";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_requete";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"code",
"libelle",
@@ -17,13 +49,17 @@
"om_requete",
"type"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -30,8 +66,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -47,67 +82,64 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_requete'])) {
- $this->valF['om_requete'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_requete"])) {
+ $this->valF["om_requete"] = ""; // -> requis
} else {
- $this->valF['om_requete'] = $val['om_requete'];
+ $this->valF["om_requete"] = $val["om_requete"];
}
- $this->valF['code'] = $val['code'];
- $this->valF['libelle'] = $val['libelle'];
- if ($val['description'] == "") {
- $this->valF['description'] = NULL;
+ $this->valF["code"] = $val["code"];
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["description"] == "") {
+ $this->valF["description"] = null;
} else {
- $this->valF['description'] = $val['description'];
+ $this->valF["description"] = $val["description"];
}
- $this->valF['requete'] = $val['requete'];
- $this->valF['merge_fields'] = $val['merge_fields'];
- $this->valF['type'] = $val['type'];
- if ($val['classe'] == "") {
- $this->valF['classe'] = NULL;
+ $this->valF["requete"] = $val["requete"];
+ $this->valF["merge_fields"] = $val["merge_fields"];
+ $this->valF["type"] = $val["type"];
+ if ($val["classe"] == "") {
+ $this->valF["classe"] = null;
} else {
- $this->valF['classe'] = $val['classe'];
+ $this->valF["classe"] = $val["classe"];
}
- if ($val['methode'] == "") {
- $this->valF['methode'] = NULL;
+ if ($val["methode"] == "") {
+ $this->valF["methode"] = null;
} else {
- $this->valF['methode'] = $val['methode'];
+ $this->valF["methode"] = $val["methode"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_requete", "hidden");
$form->setType("code", "text");
$form->setType("libelle", "text");
@@ -118,9 +150,8 @@
$form->setType("classe", "text");
$form->setType("methode", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_requete", "hiddenstatic");
$form->setType("code", "text");
$form->setType("libelle", "text");
@@ -131,9 +162,8 @@
$form->setType("classe", "text");
$form->setType("methode", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_requete", "hiddenstatic");
$form->setType("code", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
@@ -144,9 +174,8 @@
$form->setType("classe", "hiddenstatic");
$form->setType("methode", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_requete", "static");
$form->setType("code", "static");
$form->setType("libelle", "static");
@@ -157,16 +186,17 @@
$form->setType("classe", "static");
$form->setType("methode", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_requete','VerifNum(this)');
+ $form->setOnchange("om_requete", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_requete", 11);
@@ -181,7 +211,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_requete", 11);
@@ -195,52 +225,42 @@
$form->setMax("methode", 200);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_requete', __('om_requete'));
- $form->setLib('code', __('code'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('description', __('description'));
- $form->setLib('requete', __('requete'));
- $form->setLib('merge_fields', __('merge_fields'));
- $form->setLib('type', __('type'));
- $form->setLib('classe', __('classe'));
- $form->setLib('methode', __('methode'));
+ $form->setLib("om_requete", __("om_requete"));
+ $form->setLib("code", __("code"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("description", __("description"));
+ $form->setLib("requete", __("requete"));
+ $form->setLib("merge_fields", __("merge_fields"));
+ $form->setLib("type", __("type"));
+ $form->setLib("classe", __("classe"));
+ $form->setLib("methode", __("methode"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_etat
$this->rechercheTable($this->f->db, "om_etat", "om_sql", $id);
- // Verification de la cle secondaire : om_lettretype
$this->rechercheTable($this->f->db, "om_lettretype", "om_sql", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_sig_extent.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_sig_extent.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_sig_extent.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,26 +1,62 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_sig_extent_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_sig_extent_gen*.
+ */
class om_sig_extent_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_sig_extent";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_sig_extent";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_sig_extent";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"om_sig_extent"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("nom");
@@ -27,8 +63,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -39,101 +74,96 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_sig_extent'])) {
- $this->valF['om_sig_extent'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_sig_extent"])) {
+ $this->valF["om_sig_extent"] = ""; // -> requis
} else {
- $this->valF['om_sig_extent'] = $val['om_sig_extent'];
+ $this->valF["om_sig_extent"] = $val["om_sig_extent"];
}
- if ($val['nom'] == "") {
- $this->valF['nom'] = NULL;
+ if ($val["nom"] == "") {
+ $this->valF["nom"] = null;
} else {
- $this->valF['nom'] = $val['nom'];
+ $this->valF["nom"] = $val["nom"];
}
- if ($val['extent'] == "") {
- $this->valF['extent'] = NULL;
+ if ($val["extent"] == "") {
+ $this->valF["extent"] = null;
} else {
- $this->valF['extent'] = $val['extent'];
+ $this->valF["extent"] = $val["extent"];
}
- if ($val['valide'] == 1 || $val['valide'] == "t" || $val['valide'] == "Oui") {
- $this->valF['valide'] = true;
+ if ($val["valide"] == 1 || $val["valide"] == "t" || $val["valide"] == "Oui") {
+ $this->valF["valide"] = true;
} else {
- $this->valF['valide'] = false;
+ $this->valF["valide"] = false;
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_sig_extent", "hidden");
$form->setType("nom", "text");
$form->setType("extent", "text");
$form->setType("valide", "checkbox");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_sig_extent", "hiddenstatic");
$form->setType("nom", "text");
$form->setType("extent", "text");
$form->setType("valide", "checkbox");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_sig_extent", "hiddenstatic");
$form->setType("nom", "hiddenstatic");
$form->setType("extent", "hiddenstatic");
$form->setType("valide", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_sig_extent", "static");
$form->setType("nom", "static");
$form->setType("extent", "static");
$form->setType("valide", "checkboxstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_sig_extent','VerifNum(this)');
+ $form->setOnchange("om_sig_extent", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_sig_extent", 11);
@@ -143,7 +173,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_sig_extent", 11);
@@ -152,45 +182,36 @@
$form->setMax("valide", 1);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_sig_extent', __('om_sig_extent'));
- $form->setLib('nom', __('nom'));
- $form->setLib('extent', __('extent'));
- $form->setLib('valide', __('valide'));
+ $form->setLib("om_sig_extent", __("om_sig_extent"));
+ $form->setLib("nom", __("nom"));
+ $form->setLib("extent", __("extent"));
+ $form->setLib("valide", __("valide"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_sig_map
$this->rechercheTable($this->f->db, "om_sig_map", "om_sig_extent", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_sig_flux.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_sig_flux.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_sig_flux.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_sig_flux_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_sig_flux_gen*.
+ */
class om_sig_flux_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_sig_flux";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_sig_flux";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_sig_flux";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"chemin",
"couches",
@@ -19,14 +51,18 @@
"om_collectivite",
"om_sig_flux"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -33,8 +69,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -52,8 +87,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -60,90 +94,86 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_sig_flux'])) {
- $this->valF['om_sig_flux'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_sig_flux"])) {
+ $this->valF["om_sig_flux"] = ""; // -> requis
} else {
- $this->valF['om_sig_flux'] = $val['om_sig_flux'];
+ $this->valF["om_sig_flux"] = $val["om_sig_flux"];
}
- $this->valF['libelle'] = $val['libelle'];
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ $this->valF["libelle"] = $val["libelle"];
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- $this->valF['id'] = $val['id'];
- if ($val['attribution'] == "") {
- $this->valF['attribution'] = NULL;
+ $this->valF["id"] = $val["id"];
+ if ($val["attribution"] == "") {
+ $this->valF["attribution"] = null;
} else {
- $this->valF['attribution'] = $val['attribution'];
+ $this->valF["attribution"] = $val["attribution"];
}
- $this->valF['chemin'] = $val['chemin'];
- $this->valF['couches'] = $val['couches'];
- if ($val['cache_type'] == "") {
- $this->valF['cache_type'] = NULL;
+ $this->valF["chemin"] = $val["chemin"];
+ $this->valF["couches"] = $val["couches"];
+ if ($val["cache_type"] == "") {
+ $this->valF["cache_type"] = null;
} else {
- $this->valF['cache_type'] = $val['cache_type'];
+ $this->valF["cache_type"] = $val["cache_type"];
}
- if ($val['cache_gfi_chemin'] == "") {
- $this->valF['cache_gfi_chemin'] = NULL;
+ if ($val["cache_gfi_chemin"] == "") {
+ $this->valF["cache_gfi_chemin"] = null;
} else {
- $this->valF['cache_gfi_chemin'] = $val['cache_gfi_chemin'];
+ $this->valF["cache_gfi_chemin"] = $val["cache_gfi_chemin"];
}
- if ($val['cache_gfi_couches'] == "") {
- $this->valF['cache_gfi_couches'] = NULL;
+ if ($val["cache_gfi_couches"] == "") {
+ $this->valF["cache_gfi_couches"] = null;
} else {
- $this->valF['cache_gfi_couches'] = $val['cache_gfi_couches'];
+ $this->valF["cache_gfi_couches"] = $val["cache_gfi_couches"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_sig_flux", "hidden");
$form->setType("libelle", "text");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -164,12 +194,11 @@
$form->setType("cache_gfi_chemin", "text");
$form->setType("cache_gfi_couches", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_sig_flux", "hiddenstatic");
$form->setType("libelle", "text");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -190,9 +219,8 @@
$form->setType("cache_gfi_chemin", "text");
$form->setType("cache_gfi_couches", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_sig_flux", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
if ($_SESSION["niveau"] == 2) {
@@ -208,12 +236,11 @@
$form->setType("cache_gfi_chemin", "hiddenstatic");
$form->setType("cache_gfi_couches", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_sig_flux", "static");
$form->setType("libelle", "static");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -234,17 +261,18 @@
$form->setType("cache_gfi_chemin", "static");
$form->setType("cache_gfi_couches", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_sig_flux','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
+ $form->setOnchange("om_sig_flux", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_sig_flux", 11);
@@ -260,7 +288,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_sig_flux", 11);
@@ -275,25 +303,27 @@
$form->setMax("cache_gfi_couches", 255);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_sig_flux', __('om_sig_flux'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('id', __('id'));
- $form->setLib('attribution', __('attribution'));
- $form->setLib('chemin', __('chemin'));
- $form->setLib('couches', __('couches'));
- $form->setLib('cache_type', __('cache_type'));
- $form->setLib('cache_gfi_chemin', __('cache_gfi_chemin'));
- $form->setLib('cache_gfi_couches', __('cache_gfi_couches'));
+ $form->setLib("om_sig_flux", __("om_sig_flux"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("id", __("id"));
+ $form->setLib("attribution", __("attribution"));
+ $form->setLib("chemin", __("chemin"));
+ $form->setLib("couches", __("couches"));
+ $form->setLib("cache_type", __("cache_type"));
+ $form->setLib("cache_gfi_chemin", __("cache_gfi_chemin"));
+ $form->setLib("cache_gfi_couches", __("cache_gfi_couches"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -307,44 +337,37 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_sig_map_flux
$this->rechercheTable($this->f->db, "om_sig_map_flux", "om_sig_flux", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_sig_map.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_sig_map.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_sig_map.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 01/08/2019 11:34
+/**
+ * Ce script contient la définition de la classe *om_sig_map_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_sig_map_gen*.
+ */
class om_sig_map_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_sig_map";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_sig_map";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_sig_map";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"fond_default",
"id",
@@ -24,20 +56,29 @@
"url",
"zoom"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
"om_sig_extent" => array("om_sig_extent", ),
"om_sig_map" => array("om_sig_map", ),
);
+
+ /**
+ * Liste des champs avec un type abstrait.
+ * @var null|array
+ */
var $abstract_type = array(
"sld_marqueur" => "file",
"sld_data" => "file",
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -44,8 +85,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -77,8 +117,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -85,8 +124,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
@@ -93,8 +131,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_extent.
*/
function get_var_sql_forminc__sql_om_sig_extent() {
return "SELECT om_sig_extent.om_sig_extent, om_sig_extent.nom FROM ".DB_PREFIXE."om_sig_extent ORDER BY om_sig_extent.nom ASC";
@@ -101,8 +138,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_extent_by_id.
*/
function get_var_sql_forminc__sql_om_sig_extent_by_id() {
return "SELECT om_sig_extent.om_sig_extent, om_sig_extent.nom FROM ".DB_PREFIXE."om_sig_extent WHERE om_sig_extent = <idx>";
@@ -109,8 +145,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_source_flux.
*/
function get_var_sql_forminc__sql_source_flux() {
return "SELECT om_sig_map.om_sig_map, om_sig_map.libelle FROM ".DB_PREFIXE."om_sig_map ORDER BY om_sig_map.libelle ASC";
@@ -117,143 +152,139 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_source_flux_by_id.
*/
function get_var_sql_forminc__sql_source_flux_by_id() {
return "SELECT om_sig_map.om_sig_map, om_sig_map.libelle FROM ".DB_PREFIXE."om_sig_map WHERE om_sig_map = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_sig_map'])) {
- $this->valF['om_sig_map'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_sig_map"])) {
+ $this->valF["om_sig_map"] = ""; // -> requis
} else {
- $this->valF['om_sig_map'] = $val['om_sig_map'];
+ $this->valF["om_sig_map"] = $val["om_sig_map"];
}
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- $this->valF['id'] = $val['id'];
- $this->valF['libelle'] = $val['libelle'];
- if ($val['actif'] == 1 || $val['actif'] == "t" || $val['actif'] == "Oui") {
- $this->valF['actif'] = true;
+ $this->valF["id"] = $val["id"];
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["actif"] == 1 || $val["actif"] == "t" || $val["actif"] == "Oui") {
+ $this->valF["actif"] = true;
} else {
- $this->valF['actif'] = false;
+ $this->valF["actif"] = false;
}
- $this->valF['zoom'] = $val['zoom'];
- if ($val['fond_osm'] == 1 || $val['fond_osm'] == "t" || $val['fond_osm'] == "Oui") {
- $this->valF['fond_osm'] = true;
+ $this->valF["zoom"] = $val["zoom"];
+ if ($val["fond_osm"] == 1 || $val["fond_osm"] == "t" || $val["fond_osm"] == "Oui") {
+ $this->valF["fond_osm"] = true;
} else {
- $this->valF['fond_osm'] = false;
+ $this->valF["fond_osm"] = false;
}
- if ($val['fond_bing'] == 1 || $val['fond_bing'] == "t" || $val['fond_bing'] == "Oui") {
- $this->valF['fond_bing'] = true;
+ if ($val["fond_bing"] == 1 || $val["fond_bing"] == "t" || $val["fond_bing"] == "Oui") {
+ $this->valF["fond_bing"] = true;
} else {
- $this->valF['fond_bing'] = false;
+ $this->valF["fond_bing"] = false;
}
- if ($val['fond_sat'] == 1 || $val['fond_sat'] == "t" || $val['fond_sat'] == "Oui") {
- $this->valF['fond_sat'] = true;
+ if ($val["fond_sat"] == 1 || $val["fond_sat"] == "t" || $val["fond_sat"] == "Oui") {
+ $this->valF["fond_sat"] = true;
} else {
- $this->valF['fond_sat'] = false;
+ $this->valF["fond_sat"] = false;
}
- if ($val['layer_info'] == 1 || $val['layer_info'] == "t" || $val['layer_info'] == "Oui") {
- $this->valF['layer_info'] = true;
+ if ($val["layer_info"] == 1 || $val["layer_info"] == "t" || $val["layer_info"] == "Oui") {
+ $this->valF["layer_info"] = true;
} else {
- $this->valF['layer_info'] = false;
+ $this->valF["layer_info"] = false;
}
- $this->valF['projection_externe'] = $val['projection_externe'];
- $this->valF['url'] = $val['url'];
- $this->valF['om_sql'] = $val['om_sql'];
- $this->valF['retour'] = $val['retour'];
- if ($val['util_idx'] == 1 || $val['util_idx'] == "t" || $val['util_idx'] == "Oui") {
- $this->valF['util_idx'] = true;
+ $this->valF["projection_externe"] = $val["projection_externe"];
+ $this->valF["url"] = $val["url"];
+ $this->valF["om_sql"] = $val["om_sql"];
+ $this->valF["retour"] = $val["retour"];
+ if ($val["util_idx"] == 1 || $val["util_idx"] == "t" || $val["util_idx"] == "Oui") {
+ $this->valF["util_idx"] = true;
} else {
- $this->valF['util_idx'] = false;
+ $this->valF["util_idx"] = false;
}
- if ($val['util_reqmo'] == 1 || $val['util_reqmo'] == "t" || $val['util_reqmo'] == "Oui") {
- $this->valF['util_reqmo'] = true;
+ if ($val["util_reqmo"] == 1 || $val["util_reqmo"] == "t" || $val["util_reqmo"] == "Oui") {
+ $this->valF["util_reqmo"] = true;
} else {
- $this->valF['util_reqmo'] = false;
+ $this->valF["util_reqmo"] = false;
}
- if ($val['util_recherche'] == 1 || $val['util_recherche'] == "t" || $val['util_recherche'] == "Oui") {
- $this->valF['util_recherche'] = true;
+ if ($val["util_recherche"] == 1 || $val["util_recherche"] == "t" || $val["util_recherche"] == "Oui") {
+ $this->valF["util_recherche"] = true;
} else {
- $this->valF['util_recherche'] = false;
+ $this->valF["util_recherche"] = false;
}
- if (!is_numeric($val['source_flux'])) {
- $this->valF['source_flux'] = NULL;
+ if (!is_numeric($val["source_flux"])) {
+ $this->valF["source_flux"] = null;
} else {
- $this->valF['source_flux'] = $val['source_flux'];
+ $this->valF["source_flux"] = $val["source_flux"];
}
- $this->valF['fond_default'] = $val['fond_default'];
- if (!is_numeric($val['om_sig_extent'])) {
- $this->valF['om_sig_extent'] = ""; // -> requis
+ $this->valF["fond_default"] = $val["fond_default"];
+ if (!is_numeric($val["om_sig_extent"])) {
+ $this->valF["om_sig_extent"] = ""; // -> requis
} else {
- $this->valF['om_sig_extent'] = $val['om_sig_extent'];
+ $this->valF["om_sig_extent"] = $val["om_sig_extent"];
}
- if ($val['restrict_extent'] == 1 || $val['restrict_extent'] == "t" || $val['restrict_extent'] == "Oui") {
- $this->valF['restrict_extent'] = true;
+ if ($val["restrict_extent"] == 1 || $val["restrict_extent"] == "t" || $val["restrict_extent"] == "Oui") {
+ $this->valF["restrict_extent"] = true;
} else {
- $this->valF['restrict_extent'] = false;
+ $this->valF["restrict_extent"] = false;
}
- if ($val['sld_marqueur'] == "") {
- $this->valF['sld_marqueur'] = NULL;
+ if ($val["sld_marqueur"] == "") {
+ $this->valF["sld_marqueur"] = null;
} else {
- $this->valF['sld_marqueur'] = $val['sld_marqueur'];
+ $this->valF["sld_marqueur"] = $val["sld_marqueur"];
}
- if ($val['sld_data'] == "") {
- $this->valF['sld_data'] = NULL;
+ if ($val["sld_data"] == "") {
+ $this->valF["sld_data"] = null;
} else {
- $this->valF['sld_data'] = $val['sld_data'];
+ $this->valF["sld_data"] = $val["sld_data"];
}
- if ($val['point_centrage'] == "") {
- unset($this->valF['point_centrage']);
+ if ($val["point_centrage"] == "") {
+ unset($this->valF["point_centrage"]);
} else {
- $this->valF['point_centrage'] = $val['point_centrage'];
+ $this->valF["point_centrage"] = $val["point_centrage"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_sig_map", "hidden");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -281,24 +312,24 @@
$form->setType("util_idx", "checkbox");
$form->setType("util_reqmo", "checkbox");
$form->setType("util_recherche", "checkbox");
- if ($this->is_in_context_of_foreign_key("om_sig_map", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
$form->setType("source_flux", "selecthiddenstatic");
} else {
$form->setType("source_flux", "select");
}
$form->setType("fond_default", "text");
- if ($this->is_in_context_of_foreign_key("om_sig_extent", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_extent", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_extent", "selecthiddenstatic");
} else {
$form->setType("om_sig_extent", "select");
}
$form->setType("restrict_extent", "checkbox");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("sld_marqueur", "upload");
} else {
$form->setType("sld_marqueur", "upload2");
}
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("sld_data", "upload");
} else {
$form->setType("sld_data", "upload2");
@@ -305,11 +336,10 @@
}
$form->setType("point_centrage", "geom");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_sig_map", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -337,24 +367,24 @@
$form->setType("util_idx", "checkbox");
$form->setType("util_reqmo", "checkbox");
$form->setType("util_recherche", "checkbox");
- if ($this->is_in_context_of_foreign_key("om_sig_map", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
$form->setType("source_flux", "selecthiddenstatic");
} else {
$form->setType("source_flux", "select");
}
$form->setType("fond_default", "text");
- if ($this->is_in_context_of_foreign_key("om_sig_extent", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_extent", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_extent", "selecthiddenstatic");
} else {
$form->setType("om_sig_extent", "select");
}
$form->setType("restrict_extent", "checkbox");
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("sld_marqueur", "upload");
} else {
$form->setType("sld_marqueur", "upload2");
}
- if ($this->retourformulaire == "") {
+ if ($this->getParameter("retourformulaire") == "") {
$form->setType("sld_data", "upload");
} else {
$form->setType("sld_data", "upload2");
@@ -361,9 +391,8 @@
}
$form->setType("point_centrage", "geom");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_sig_map", "hiddenstatic");
if ($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
@@ -393,11 +422,10 @@
$form->setType("sld_data", "filestatic");
$form->setType("point_centrage", "geom");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_sig_map", "static");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -433,19 +461,20 @@
$form->setType("sld_data", "file");
$form->setType("point_centrage", "geom");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_sig_map','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
- $form->setOnchange('source_flux','VerifNum(this)');
- $form->setOnchange('om_sig_extent','VerifNum(this)');
+ $form->setOnchange("om_sig_map", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
+ $form->setOnchange("source_flux", "VerifNum(this)");
+ $form->setOnchange("om_sig_extent", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_sig_map", 11);
@@ -475,7 +504,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_sig_map", 11);
@@ -504,39 +533,41 @@
$form->setMax("point_centrage", 551424);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_sig_map', __('om_sig_map'));
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('id', __('id'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('actif', __('actif'));
- $form->setLib('zoom', __('zoom'));
- $form->setLib('fond_osm', __('fond_osm'));
- $form->setLib('fond_bing', __('fond_bing'));
- $form->setLib('fond_sat', __('fond_sat'));
- $form->setLib('layer_info', __('layer_info'));
- $form->setLib('projection_externe', __('projection_externe'));
- $form->setLib('url', __('url'));
- $form->setLib('om_sql', __('om_sql'));
- $form->setLib('retour', __('retour'));
- $form->setLib('util_idx', __('util_idx'));
- $form->setLib('util_reqmo', __('util_reqmo'));
- $form->setLib('util_recherche', __('util_recherche'));
- $form->setLib('source_flux', __('source_flux'));
- $form->setLib('fond_default', __('fond_default'));
- $form->setLib('om_sig_extent', __('om_sig_extent'));
- $form->setLib('restrict_extent', __('restrict_extent'));
- $form->setLib('sld_marqueur', __('sld_marqueur'));
- $form->setLib('sld_data', __('sld_data'));
- $form->setLib('point_centrage', __('point_centrage'));
+ $form->setLib("om_sig_map", __("om_sig_map"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("id", __("id"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("actif", __("actif"));
+ $form->setLib("zoom", __("zoom"));
+ $form->setLib("fond_osm", __("fond_osm"));
+ $form->setLib("fond_bing", __("fond_bing"));
+ $form->setLib("fond_sat", __("fond_sat"));
+ $form->setLib("layer_info", __("layer_info"));
+ $form->setLib("projection_externe", __("projection_externe"));
+ $form->setLib("url", __("url"));
+ $form->setLib("om_sql", __("om_sql"));
+ $form->setLib("retour", __("retour"));
+ $form->setLib("util_idx", __("util_idx"));
+ $form->setLib("util_reqmo", __("util_reqmo"));
+ $form->setLib("util_recherche", __("util_recherche"));
+ $form->setLib("source_flux", __("source_flux"));
+ $form->setLib("fond_default", __("fond_default"));
+ $form->setLib("om_sig_extent", __("om_sig_extent"));
+ $form->setLib("restrict_extent", __("restrict_extent"));
+ $form->setLib("sld_marqueur", __("sld_marqueur"));
+ $form->setLib("sld_data", __("sld_data"));
+ $form->setLib("point_centrage", __("point_centrage"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -578,52 +609,45 @@
}
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_sig_extent', $this->retourformulaire))
- $form->setVal('om_sig_extent', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_sig_map', $this->retourformulaire))
- $form->setVal('source_flux', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_sig_extent", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_sig_extent", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
+ $form->setVal("source_flux", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_sig_map
$this->rechercheTable($this->f->db, "om_sig_map", "source_flux", $id);
- // Verification de la cle secondaire : om_sig_map_comp
$this->rechercheTable($this->f->db, "om_sig_map_comp", "om_sig_map", $id);
- // Verification de la cle secondaire : om_sig_map_flux
$this->rechercheTable($this->f->db, "om_sig_map_flux", "om_sig_map", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_comp.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_comp.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_comp.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_sig_map_comp_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_sig_map_comp_gen*.
+ */
class om_sig_map_comp_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_sig_map_comp";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_sig_map_comp";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_sig_map_comp";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"obj_class",
@@ -18,14 +50,18 @@
"om_sig_map_comp",
"ordre"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_sig_map" => array("om_sig_map", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -32,8 +68,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -52,8 +87,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_map.
*/
function get_var_sql_forminc__sql_om_sig_map() {
return "SELECT om_sig_map.om_sig_map, om_sig_map.libelle FROM ".DB_PREFIXE."om_sig_map ORDER BY om_sig_map.libelle ASC";
@@ -60,98 +94,94 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_map_by_id.
*/
function get_var_sql_forminc__sql_om_sig_map_by_id() {
return "SELECT om_sig_map.om_sig_map, om_sig_map.libelle FROM ".DB_PREFIXE."om_sig_map WHERE om_sig_map = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_sig_map_comp'])) {
- $this->valF['om_sig_map_comp'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_sig_map_comp"])) {
+ $this->valF["om_sig_map_comp"] = ""; // -> requis
} else {
- $this->valF['om_sig_map_comp'] = $val['om_sig_map_comp'];
+ $this->valF["om_sig_map_comp"] = $val["om_sig_map_comp"];
}
- if (!is_numeric($val['om_sig_map'])) {
- $this->valF['om_sig_map'] = ""; // -> requis
+ if (!is_numeric($val["om_sig_map"])) {
+ $this->valF["om_sig_map"] = ""; // -> requis
} else {
- $this->valF['om_sig_map'] = $val['om_sig_map'];
+ $this->valF["om_sig_map"] = $val["om_sig_map"];
}
- $this->valF['libelle'] = $val['libelle'];
- if (!is_numeric($val['ordre'])) {
- $this->valF['ordre'] = ""; // -> requis
+ $this->valF["libelle"] = $val["libelle"];
+ if (!is_numeric($val["ordre"])) {
+ $this->valF["ordre"] = ""; // -> requis
} else {
- $this->valF['ordre'] = $val['ordre'];
+ $this->valF["ordre"] = $val["ordre"];
}
- if ($val['actif'] == 1 || $val['actif'] == "t" || $val['actif'] == "Oui") {
- $this->valF['actif'] = true;
+ if ($val["actif"] == 1 || $val["actif"] == "t" || $val["actif"] == "Oui") {
+ $this->valF["actif"] = true;
} else {
- $this->valF['actif'] = false;
+ $this->valF["actif"] = false;
}
- if ($val['comp_maj'] == 1 || $val['comp_maj'] == "t" || $val['comp_maj'] == "Oui") {
- $this->valF['comp_maj'] = true;
+ if ($val["comp_maj"] == 1 || $val["comp_maj"] == "t" || $val["comp_maj"] == "Oui") {
+ $this->valF["comp_maj"] = true;
} else {
- $this->valF['comp_maj'] = false;
+ $this->valF["comp_maj"] = false;
}
- if ($val['type_geometrie'] == "") {
- $this->valF['type_geometrie'] = NULL;
+ if ($val["type_geometrie"] == "") {
+ $this->valF["type_geometrie"] = null;
} else {
- $this->valF['type_geometrie'] = $val['type_geometrie'];
+ $this->valF["type_geometrie"] = $val["type_geometrie"];
}
- if ($val['comp_table_update'] == "") {
- $this->valF['comp_table_update'] = NULL;
+ if ($val["comp_table_update"] == "") {
+ $this->valF["comp_table_update"] = null;
} else {
- $this->valF['comp_table_update'] = $val['comp_table_update'];
+ $this->valF["comp_table_update"] = $val["comp_table_update"];
}
- if ($val['comp_champ'] == "") {
- $this->valF['comp_champ'] = NULL;
+ if ($val["comp_champ"] == "") {
+ $this->valF["comp_champ"] = null;
} else {
- $this->valF['comp_champ'] = $val['comp_champ'];
+ $this->valF["comp_champ"] = $val["comp_champ"];
}
- if ($val['comp_champ_idx'] == "") {
- $this->valF['comp_champ_idx'] = NULL;
+ if ($val["comp_champ_idx"] == "") {
+ $this->valF["comp_champ_idx"] = null;
} else {
- $this->valF['comp_champ_idx'] = $val['comp_champ_idx'];
+ $this->valF["comp_champ_idx"] = $val["comp_champ_idx"];
}
- $this->valF['obj_class'] = $val['obj_class'];
+ $this->valF["obj_class"] = $val["obj_class"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_sig_map_comp", "hidden");
- if ($this->is_in_context_of_foreign_key("om_sig_map", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_map", "selecthiddenstatic");
} else {
$form->setType("om_sig_map", "select");
@@ -166,11 +196,10 @@
$form->setType("comp_champ_idx", "text");
$form->setType("obj_class", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_sig_map_comp", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_sig_map", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_map", "selecthiddenstatic");
} else {
$form->setType("om_sig_map", "select");
@@ -185,9 +214,8 @@
$form->setType("comp_champ_idx", "text");
$form->setType("obj_class", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_sig_map_comp", "hiddenstatic");
$form->setType("om_sig_map", "selectstatic");
$form->setType("libelle", "hiddenstatic");
@@ -200,9 +228,8 @@
$form->setType("comp_champ_idx", "hiddenstatic");
$form->setType("obj_class", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_sig_map_comp", "static");
$form->setType("om_sig_map", "selectstatic");
$form->setType("libelle", "static");
@@ -215,18 +242,19 @@
$form->setType("comp_champ_idx", "static");
$form->setType("obj_class", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_sig_map_comp','VerifNum(this)');
- $form->setOnchange('om_sig_map','VerifNum(this)');
- $form->setOnchange('ordre','VerifNum(this)');
+ $form->setOnchange("om_sig_map_comp", "VerifNum(this)");
+ $form->setOnchange("om_sig_map", "VerifNum(this)");
+ $form->setOnchange("ordre", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_sig_map_comp", 11);
@@ -243,7 +271,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_sig_map_comp", 11);
@@ -259,26 +287,28 @@
$form->setMax("obj_class", 100);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_sig_map_comp', __('om_sig_map_comp'));
- $form->setLib('om_sig_map', __('om_sig_map'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('ordre', __('ordre'));
- $form->setLib('actif', __('actif'));
- $form->setLib('comp_maj', __('comp_maj'));
- $form->setLib('type_geometrie', __('type_geometrie'));
- $form->setLib('comp_table_update', __('comp_table_update'));
- $form->setLib('comp_champ', __('comp_champ'));
- $form->setLib('comp_champ_idx', __('comp_champ_idx'));
- $form->setLib('obj_class', __('obj_class'));
+ $form->setLib("om_sig_map_comp", __("om_sig_map_comp"));
+ $form->setLib("om_sig_map", __("om_sig_map"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("ordre", __("ordre"));
+ $form->setLib("actif", __("actif"));
+ $form->setLib("comp_maj", __("comp_maj"));
+ $form->setLib("type_geometrie", __("type_geometrie"));
+ $form->setLib("comp_table_update", __("comp_table_update"));
+ $form->setLib("comp_champ", __("comp_champ"));
+ $form->setLib("comp_champ_idx", __("comp_champ_idx"));
+ $form->setLib("obj_class", __("obj_class"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_sig_map
$this->init_select(
$form,
@@ -292,24 +322,16 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_sig_map', $this->retourformulaire))
- $form->setVal('om_sig_map', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_sig_map", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_flux.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_flux.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_sig_map_flux.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_sig_map_flux_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_sig_map_flux_gen*.
+ */
class om_sig_map_flux_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_sig_map_flux";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_sig_map_flux";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_sig_map_flux";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"ol_map",
"om_sig_flux",
@@ -18,15 +50,19 @@
"om_sig_map_flux",
"ordre"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_sig_flux" => array("om_sig_flux", ),
"om_sig_map" => array("om_sig_map", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("om_sig_flux");
@@ -33,8 +69,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -59,8 +94,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_flux.
*/
function get_var_sql_forminc__sql_om_sig_flux() {
return "SELECT om_sig_flux.om_sig_flux, om_sig_flux.libelle FROM ".DB_PREFIXE."om_sig_flux ORDER BY om_sig_flux.libelle ASC";
@@ -67,8 +101,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_flux_by_id.
*/
function get_var_sql_forminc__sql_om_sig_flux_by_id() {
return "SELECT om_sig_flux.om_sig_flux, om_sig_flux.libelle FROM ".DB_PREFIXE."om_sig_flux WHERE om_sig_flux = <idx>";
@@ -75,8 +108,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_map.
*/
function get_var_sql_forminc__sql_om_sig_map() {
return "SELECT om_sig_map.om_sig_map, om_sig_map.libelle FROM ".DB_PREFIXE."om_sig_map ORDER BY om_sig_map.libelle ASC";
@@ -83,129 +115,125 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_sig_map_by_id.
*/
function get_var_sql_forminc__sql_om_sig_map_by_id() {
return "SELECT om_sig_map.om_sig_map, om_sig_map.libelle FROM ".DB_PREFIXE."om_sig_map WHERE om_sig_map = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_sig_map_flux'])) {
- $this->valF['om_sig_map_flux'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_sig_map_flux"])) {
+ $this->valF["om_sig_map_flux"] = ""; // -> requis
} else {
- $this->valF['om_sig_map_flux'] = $val['om_sig_map_flux'];
+ $this->valF["om_sig_map_flux"] = $val["om_sig_map_flux"];
}
- if (!is_numeric($val['om_sig_flux'])) {
- $this->valF['om_sig_flux'] = ""; // -> requis
+ if (!is_numeric($val["om_sig_flux"])) {
+ $this->valF["om_sig_flux"] = ""; // -> requis
} else {
- $this->valF['om_sig_flux'] = $val['om_sig_flux'];
+ $this->valF["om_sig_flux"] = $val["om_sig_flux"];
}
- if (!is_numeric($val['om_sig_map'])) {
- $this->valF['om_sig_map'] = ""; // -> requis
+ if (!is_numeric($val["om_sig_map"])) {
+ $this->valF["om_sig_map"] = ""; // -> requis
} else {
- $this->valF['om_sig_map'] = $val['om_sig_map'];
+ $this->valF["om_sig_map"] = $val["om_sig_map"];
}
- $this->valF['ol_map'] = $val['ol_map'];
- if (!is_numeric($val['ordre'])) {
- $this->valF['ordre'] = ""; // -> requis
+ $this->valF["ol_map"] = $val["ol_map"];
+ if (!is_numeric($val["ordre"])) {
+ $this->valF["ordre"] = ""; // -> requis
} else {
- $this->valF['ordre'] = $val['ordre'];
+ $this->valF["ordre"] = $val["ordre"];
}
- if ($val['visibility'] == 1 || $val['visibility'] == "t" || $val['visibility'] == "Oui") {
- $this->valF['visibility'] = true;
+ if ($val["visibility"] == 1 || $val["visibility"] == "t" || $val["visibility"] == "Oui") {
+ $this->valF["visibility"] = true;
} else {
- $this->valF['visibility'] = false;
+ $this->valF["visibility"] = false;
}
- if ($val['panier'] == 1 || $val['panier'] == "t" || $val['panier'] == "Oui") {
- $this->valF['panier'] = true;
+ if ($val["panier"] == 1 || $val["panier"] == "t" || $val["panier"] == "Oui") {
+ $this->valF["panier"] = true;
} else {
- $this->valF['panier'] = false;
+ $this->valF["panier"] = false;
}
- if ($val['pa_nom'] == "") {
- $this->valF['pa_nom'] = NULL;
+ if ($val["pa_nom"] == "") {
+ $this->valF["pa_nom"] = null;
} else {
- $this->valF['pa_nom'] = $val['pa_nom'];
+ $this->valF["pa_nom"] = $val["pa_nom"];
}
- if ($val['pa_layer'] == "") {
- $this->valF['pa_layer'] = NULL;
+ if ($val["pa_layer"] == "") {
+ $this->valF["pa_layer"] = null;
} else {
- $this->valF['pa_layer'] = $val['pa_layer'];
+ $this->valF["pa_layer"] = $val["pa_layer"];
}
- if ($val['pa_attribut'] == "") {
- $this->valF['pa_attribut'] = NULL;
+ if ($val["pa_attribut"] == "") {
+ $this->valF["pa_attribut"] = null;
} else {
- $this->valF['pa_attribut'] = $val['pa_attribut'];
+ $this->valF["pa_attribut"] = $val["pa_attribut"];
}
- if ($val['pa_encaps'] == "") {
- $this->valF['pa_encaps'] = NULL;
+ if ($val["pa_encaps"] == "") {
+ $this->valF["pa_encaps"] = null;
} else {
- $this->valF['pa_encaps'] = $val['pa_encaps'];
+ $this->valF["pa_encaps"] = $val["pa_encaps"];
}
- $this->valF['pa_sql'] = $val['pa_sql'];
- if ($val['pa_type_geometrie'] == "") {
- $this->valF['pa_type_geometrie'] = NULL;
+ $this->valF["pa_sql"] = $val["pa_sql"];
+ if ($val["pa_type_geometrie"] == "") {
+ $this->valF["pa_type_geometrie"] = null;
} else {
- $this->valF['pa_type_geometrie'] = $val['pa_type_geometrie'];
+ $this->valF["pa_type_geometrie"] = $val["pa_type_geometrie"];
}
- $this->valF['sql_filter'] = $val['sql_filter'];
- if ($val['baselayer'] == 1 || $val['baselayer'] == "t" || $val['baselayer'] == "Oui") {
- $this->valF['baselayer'] = true;
+ $this->valF["sql_filter"] = $val["sql_filter"];
+ if ($val["baselayer"] == 1 || $val["baselayer"] == "t" || $val["baselayer"] == "Oui") {
+ $this->valF["baselayer"] = true;
} else {
- $this->valF['baselayer'] = false;
+ $this->valF["baselayer"] = false;
}
- if ($val['singletile'] == 1 || $val['singletile'] == "t" || $val['singletile'] == "Oui") {
- $this->valF['singletile'] = true;
+ if ($val["singletile"] == 1 || $val["singletile"] == "t" || $val["singletile"] == "Oui") {
+ $this->valF["singletile"] = true;
} else {
- $this->valF['singletile'] = false;
+ $this->valF["singletile"] = false;
}
- if (!is_numeric($val['maxzoomlevel'])) {
- $this->valF['maxzoomlevel'] = NULL;
+ if (!is_numeric($val["maxzoomlevel"])) {
+ $this->valF["maxzoomlevel"] = null;
} else {
- $this->valF['maxzoomlevel'] = $val['maxzoomlevel'];
+ $this->valF["maxzoomlevel"] = $val["maxzoomlevel"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_sig_map_flux", "hidden");
- if ($this->is_in_context_of_foreign_key("om_sig_flux", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_flux", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_flux", "selecthiddenstatic");
} else {
$form->setType("om_sig_flux", "select");
}
- if ($this->is_in_context_of_foreign_key("om_sig_map", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_map", "selecthiddenstatic");
} else {
$form->setType("om_sig_map", "select");
@@ -225,16 +253,15 @@
$form->setType("singletile", "checkbox");
$form->setType("maxzoomlevel", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_sig_map_flux", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_sig_flux", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_flux", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_flux", "selecthiddenstatic");
} else {
$form->setType("om_sig_flux", "select");
}
- if ($this->is_in_context_of_foreign_key("om_sig_map", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
$form->setType("om_sig_map", "selecthiddenstatic");
} else {
$form->setType("om_sig_map", "select");
@@ -254,9 +281,8 @@
$form->setType("singletile", "checkbox");
$form->setType("maxzoomlevel", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_sig_map_flux", "hiddenstatic");
$form->setType("om_sig_flux", "selectstatic");
$form->setType("om_sig_map", "selectstatic");
@@ -275,9 +301,8 @@
$form->setType("singletile", "hiddenstatic");
$form->setType("maxzoomlevel", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_sig_map_flux", "static");
$form->setType("om_sig_flux", "selectstatic");
$form->setType("om_sig_map", "selectstatic");
@@ -296,20 +321,21 @@
$form->setType("singletile", "checkboxstatic");
$form->setType("maxzoomlevel", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_sig_map_flux','VerifNum(this)');
- $form->setOnchange('om_sig_flux','VerifNum(this)');
- $form->setOnchange('om_sig_map','VerifNum(this)');
- $form->setOnchange('ordre','VerifNum(this)');
- $form->setOnchange('maxzoomlevel','VerifNum(this)');
+ $form->setOnchange("om_sig_map_flux", "VerifNum(this)");
+ $form->setOnchange("om_sig_flux", "VerifNum(this)");
+ $form->setOnchange("om_sig_map", "VerifNum(this)");
+ $form->setOnchange("ordre", "VerifNum(this)");
+ $form->setOnchange("maxzoomlevel", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_sig_map_flux", 11);
@@ -332,7 +358,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_sig_map_flux", 11);
@@ -354,32 +380,34 @@
$form->setMax("maxzoomlevel", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_sig_map_flux', __('om_sig_map_flux'));
- $form->setLib('om_sig_flux', __('om_sig_flux'));
- $form->setLib('om_sig_map', __('om_sig_map'));
- $form->setLib('ol_map', __('ol_map'));
- $form->setLib('ordre', __('ordre'));
- $form->setLib('visibility', __('visibility'));
- $form->setLib('panier', __('panier'));
- $form->setLib('pa_nom', __('pa_nom'));
- $form->setLib('pa_layer', __('pa_layer'));
- $form->setLib('pa_attribut', __('pa_attribut'));
- $form->setLib('pa_encaps', __('pa_encaps'));
- $form->setLib('pa_sql', __('pa_sql'));
- $form->setLib('pa_type_geometrie', __('pa_type_geometrie'));
- $form->setLib('sql_filter', __('sql_filter'));
- $form->setLib('baselayer', __('baselayer'));
- $form->setLib('singletile', __('singletile'));
- $form->setLib('maxzoomlevel', __('maxzoomlevel'));
+ $form->setLib("om_sig_map_flux", __("om_sig_map_flux"));
+ $form->setLib("om_sig_flux", __("om_sig_flux"));
+ $form->setLib("om_sig_map", __("om_sig_map"));
+ $form->setLib("ol_map", __("ol_map"));
+ $form->setLib("ordre", __("ordre"));
+ $form->setLib("visibility", __("visibility"));
+ $form->setLib("panier", __("panier"));
+ $form->setLib("pa_nom", __("pa_nom"));
+ $form->setLib("pa_layer", __("pa_layer"));
+ $form->setLib("pa_attribut", __("pa_attribut"));
+ $form->setLib("pa_encaps", __("pa_encaps"));
+ $form->setLib("pa_sql", __("pa_sql"));
+ $form->setLib("pa_type_geometrie", __("pa_type_geometrie"));
+ $form->setLib("sql_filter", __("sql_filter"));
+ $form->setLib("baselayer", __("baselayer"));
+ $form->setLib("singletile", __("singletile"));
+ $form->setLib("maxzoomlevel", __("maxzoomlevel"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_sig_flux
$this->init_select(
$form,
@@ -404,26 +432,19 @@
);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_sig_flux', $this->retourformulaire))
- $form->setVal('om_sig_flux', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_sig_map', $this->retourformulaire))
- $form->setVal('om_sig_map', $idxformulaire);
- }// fin validation
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_sig_flux", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_sig_flux", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_sig_map", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_sig_map", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_sousetat.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_sousetat.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_sousetat.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_sousetat_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_sousetat_gen*.
+ */
class om_sousetat_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_sousetat";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_sousetat";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_sousetat";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"bordure_couleur",
"cellule_align",
@@ -71,14 +103,18 @@
"titretaille",
"titretextecouleur"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -85,8 +121,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -154,8 +189,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -162,187 +196,183 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_sousetat'])) {
- $this->valF['om_sousetat'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_sousetat"])) {
+ $this->valF["om_sousetat"] = ""; // -> requis
} else {
- $this->valF['om_sousetat'] = $val['om_sousetat'];
+ $this->valF["om_sousetat"] = $val["om_sousetat"];
}
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- $this->valF['id'] = $val['id'];
- $this->valF['libelle'] = $val['libelle'];
- if ($val['actif'] == 1 || $val['actif'] == "t" || $val['actif'] == "Oui") {
- $this->valF['actif'] = true;
+ $this->valF["id"] = $val["id"];
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["actif"] == 1 || $val["actif"] == "t" || $val["actif"] == "Oui") {
+ $this->valF["actif"] = true;
} else {
- $this->valF['actif'] = false;
+ $this->valF["actif"] = false;
}
- $this->valF['titre'] = $val['titre'];
- if (!is_numeric($val['titrehauteur'])) {
- $this->valF['titrehauteur'] = ""; // -> requis
+ $this->valF["titre"] = $val["titre"];
+ if (!is_numeric($val["titrehauteur"])) {
+ $this->valF["titrehauteur"] = ""; // -> requis
} else {
- $this->valF['titrehauteur'] = $val['titrehauteur'];
+ $this->valF["titrehauteur"] = $val["titrehauteur"];
}
- $this->valF['titrefont'] = $val['titrefont'];
- if ($val['titreattribut'] == "") {
- $this->valF['titreattribut'] = ""; // -> default
+ $this->valF["titrefont"] = $val["titrefont"];
+ if ($val["titreattribut"] == "") {
+ $this->valF["titreattribut"] = ""; // -> default
} else {
- $this->valF['titreattribut'] = $val['titreattribut'];
+ $this->valF["titreattribut"] = $val["titreattribut"];
}
- if (!is_numeric($val['titretaille'])) {
- $this->valF['titretaille'] = ""; // -> requis
+ if (!is_numeric($val["titretaille"])) {
+ $this->valF["titretaille"] = ""; // -> requis
} else {
- $this->valF['titretaille'] = $val['titretaille'];
+ $this->valF["titretaille"] = $val["titretaille"];
}
- $this->valF['titrebordure'] = $val['titrebordure'];
- $this->valF['titrealign'] = $val['titrealign'];
- $this->valF['titrefond'] = $val['titrefond'];
- $this->valF['titrefondcouleur'] = $val['titrefondcouleur'];
- $this->valF['titretextecouleur'] = $val['titretextecouleur'];
- if (!is_numeric($val['intervalle_debut'])) {
- $this->valF['intervalle_debut'] = ""; // -> requis
+ $this->valF["titrebordure"] = $val["titrebordure"];
+ $this->valF["titrealign"] = $val["titrealign"];
+ $this->valF["titrefond"] = $val["titrefond"];
+ $this->valF["titrefondcouleur"] = $val["titrefondcouleur"];
+ $this->valF["titretextecouleur"] = $val["titretextecouleur"];
+ if (!is_numeric($val["intervalle_debut"])) {
+ $this->valF["intervalle_debut"] = ""; // -> requis
} else {
- $this->valF['intervalle_debut'] = $val['intervalle_debut'];
+ $this->valF["intervalle_debut"] = $val["intervalle_debut"];
}
- if (!is_numeric($val['intervalle_fin'])) {
- $this->valF['intervalle_fin'] = ""; // -> requis
+ if (!is_numeric($val["intervalle_fin"])) {
+ $this->valF["intervalle_fin"] = ""; // -> requis
} else {
- $this->valF['intervalle_fin'] = $val['intervalle_fin'];
+ $this->valF["intervalle_fin"] = $val["intervalle_fin"];
}
- $this->valF['entete_flag'] = $val['entete_flag'];
- $this->valF['entete_fond'] = $val['entete_fond'];
- $this->valF['entete_orientation'] = $val['entete_orientation'];
- if (!is_numeric($val['entete_hauteur'])) {
- $this->valF['entete_hauteur'] = ""; // -> requis
+ $this->valF["entete_flag"] = $val["entete_flag"];
+ $this->valF["entete_fond"] = $val["entete_fond"];
+ $this->valF["entete_orientation"] = $val["entete_orientation"];
+ if (!is_numeric($val["entete_hauteur"])) {
+ $this->valF["entete_hauteur"] = ""; // -> requis
} else {
- $this->valF['entete_hauteur'] = $val['entete_hauteur'];
+ $this->valF["entete_hauteur"] = $val["entete_hauteur"];
}
- $this->valF['entetecolone_bordure'] = $val['entetecolone_bordure'];
- $this->valF['entetecolone_align'] = $val['entetecolone_align'];
- $this->valF['entete_fondcouleur'] = $val['entete_fondcouleur'];
- $this->valF['entete_textecouleur'] = $val['entete_textecouleur'];
- if (!is_numeric($val['tableau_largeur'])) {
- $this->valF['tableau_largeur'] = ""; // -> requis
+ $this->valF["entetecolone_bordure"] = $val["entetecolone_bordure"];
+ $this->valF["entetecolone_align"] = $val["entetecolone_align"];
+ $this->valF["entete_fondcouleur"] = $val["entete_fondcouleur"];
+ $this->valF["entete_textecouleur"] = $val["entete_textecouleur"];
+ if (!is_numeric($val["tableau_largeur"])) {
+ $this->valF["tableau_largeur"] = ""; // -> requis
} else {
- $this->valF['tableau_largeur'] = $val['tableau_largeur'];
+ $this->valF["tableau_largeur"] = $val["tableau_largeur"];
}
- $this->valF['tableau_bordure'] = $val['tableau_bordure'];
- if (!is_numeric($val['tableau_fontaille'])) {
- $this->valF['tableau_fontaille'] = ""; // -> requis
+ $this->valF["tableau_bordure"] = $val["tableau_bordure"];
+ if (!is_numeric($val["tableau_fontaille"])) {
+ $this->valF["tableau_fontaille"] = ""; // -> requis
} else {
- $this->valF['tableau_fontaille'] = $val['tableau_fontaille'];
+ $this->valF["tableau_fontaille"] = $val["tableau_fontaille"];
}
- $this->valF['bordure_couleur'] = $val['bordure_couleur'];
- $this->valF['se_fond1'] = $val['se_fond1'];
- $this->valF['se_fond2'] = $val['se_fond2'];
- $this->valF['cellule_fond'] = $val['cellule_fond'];
- if (!is_numeric($val['cellule_hauteur'])) {
- $this->valF['cellule_hauteur'] = ""; // -> requis
+ $this->valF["bordure_couleur"] = $val["bordure_couleur"];
+ $this->valF["se_fond1"] = $val["se_fond1"];
+ $this->valF["se_fond2"] = $val["se_fond2"];
+ $this->valF["cellule_fond"] = $val["cellule_fond"];
+ if (!is_numeric($val["cellule_hauteur"])) {
+ $this->valF["cellule_hauteur"] = ""; // -> requis
} else {
- $this->valF['cellule_hauteur'] = $val['cellule_hauteur'];
+ $this->valF["cellule_hauteur"] = $val["cellule_hauteur"];
}
- $this->valF['cellule_largeur'] = $val['cellule_largeur'];
- $this->valF['cellule_bordure_un'] = $val['cellule_bordure_un'];
- $this->valF['cellule_bordure'] = $val['cellule_bordure'];
- $this->valF['cellule_align'] = $val['cellule_align'];
- $this->valF['cellule_fond_total'] = $val['cellule_fond_total'];
- if (!is_numeric($val['cellule_fontaille_total'])) {
- $this->valF['cellule_fontaille_total'] = ""; // -> requis
+ $this->valF["cellule_largeur"] = $val["cellule_largeur"];
+ $this->valF["cellule_bordure_un"] = $val["cellule_bordure_un"];
+ $this->valF["cellule_bordure"] = $val["cellule_bordure"];
+ $this->valF["cellule_align"] = $val["cellule_align"];
+ $this->valF["cellule_fond_total"] = $val["cellule_fond_total"];
+ if (!is_numeric($val["cellule_fontaille_total"])) {
+ $this->valF["cellule_fontaille_total"] = ""; // -> requis
} else {
- $this->valF['cellule_fontaille_total'] = $val['cellule_fontaille_total'];
+ $this->valF["cellule_fontaille_total"] = $val["cellule_fontaille_total"];
}
- if (!is_numeric($val['cellule_hauteur_total'])) {
- $this->valF['cellule_hauteur_total'] = ""; // -> requis
+ if (!is_numeric($val["cellule_hauteur_total"])) {
+ $this->valF["cellule_hauteur_total"] = ""; // -> requis
} else {
- $this->valF['cellule_hauteur_total'] = $val['cellule_hauteur_total'];
+ $this->valF["cellule_hauteur_total"] = $val["cellule_hauteur_total"];
}
- $this->valF['cellule_fondcouleur_total'] = $val['cellule_fondcouleur_total'];
- $this->valF['cellule_bordure_total'] = $val['cellule_bordure_total'];
- $this->valF['cellule_align_total'] = $val['cellule_align_total'];
- $this->valF['cellule_fond_moyenne'] = $val['cellule_fond_moyenne'];
- if (!is_numeric($val['cellule_fontaille_moyenne'])) {
- $this->valF['cellule_fontaille_moyenne'] = ""; // -> requis
+ $this->valF["cellule_fondcouleur_total"] = $val["cellule_fondcouleur_total"];
+ $this->valF["cellule_bordure_total"] = $val["cellule_bordure_total"];
+ $this->valF["cellule_align_total"] = $val["cellule_align_total"];
+ $this->valF["cellule_fond_moyenne"] = $val["cellule_fond_moyenne"];
+ if (!is_numeric($val["cellule_fontaille_moyenne"])) {
+ $this->valF["cellule_fontaille_moyenne"] = ""; // -> requis
} else {
- $this->valF['cellule_fontaille_moyenne'] = $val['cellule_fontaille_moyenne'];
+ $this->valF["cellule_fontaille_moyenne"] = $val["cellule_fontaille_moyenne"];
}
- if (!is_numeric($val['cellule_hauteur_moyenne'])) {
- $this->valF['cellule_hauteur_moyenne'] = ""; // -> requis
+ if (!is_numeric($val["cellule_hauteur_moyenne"])) {
+ $this->valF["cellule_hauteur_moyenne"] = ""; // -> requis
} else {
- $this->valF['cellule_hauteur_moyenne'] = $val['cellule_hauteur_moyenne'];
+ $this->valF["cellule_hauteur_moyenne"] = $val["cellule_hauteur_moyenne"];
}
- $this->valF['cellule_fondcouleur_moyenne'] = $val['cellule_fondcouleur_moyenne'];
- $this->valF['cellule_bordure_moyenne'] = $val['cellule_bordure_moyenne'];
- $this->valF['cellule_align_moyenne'] = $val['cellule_align_moyenne'];
- $this->valF['cellule_fond_nbr'] = $val['cellule_fond_nbr'];
- if (!is_numeric($val['cellule_fontaille_nbr'])) {
- $this->valF['cellule_fontaille_nbr'] = ""; // -> requis
+ $this->valF["cellule_fondcouleur_moyenne"] = $val["cellule_fondcouleur_moyenne"];
+ $this->valF["cellule_bordure_moyenne"] = $val["cellule_bordure_moyenne"];
+ $this->valF["cellule_align_moyenne"] = $val["cellule_align_moyenne"];
+ $this->valF["cellule_fond_nbr"] = $val["cellule_fond_nbr"];
+ if (!is_numeric($val["cellule_fontaille_nbr"])) {
+ $this->valF["cellule_fontaille_nbr"] = ""; // -> requis
} else {
- $this->valF['cellule_fontaille_nbr'] = $val['cellule_fontaille_nbr'];
+ $this->valF["cellule_fontaille_nbr"] = $val["cellule_fontaille_nbr"];
}
- if (!is_numeric($val['cellule_hauteur_nbr'])) {
- $this->valF['cellule_hauteur_nbr'] = ""; // -> requis
+ if (!is_numeric($val["cellule_hauteur_nbr"])) {
+ $this->valF["cellule_hauteur_nbr"] = ""; // -> requis
} else {
- $this->valF['cellule_hauteur_nbr'] = $val['cellule_hauteur_nbr'];
+ $this->valF["cellule_hauteur_nbr"] = $val["cellule_hauteur_nbr"];
}
- $this->valF['cellule_fondcouleur_nbr'] = $val['cellule_fondcouleur_nbr'];
- $this->valF['cellule_bordure_nbr'] = $val['cellule_bordure_nbr'];
- $this->valF['cellule_align_nbr'] = $val['cellule_align_nbr'];
- $this->valF['cellule_numerique'] = $val['cellule_numerique'];
- $this->valF['cellule_total'] = $val['cellule_total'];
- $this->valF['cellule_moyenne'] = $val['cellule_moyenne'];
- $this->valF['cellule_compteur'] = $val['cellule_compteur'];
- $this->valF['om_sql'] = $val['om_sql'];
+ $this->valF["cellule_fondcouleur_nbr"] = $val["cellule_fondcouleur_nbr"];
+ $this->valF["cellule_bordure_nbr"] = $val["cellule_bordure_nbr"];
+ $this->valF["cellule_align_nbr"] = $val["cellule_align_nbr"];
+ $this->valF["cellule_numerique"] = $val["cellule_numerique"];
+ $this->valF["cellule_total"] = $val["cellule_total"];
+ $this->valF["cellule_moyenne"] = $val["cellule_moyenne"];
+ $this->valF["cellule_compteur"] = $val["cellule_compteur"];
+ $this->valF["om_sql"] = $val["om_sql"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_sousetat", "hidden");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -414,11 +444,10 @@
$form->setType("cellule_compteur", "text");
$form->setType("om_sql", "textarea");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_sousetat", "hiddenstatic");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -490,9 +519,8 @@
$form->setType("cellule_compteur", "text");
$form->setType("om_sql", "textarea");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_sousetat", "hiddenstatic");
if ($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
@@ -558,11 +586,10 @@
$form->setType("cellule_compteur", "hiddenstatic");
$form->setType("om_sql", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_sousetat", "static");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -634,31 +661,32 @@
$form->setType("cellule_compteur", "static");
$form->setType("om_sql", "textareastatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_sousetat','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
- $form->setOnchange('titrehauteur','VerifNum(this)');
- $form->setOnchange('titretaille','VerifNum(this)');
- $form->setOnchange('intervalle_debut','VerifNum(this)');
- $form->setOnchange('intervalle_fin','VerifNum(this)');
- $form->setOnchange('entete_hauteur','VerifNum(this)');
- $form->setOnchange('tableau_largeur','VerifNum(this)');
- $form->setOnchange('tableau_fontaille','VerifNum(this)');
- $form->setOnchange('cellule_hauteur','VerifNum(this)');
- $form->setOnchange('cellule_fontaille_total','VerifNum(this)');
- $form->setOnchange('cellule_hauteur_total','VerifNum(this)');
- $form->setOnchange('cellule_fontaille_moyenne','VerifNum(this)');
- $form->setOnchange('cellule_hauteur_moyenne','VerifNum(this)');
- $form->setOnchange('cellule_fontaille_nbr','VerifNum(this)');
- $form->setOnchange('cellule_hauteur_nbr','VerifNum(this)');
+ $form->setOnchange("om_sousetat", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
+ $form->setOnchange("titrehauteur", "VerifNum(this)");
+ $form->setOnchange("titretaille", "VerifNum(this)");
+ $form->setOnchange("intervalle_debut", "VerifNum(this)");
+ $form->setOnchange("intervalle_fin", "VerifNum(this)");
+ $form->setOnchange("entete_hauteur", "VerifNum(this)");
+ $form->setOnchange("tableau_largeur", "VerifNum(this)");
+ $form->setOnchange("tableau_fontaille", "VerifNum(this)");
+ $form->setOnchange("cellule_hauteur", "VerifNum(this)");
+ $form->setOnchange("cellule_fontaille_total", "VerifNum(this)");
+ $form->setOnchange("cellule_hauteur_total", "VerifNum(this)");
+ $form->setOnchange("cellule_fontaille_moyenne", "VerifNum(this)");
+ $form->setOnchange("cellule_hauteur_moyenne", "VerifNum(this)");
+ $form->setOnchange("cellule_fontaille_nbr", "VerifNum(this)");
+ $form->setOnchange("cellule_hauteur_nbr", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_sousetat", 11);
@@ -724,7 +752,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_sousetat", 11);
@@ -789,75 +817,77 @@
$form->setMax("om_sql", 6);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_sousetat', __('om_sousetat'));
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('id', __('id'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('actif', __('actif'));
- $form->setLib('titre', __('titre'));
- $form->setLib('titrehauteur', __('titrehauteur'));
- $form->setLib('titrefont', __('titrefont'));
- $form->setLib('titreattribut', __('titreattribut'));
- $form->setLib('titretaille', __('titretaille'));
- $form->setLib('titrebordure', __('titrebordure'));
- $form->setLib('titrealign', __('titrealign'));
- $form->setLib('titrefond', __('titrefond'));
- $form->setLib('titrefondcouleur', __('titrefondcouleur'));
- $form->setLib('titretextecouleur', __('titretextecouleur'));
- $form->setLib('intervalle_debut', __('intervalle_debut'));
- $form->setLib('intervalle_fin', __('intervalle_fin'));
- $form->setLib('entete_flag', __('entete_flag'));
- $form->setLib('entete_fond', __('entete_fond'));
- $form->setLib('entete_orientation', __('entete_orientation'));
- $form->setLib('entete_hauteur', __('entete_hauteur'));
- $form->setLib('entetecolone_bordure', __('entetecolone_bordure'));
- $form->setLib('entetecolone_align', __('entetecolone_align'));
- $form->setLib('entete_fondcouleur', __('entete_fondcouleur'));
- $form->setLib('entete_textecouleur', __('entete_textecouleur'));
- $form->setLib('tableau_largeur', __('tableau_largeur'));
- $form->setLib('tableau_bordure', __('tableau_bordure'));
- $form->setLib('tableau_fontaille', __('tableau_fontaille'));
- $form->setLib('bordure_couleur', __('bordure_couleur'));
- $form->setLib('se_fond1', __('se_fond1'));
- $form->setLib('se_fond2', __('se_fond2'));
- $form->setLib('cellule_fond', __('cellule_fond'));
- $form->setLib('cellule_hauteur', __('cellule_hauteur'));
- $form->setLib('cellule_largeur', __('cellule_largeur'));
- $form->setLib('cellule_bordure_un', __('cellule_bordure_un'));
- $form->setLib('cellule_bordure', __('cellule_bordure'));
- $form->setLib('cellule_align', __('cellule_align'));
- $form->setLib('cellule_fond_total', __('cellule_fond_total'));
- $form->setLib('cellule_fontaille_total', __('cellule_fontaille_total'));
- $form->setLib('cellule_hauteur_total', __('cellule_hauteur_total'));
- $form->setLib('cellule_fondcouleur_total', __('cellule_fondcouleur_total'));
- $form->setLib('cellule_bordure_total', __('cellule_bordure_total'));
- $form->setLib('cellule_align_total', __('cellule_align_total'));
- $form->setLib('cellule_fond_moyenne', __('cellule_fond_moyenne'));
- $form->setLib('cellule_fontaille_moyenne', __('cellule_fontaille_moyenne'));
- $form->setLib('cellule_hauteur_moyenne', __('cellule_hauteur_moyenne'));
- $form->setLib('cellule_fondcouleur_moyenne', __('cellule_fondcouleur_moyenne'));
- $form->setLib('cellule_bordure_moyenne', __('cellule_bordure_moyenne'));
- $form->setLib('cellule_align_moyenne', __('cellule_align_moyenne'));
- $form->setLib('cellule_fond_nbr', __('cellule_fond_nbr'));
- $form->setLib('cellule_fontaille_nbr', __('cellule_fontaille_nbr'));
- $form->setLib('cellule_hauteur_nbr', __('cellule_hauteur_nbr'));
- $form->setLib('cellule_fondcouleur_nbr', __('cellule_fondcouleur_nbr'));
- $form->setLib('cellule_bordure_nbr', __('cellule_bordure_nbr'));
- $form->setLib('cellule_align_nbr', __('cellule_align_nbr'));
- $form->setLib('cellule_numerique', __('cellule_numerique'));
- $form->setLib('cellule_total', __('cellule_total'));
- $form->setLib('cellule_moyenne', __('cellule_moyenne'));
- $form->setLib('cellule_compteur', __('cellule_compteur'));
- $form->setLib('om_sql', __('om_sql'));
+ $form->setLib("om_sousetat", __("om_sousetat"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("id", __("id"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("actif", __("actif"));
+ $form->setLib("titre", __("titre"));
+ $form->setLib("titrehauteur", __("titrehauteur"));
+ $form->setLib("titrefont", __("titrefont"));
+ $form->setLib("titreattribut", __("titreattribut"));
+ $form->setLib("titretaille", __("titretaille"));
+ $form->setLib("titrebordure", __("titrebordure"));
+ $form->setLib("titrealign", __("titrealign"));
+ $form->setLib("titrefond", __("titrefond"));
+ $form->setLib("titrefondcouleur", __("titrefondcouleur"));
+ $form->setLib("titretextecouleur", __("titretextecouleur"));
+ $form->setLib("intervalle_debut", __("intervalle_debut"));
+ $form->setLib("intervalle_fin", __("intervalle_fin"));
+ $form->setLib("entete_flag", __("entete_flag"));
+ $form->setLib("entete_fond", __("entete_fond"));
+ $form->setLib("entete_orientation", __("entete_orientation"));
+ $form->setLib("entete_hauteur", __("entete_hauteur"));
+ $form->setLib("entetecolone_bordure", __("entetecolone_bordure"));
+ $form->setLib("entetecolone_align", __("entetecolone_align"));
+ $form->setLib("entete_fondcouleur", __("entete_fondcouleur"));
+ $form->setLib("entete_textecouleur", __("entete_textecouleur"));
+ $form->setLib("tableau_largeur", __("tableau_largeur"));
+ $form->setLib("tableau_bordure", __("tableau_bordure"));
+ $form->setLib("tableau_fontaille", __("tableau_fontaille"));
+ $form->setLib("bordure_couleur", __("bordure_couleur"));
+ $form->setLib("se_fond1", __("se_fond1"));
+ $form->setLib("se_fond2", __("se_fond2"));
+ $form->setLib("cellule_fond", __("cellule_fond"));
+ $form->setLib("cellule_hauteur", __("cellule_hauteur"));
+ $form->setLib("cellule_largeur", __("cellule_largeur"));
+ $form->setLib("cellule_bordure_un", __("cellule_bordure_un"));
+ $form->setLib("cellule_bordure", __("cellule_bordure"));
+ $form->setLib("cellule_align", __("cellule_align"));
+ $form->setLib("cellule_fond_total", __("cellule_fond_total"));
+ $form->setLib("cellule_fontaille_total", __("cellule_fontaille_total"));
+ $form->setLib("cellule_hauteur_total", __("cellule_hauteur_total"));
+ $form->setLib("cellule_fondcouleur_total", __("cellule_fondcouleur_total"));
+ $form->setLib("cellule_bordure_total", __("cellule_bordure_total"));
+ $form->setLib("cellule_align_total", __("cellule_align_total"));
+ $form->setLib("cellule_fond_moyenne", __("cellule_fond_moyenne"));
+ $form->setLib("cellule_fontaille_moyenne", __("cellule_fontaille_moyenne"));
+ $form->setLib("cellule_hauteur_moyenne", __("cellule_hauteur_moyenne"));
+ $form->setLib("cellule_fondcouleur_moyenne", __("cellule_fondcouleur_moyenne"));
+ $form->setLib("cellule_bordure_moyenne", __("cellule_bordure_moyenne"));
+ $form->setLib("cellule_align_moyenne", __("cellule_align_moyenne"));
+ $form->setLib("cellule_fond_nbr", __("cellule_fond_nbr"));
+ $form->setLib("cellule_fontaille_nbr", __("cellule_fontaille_nbr"));
+ $form->setLib("cellule_hauteur_nbr", __("cellule_hauteur_nbr"));
+ $form->setLib("cellule_fondcouleur_nbr", __("cellule_fondcouleur_nbr"));
+ $form->setLib("cellule_bordure_nbr", __("cellule_bordure_nbr"));
+ $form->setLib("cellule_align_nbr", __("cellule_align_nbr"));
+ $form->setLib("cellule_numerique", __("cellule_numerique"));
+ $form->setLib("cellule_total", __("cellule_total"));
+ $form->setLib("cellule_moyenne", __("cellule_moyenne"));
+ $form->setLib("cellule_compteur", __("cellule_compteur"));
+ $form->setLib("om_sql", __("om_sql"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -871,34 +901,29 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_utilisateur.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_utilisateur.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_utilisateur.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,16 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_utilisateur_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_utilisateur_gen*.
+ */
class om_utilisateur_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_utilisateur";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_utilisateur";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_utilisateur";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"email",
"login",
@@ -20,17 +52,27 @@
"om_utilisateur",
"pwd"
);
+
+ /**
+ * Liste des champs uniques.
+ * @var array
+ */
var $unique_key = array(
- "login",
+ "login",
);
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
"om_collectivite" => array("om_collectivite", ),
"om_profil" => array("om_profil", ),
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("nom");
@@ -37,8 +79,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -54,8 +95,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite.
*/
function get_var_sql_forminc__sql_om_collectivite() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite ORDER BY om_collectivite.libelle ASC";
@@ -62,8 +102,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_collectivite_by_id.
*/
function get_var_sql_forminc__sql_om_collectivite_by_id() {
return "SELECT om_collectivite.om_collectivite, om_collectivite.libelle FROM ".DB_PREFIXE."om_collectivite WHERE om_collectivite = <idx>";
@@ -70,8 +109,7 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_profil.
*/
function get_var_sql_forminc__sql_om_profil() {
return "SELECT om_profil.om_profil, om_profil.libelle FROM ".DB_PREFIXE."om_profil ORDER BY om_profil.libelle ASC";
@@ -78,83 +116,79 @@
}

/**
- *
- * @return string
+ * GETTER_FORMINC - sql_om_profil_by_id.
*/
function get_var_sql_forminc__sql_om_profil_by_id() {
return "SELECT om_profil.om_profil, om_profil.libelle FROM ".DB_PREFIXE."om_profil WHERE om_profil = <idx>";
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_utilisateur'])) {
- $this->valF['om_utilisateur'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_utilisateur"])) {
+ $this->valF["om_utilisateur"] = ""; // -> requis
} else {
- $this->valF['om_utilisateur'] = $val['om_utilisateur'];
+ $this->valF["om_utilisateur"] = $val["om_utilisateur"];
}
- $this->valF['nom'] = $val['nom'];
- $this->valF['email'] = $val['email'];
- $this->valF['login'] = $val['login'];
- $this->valF['pwd'] = $val['pwd'];
- if (!is_numeric($val['om_collectivite'])) {
- $this->valF['om_collectivite'] = ""; // -> requis
+ $this->valF["nom"] = $val["nom"];
+ $this->valF["email"] = $val["email"];
+ $this->valF["login"] = $val["login"];
+ $this->valF["pwd"] = $val["pwd"];
+ if (!is_numeric($val["om_collectivite"])) {
+ $this->valF["om_collectivite"] = ""; // -> requis
} else {
- if($_SESSION['niveau']==1) {
- $this->valF['om_collectivite'] = $_SESSION['collectivite'];
+ if ($_SESSION["niveau"] == 1) {
+ $this->valF["om_collectivite"] = $_SESSION["collectivite"];
} else {
- $this->valF['om_collectivite'] = $val['om_collectivite'];
+ $this->valF["om_collectivite"] = $val["om_collectivite"];
}
}
- if ($val['om_type'] == "") {
- $this->valF['om_type'] = ""; // -> default
+ if ($val["om_type"] == "") {
+ $this->valF["om_type"] = ""; // -> default
} else {
- $this->valF['om_type'] = $val['om_type'];
+ $this->valF["om_type"] = $val["om_type"];
}
- if (!is_numeric($val['om_profil'])) {
- $this->valF['om_profil'] = ""; // -> requis
+ if (!is_numeric($val["om_profil"])) {
+ $this->valF["om_profil"] = ""; // -> requis
} else {
- $this->valF['om_profil'] = $val['om_profil'];
+ $this->valF["om_profil"] = $val["om_profil"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_utilisateur", "hidden");
$form->setType("nom", "text");
$form->setType("email", "text");
$form->setType("login", "text");
$form->setType("pwd", "text");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -168,21 +202,20 @@
}
}
$form->setType("om_type", "text");
- if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
$form->setType("om_profil", "selecthiddenstatic");
} else {
$form->setType("om_profil", "select");
}
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_utilisateur", "hiddenstatic");
$form->setType("nom", "text");
$form->setType("email", "text");
$form->setType("login", "text");
$form->setType("pwd", "text");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selecthiddenstatic");
} else {
@@ -196,15 +229,14 @@
}
}
$form->setType("om_type", "text");
- if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
$form->setType("om_profil", "selecthiddenstatic");
} else {
$form->setType("om_profil", "select");
}
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_utilisateur", "hiddenstatic");
$form->setType("nom", "hiddenstatic");
$form->setType("email", "hiddenstatic");
@@ -218,15 +250,14 @@
$form->setType("om_type", "hiddenstatic");
$form->setType("om_profil", "selectstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_utilisateur", "static");
$form->setType("nom", "static");
$form->setType("email", "static");
$form->setType("login", "static");
$form->setType("pwd", "static");
- if ($this->is_in_context_of_foreign_key("om_collectivite", $this->retourformulaire)) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
if($_SESSION["niveau"] == 2) {
$form->setType("om_collectivite", "selectstatic");
} else {
@@ -242,18 +273,19 @@
$form->setType("om_type", "static");
$form->setType("om_profil", "selectstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_utilisateur','VerifNum(this)');
- $form->setOnchange('om_collectivite','VerifNum(this)');
- $form->setOnchange('om_profil','VerifNum(this)');
+ $form->setOnchange("om_utilisateur", "VerifNum(this)");
+ $form->setOnchange("om_collectivite", "VerifNum(this)");
+ $form->setOnchange("om_profil", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_utilisateur", 11);
@@ -267,7 +299,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_utilisateur", 11);
@@ -280,23 +312,25 @@
$form->setMax("om_profil", 11);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_utilisateur', __('om_utilisateur'));
- $form->setLib('nom', __('nom'));
- $form->setLib('email', __('email'));
- $form->setLib('login', __('login'));
- $form->setLib('pwd', __('pwd'));
- $form->setLib('om_collectivite', __('om_collectivite'));
- $form->setLib('om_type', __('om_type'));
- $form->setLib('om_profil', __('om_profil'));
+ $form->setLib("om_utilisateur", __("om_utilisateur"));
+ $form->setLib("nom", __("nom"));
+ $form->setLib("email", __("email"));
+ $form->setLib("login", __("login"));
+ $form->setLib("pwd", __("pwd"));
+ $form->setLib("om_collectivite", __("om_collectivite"));
+ $form->setLib("om_type", __("om_type"));
+ $form->setLib("om_profil", __("om_profil"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// om_collectivite
$this->init_select(
$form,
@@ -321,36 +355,32 @@
);
}

-
+ /**
+ * SETTER_FORM - setVal (setVal).
+ */
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) {
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setVal
+ }

- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
- if($validation==0 and $maj==0 and $_SESSION['niveau']==1) {
- $form->setVal('om_collectivite', $_SESSION['collectivite']);
- }// fin validation
- if($validation == 0) {
- if($this->is_in_context_of_foreign_key('om_collectivite', $this->retourformulaire))
- $form->setVal('om_collectivite', $idxformulaire);
- if($this->is_in_context_of_foreign_key('om_profil', $this->retourformulaire))
- $form->setVal('om_profil', $idxformulaire);
- }// fin validation
+ if ($validation == 0 && $maj == 0 && $_SESSION["niveau"] == 1) {
+ $form->setVal("om_collectivite", $_SESSION["collectivite"]);
+ }
+ if ($validation == 0) {
+ if ($this->is_in_context_of_foreign_key("om_collectivite", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_collectivite", $this->getParameter("idxformulaire"));
+ }
+ if ($this->is_in_context_of_foreign_key("om_profil", $this->getParameter("retourformulaire"))) {
+ $form->setVal("om_profil", $this->getParameter("idxformulaire"));
+ }
+ }
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/om_widget.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/om_widget.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/om_widget.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *om_widget_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *om_widget_gen*.
+ */
class om_widget_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "om_widget";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "om_widget";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "om_widget";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"om_widget",
"type"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -44,61 +79,58 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['om_widget'])) {
- $this->valF['om_widget'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["om_widget"])) {
+ $this->valF["om_widget"] = ""; // -> requis
} else {
- $this->valF['om_widget'] = $val['om_widget'];
+ $this->valF["om_widget"] = $val["om_widget"];
}
- $this->valF['libelle'] = $val['libelle'];
- if ($val['lien'] == "") {
- $this->valF['lien'] = ""; // -> default
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["lien"] == "") {
+ $this->valF["lien"] = ""; // -> default
} else {
- $this->valF['lien'] = $val['lien'];
+ $this->valF["lien"] = $val["lien"];
}
- $this->valF['texte'] = $val['texte'];
- $this->valF['type'] = $val['type'];
- if ($val['script'] == "") {
- $this->valF['script'] = ""; // -> default
+ $this->valF["texte"] = $val["texte"];
+ $this->valF["type"] = $val["type"];
+ if ($val["script"] == "") {
+ $this->valF["script"] = ""; // -> default
} else {
- $this->valF['script'] = $val['script'];
+ $this->valF["script"] = $val["script"];
}
- $this->valF['arguments'] = $val['arguments'];
+ $this->valF["arguments"] = $val["arguments"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("om_widget", "hidden");
$form->setType("libelle", "text");
$form->setType("lien", "text");
@@ -107,9 +139,8 @@
$form->setType("script", "text");
$form->setType("arguments", "textarea");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("om_widget", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("lien", "text");
@@ -118,9 +149,8 @@
$form->setType("script", "text");
$form->setType("arguments", "textarea");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("om_widget", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("lien", "hiddenstatic");
@@ -129,9 +159,8 @@
$form->setType("script", "hiddenstatic");
$form->setType("arguments", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("om_widget", "static");
$form->setType("libelle", "static");
$form->setType("lien", "static");
@@ -140,16 +169,17 @@
$form->setType("script", "static");
$form->setType("arguments", "textareastatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('om_widget','VerifNum(this)');
+ $form->setOnchange("om_widget", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("om_widget", 11);
@@ -162,7 +192,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("om_widget", 11);
@@ -174,48 +204,39 @@
$form->setMax("arguments", 6);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('om_widget', __('om_widget'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('lien', __('lien'));
- $form->setLib('texte', __('texte'));
- $form->setLib('type', __('type'));
- $form->setLib('script', __('script'));
- $form->setLib('arguments', __('arguments'));
+ $form->setLib("om_widget", __("om_widget"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("lien", __("lien"));
+ $form->setLib("texte", __("texte"));
+ $form->setLib("type", __("type"));
+ $form->setLib("script", __("script"));
+ $form->setLib("arguments", __("arguments"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : om_dashboard
$this->rechercheTable($this->f->db, "om_dashboard", "om_widget", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/perimetre.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/perimetre.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/perimetre.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *perimetre_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *perimetre_gen*.
+ */
class perimetre_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "perimetre";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "perimetre";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "perimetre";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"longueur_exclusion_metre",
"perimetre"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -46,83 +81,80 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['perimetre'])) {
- $this->valF['perimetre'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["perimetre"])) {
+ $this->valF["perimetre"] = ""; // -> requis
} else {
- $this->valF['perimetre'] = $val['perimetre'];
+ $this->valF["perimetre"] = $val["perimetre"];
}
- $this->valF['libelle'] = $val['libelle'];
- if (!is_numeric($val['longueur_exclusion_metre'])) {
- $this->valF['longueur_exclusion_metre'] = ""; // -> requis
+ $this->valF["libelle"] = $val["libelle"];
+ if (!is_numeric($val["longueur_exclusion_metre"])) {
+ $this->valF["longueur_exclusion_metre"] = ""; // -> requis
} else {
- $this->valF['longueur_exclusion_metre'] = $val['longueur_exclusion_metre'];
+ $this->valF["longueur_exclusion_metre"] = $val["longueur_exclusion_metre"];
}
- if (!is_numeric($val['numero_voie'])) {
- $this->valF['numero_voie'] = NULL;
+ if (!is_numeric($val["numero_voie"])) {
+ $this->valF["numero_voie"] = null;
} else {
- $this->valF['numero_voie'] = $val['numero_voie'];
+ $this->valF["numero_voie"] = $val["numero_voie"];
}
- if ($val['complement'] == "") {
- $this->valF['complement'] = NULL;
+ if ($val["complement"] == "") {
+ $this->valF["complement"] = null;
} else {
- $this->valF['complement'] = $val['complement'];
+ $this->valF["complement"] = $val["complement"];
}
- if ($val['voie'] == "") {
- $this->valF['voie'] = NULL;
+ if ($val["voie"] == "") {
+ $this->valF["voie"] = null;
} else {
- $this->valF['voie'] = $val['voie'];
+ $this->valF["voie"] = $val["voie"];
}
- if ($val['libelle_voie'] == "") {
- $this->valF['libelle_voie'] = NULL;
+ if ($val["libelle_voie"] == "") {
+ $this->valF["libelle_voie"] = null;
} else {
- $this->valF['libelle_voie'] = $val['libelle_voie'];
+ $this->valF["libelle_voie"] = $val["libelle_voie"];
}
- if ($val['complement_voie'] == "") {
- $this->valF['complement_voie'] = NULL;
+ if ($val["complement_voie"] == "") {
+ $this->valF["complement_voie"] = null;
} else {
- $this->valF['complement_voie'] = $val['complement_voie'];
+ $this->valF["complement_voie"] = $val["complement_voie"];
}
- if ($val['geom'] == "") {
- unset($this->valF['geom']);
+ if ($val["geom"] == "") {
+ unset($this->valF["geom"]);
} else {
- $this->valF['geom'] = $val['geom'];
+ $this->valF["geom"] = $val["geom"];
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("perimetre", "hidden");
$form->setType("libelle", "text");
$form->setType("longueur_exclusion_metre", "text");
@@ -133,9 +165,8 @@
$form->setType("complement_voie", "text");
$form->setType("geom", "geom");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("perimetre", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("longueur_exclusion_metre", "text");
@@ -146,9 +177,8 @@
$form->setType("complement_voie", "text");
$form->setType("geom", "geom");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("perimetre", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("longueur_exclusion_metre", "hiddenstatic");
@@ -159,9 +189,8 @@
$form->setType("complement_voie", "hiddenstatic");
$form->setType("geom", "geom");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("perimetre", "static");
$form->setType("libelle", "static");
$form->setType("longueur_exclusion_metre", "static");
@@ -172,18 +201,19 @@
$form->setType("complement_voie", "static");
$form->setType("geom", "geom");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('perimetre','VerifNum(this)');
- $form->setOnchange('longueur_exclusion_metre','VerifNum(this)');
- $form->setOnchange('numero_voie','VerifNum(this)');
+ $form->setOnchange("perimetre", "VerifNum(this)");
+ $form->setOnchange("longueur_exclusion_metre", "VerifNum(this)");
+ $form->setOnchange("numero_voie", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("perimetre", 11);
@@ -198,7 +228,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("perimetre", 11);
@@ -212,24 +242,26 @@
$form->setMax("geom", 551424);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('perimetre', __('perimetre'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('longueur_exclusion_metre', __('longueur_exclusion_metre'));
- $form->setLib('numero_voie', __('numero_voie'));
- $form->setLib('complement', __('complement'));
- $form->setLib('voie', __('voie'));
- $form->setLib('libelle_voie', __('libelle_voie'));
- $form->setLib('complement_voie', __('complement_voie'));
- $form->setLib('geom', __('geom'));
+ $form->setLib("perimetre", __("perimetre"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("longueur_exclusion_metre", __("longueur_exclusion_metre"));
+ $form->setLib("numero_voie", __("numero_voie"));
+ $form->setLib("complement", __("complement"));
+ $form->setLib("voie", __("voie"));
+ $form->setLib("libelle_voie", __("libelle_voie"));
+ $form->setLib("complement_voie", __("complement_voie"));
+ $form->setLib("geom", __("geom"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
// geom
if ($maj == 1 || $maj == 3) {
$contenu = array();
@@ -238,20 +270,11 @@
}
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/qualite_exploitant.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/qualite_exploitant.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/qualite_exploitant.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,27 +1,63 @@
<?php
-//$Id$
-//gen openMairie le 13/09/2018 12:16
+/**
+ * Ce script contient la définition de la classe *qualite_exploitant_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *qualite_exploitant_gen*.
+ */
class qualite_exploitant_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "qualite_exploitant";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "qualite_exploitant";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "qualite_exploitant";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"qualite_exploitant"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -28,8 +64,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -38,79 +73,74 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['qualite_exploitant'])) {
- $this->valF['qualite_exploitant'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["qualite_exploitant"])) {
+ $this->valF["qualite_exploitant"] = ""; // -> requis
} else {
- $this->valF['qualite_exploitant'] = $val['qualite_exploitant'];
+ $this->valF["qualite_exploitant"] = $val["qualite_exploitant"];
}
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["libelle"] = $val["libelle"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("qualite_exploitant", "hidden");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("qualite_exploitant", "hiddenstatic");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("qualite_exploitant", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("qualite_exploitant", "static");
$form->setType("libelle", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('qualite_exploitant','VerifNum(this)');
+ $form->setOnchange("qualite_exploitant", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("qualite_exploitant", 11);
@@ -118,7 +148,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("qualite_exploitant", 11);
@@ -125,47 +155,36 @@
$form->setMax("libelle", 30);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('qualite_exploitant', __('qualite_exploitant'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("qualite_exploitant", __("qualite_exploitant"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "qualite_ancien_exploitant", $id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "qualite_co_exploitant", $id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "qualite_exploitant", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/rivoli.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/rivoli.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/rivoli.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,27 +1,63 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *rivoli_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *rivoli_gen*.
+ */
class rivoli_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "rivoli";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "rivoli";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "rivoli";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "A";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"rivoli"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -28,8 +64,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -38,53 +73,44 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- $this->valF['rivoli'] = $val['rivoli'];
- $this->valF['libelle'] = $val['libelle'];
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ $this->valF["rivoli"] = $val["rivoli"];
+ $this->valF["libelle"] = $val["libelle"];
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("rivoli", "text");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("rivoli", "hiddenstatic");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("rivoli", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("rivoli", "static");
$form->setType("libelle", "static");
}
-
}

/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("rivoli", 10);
@@ -92,7 +118,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("rivoli", 4);
@@ -99,33 +125,26 @@
$form->setMax("libelle", 80);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('rivoli', __('rivoli'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("rivoli", __("rivoli"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
-
- //==================================
- // cle secondaire
- //==================================
-
-
+ }
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/statut_demande.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/statut_demande.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/statut_demande.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,27 +1,63 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *statut_demande_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *statut_demande_gen*.
+ */
class statut_demande_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "statut_demande";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "statut_demande";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "statut_demande";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"statut_demande"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -28,8 +64,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -38,79 +73,74 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['statut_demande'])) {
- $this->valF['statut_demande'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["statut_demande"])) {
+ $this->valF["statut_demande"] = ""; // -> requis
} else {
- $this->valF['statut_demande'] = $val['statut_demande'];
+ $this->valF["statut_demande"] = $val["statut_demande"];
}
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["libelle"] = $val["libelle"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("statut_demande", "hidden");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("statut_demande", "hiddenstatic");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("statut_demande", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("statut_demande", "static");
$form->setType("libelle", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('statut_demande','VerifNum(this)');
+ $form->setOnchange("statut_demande", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("statut_demande", 11);
@@ -118,7 +148,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("statut_demande", 11);
@@ -125,43 +155,34 @@
$form->setMax("libelle", 100);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('statut_demande', __('statut_demande'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("statut_demande", __("statut_demande"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : demande_licence
$this->rechercheTable($this->f->db, "demande_licence", "statut_demande", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/terme.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/terme.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/terme.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *terme_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *terme_gen*.
+ */
class terme_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "terme";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "terme";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "terme";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"code",
"libelle",
"terme"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -40,84 +75,79 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['terme'])) {
- $this->valF['terme'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["terme"])) {
+ $this->valF["terme"] = ""; // -> requis
} else {
- $this->valF['terme'] = $val['terme'];
+ $this->valF["terme"] = $val["terme"];
}
- $this->valF['code'] = $val['code'];
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["code"] = $val["code"];
+ $this->valF["libelle"] = $val["libelle"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("terme", "hidden");
$form->setType("code", "text");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("terme", "hiddenstatic");
$form->setType("code", "text");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("terme", "hiddenstatic");
$form->setType("code", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("terme", "static");
$form->setType("code", "static");
$form->setType("libelle", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('terme','VerifNum(this)');
+ $form->setOnchange("terme", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("terme", 11);
@@ -126,7 +156,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("terme", 11);
@@ -134,44 +164,35 @@
$form->setMax("libelle", 30);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('terme', __('terme'));
- $form->setLib('code', __('code'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("terme", __("terme"));
+ $form->setLib("code", __("code"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : demande_licence
$this->rechercheTable($this->f->db, "demande_licence", "terme", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/titre_de_civilite.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/titre_de_civilite.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/titre_de_civilite.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *titre_de_civilite_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *titre_de_civilite_gen*.
+ */
class titre_de_civilite_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "titre_de_civilite";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "titre_de_civilite";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "titre_de_civilite";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"code",
"libelle",
"titre_de_civilite"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -40,84 +75,79 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['titre_de_civilite'])) {
- $this->valF['titre_de_civilite'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["titre_de_civilite"])) {
+ $this->valF["titre_de_civilite"] = ""; // -> requis
} else {
- $this->valF['titre_de_civilite'] = $val['titre_de_civilite'];
+ $this->valF["titre_de_civilite"] = $val["titre_de_civilite"];
}
- $this->valF['code'] = $val['code'];
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["code"] = $val["code"];
+ $this->valF["libelle"] = $val["libelle"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("titre_de_civilite", "hidden");
$form->setType("code", "text");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("titre_de_civilite", "hiddenstatic");
$form->setType("code", "text");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("titre_de_civilite", "hiddenstatic");
$form->setType("code", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("titre_de_civilite", "static");
$form->setType("code", "static");
$form->setType("libelle", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('titre_de_civilite','VerifNum(this)');
+ $form->setOnchange("titre_de_civilite", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("titre_de_civilite", 11);
@@ -126,7 +156,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("titre_de_civilite", 11);
@@ -134,48 +164,37 @@
$form->setMax("libelle", 20);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('titre_de_civilite', __('titre_de_civilite'));
- $form->setLib('code', __('code'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("titre_de_civilite", __("titre_de_civilite"));
+ $form->setLib("code", __("code"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "civilite_co_exploitant", $id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "civilite_exploitant", $id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "civilite_proprietaire", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/type_demande.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/type_demande.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/type_demande.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,28 +1,64 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *type_demande_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *type_demande_gen*.
+ */
class type_demande_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "type_demande";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "type_demande";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "type_demande";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"code",
"libelle",
"type_demande"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -29,8 +65,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -40,84 +75,79 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['type_demande'])) {
- $this->valF['type_demande'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["type_demande"])) {
+ $this->valF["type_demande"] = ""; // -> requis
} else {
- $this->valF['type_demande'] = $val['type_demande'];
+ $this->valF["type_demande"] = $val["type_demande"];
}
- $this->valF['code'] = $val['code'];
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["code"] = $val["code"];
+ $this->valF["libelle"] = $val["libelle"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("type_demande", "hidden");
$form->setType("code", "text");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("type_demande", "hiddenstatic");
$form->setType("code", "text");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("type_demande", "hiddenstatic");
$form->setType("code", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("type_demande", "static");
$form->setType("code", "static");
$form->setType("libelle", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('type_demande','VerifNum(this)');
+ $form->setOnchange("type_demande", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("type_demande", 11);
@@ -126,7 +156,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("type_demande", 11);
@@ -134,44 +164,35 @@
$form->setMax("libelle", 20);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('type_demande', __('type_demande'));
- $form->setLib('code', __('code'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("type_demande", __("type_demande"));
+ $form->setLib("code", __("code"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : demande_licence
$this->rechercheTable($this->f->db, "demande_licence", "type_demande", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/type_etablissement.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/type_etablissement.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/type_etablissement.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,27 +1,63 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition de la classe *type_etablissement_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *type_etablissement_gen*.
+ */
class type_etablissement_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "type_etablissement";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "type_etablissement";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "type_etablissement";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"type_etablissement"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -28,8 +64,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -38,79 +73,74 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['type_etablissement'])) {
- $this->valF['type_etablissement'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["type_etablissement"])) {
+ $this->valF["type_etablissement"] = ""; // -> requis
} else {
- $this->valF['type_etablissement'] = $val['type_etablissement'];
+ $this->valF["type_etablissement"] = $val["type_etablissement"];
}
- $this->valF['libelle'] = $val['libelle'];
+ $this->valF["libelle"] = $val["libelle"];
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("type_etablissement", "hidden");
$form->setType("libelle", "text");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("type_etablissement", "hiddenstatic");
$form->setType("libelle", "text");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("type_etablissement", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("type_etablissement", "static");
$form->setType("libelle", "static");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('type_etablissement','VerifNum(this)');
+ $form->setOnchange("type_etablissement", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("type_etablissement", 11);
@@ -118,7 +148,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("type_etablissement", 11);
@@ -125,43 +155,34 @@
$form->setMax("libelle", 100);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('type_etablissement', __('type_etablissement'));
- $form->setLib('libelle', __('libelle'));
+ $form->setLib("type_etablissement", __("type_etablissement"));
+ $form->setLib("libelle", __("libelle"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : etablissement
$this->rechercheTable($this->f->db, "etablissement", "type_etablissement", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/obj/type_licence.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/obj/type_licence.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/obj/type_licence.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,27 +1,63 @@
<?php
-//$Id$
-//gen openMairie le 10/08/2018 17:44
+/**
+ * Ce script contient la définition de la classe *type_licence_gen*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

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

+/**
+ * Définition de la classe *type_licence_gen*.
+ */
class type_licence_gen extends om_dbform {

+ /**
+ * Nom absolu de la classe.
+ * @var null|string
+ */
protected $_absolute_class_name = "type_licence";

+ /**
+ * Table.
+ * @var null|string
+ */
var $table = "type_licence";
+
+ /**
+ * Nom du champ représentant la clé primaire de la table.
+ * @var null|string
+ */
var $clePrimaire = "type_licence";
+
+ /**
+ * Type de la clé primaire A ou N.
+ * @var null|string
+ */
var $typeCle = "N";
+
+ /**
+ * Liste des champs obligatoires.
+ * @var array
+ */
var $required_field = array(
"libelle",
"type_licence"
);
-
+
+ /**
+ * Liste des champs clés étrangères avec la liste des éventuelles surcharges
+ * de leur classe.
+ * @var array
+ */
var $foreign_keys_extended = array(
);
-
+
/**
- *
- * @return string
+ * Retourne le libellé par défaut de l'enregistrement.
*/
function get_default_libelle() {
return $this->getVal($this->clePrimaire)."&nbsp;".$this->getVal("libelle");
@@ -28,8 +64,7 @@
}

/**
- *
- * @return array
+ * GETTER_FORMINC - champs.
*/
function get_var_sql_forminc__champs() {
return array(
@@ -39,88 +74,83 @@
);
}

-
-
-
- function setvalF($val = array()) {
- //affectation valeur formulaire
- if (!is_numeric($val['type_licence'])) {
- $this->valF['type_licence'] = ""; // -> requis
+ /**
+ * SETTER_TREATMENT - setValF (setValF).
+ */
+ function setValF($val = array()) {
+ if (!is_numeric($val["type_licence"])) {
+ $this->valF["type_licence"] = ""; // -> requis
} else {
- $this->valF['type_licence'] = $val['type_licence'];
+ $this->valF["type_licence"] = $val["type_licence"];
}
- $this->valF['libelle'] = $val['libelle'];
- if ($val['contrainte_proximite'] == 1 || $val['contrainte_proximite'] == "t" || $val['contrainte_proximite'] == "Oui") {
- $this->valF['contrainte_proximite'] = true;
+ $this->valF["libelle"] = $val["libelle"];
+ if ($val["contrainte_proximite"] == 1 || $val["contrainte_proximite"] == "t" || $val["contrainte_proximite"] == "Oui") {
+ $this->valF["contrainte_proximite"] = true;
} else {
- $this->valF['contrainte_proximite'] = false;
+ $this->valF["contrainte_proximite"] = false;
}
}

- //=================================================
- //cle primaire automatique [automatic primary key]
- //==================================================
-
+ /**
+ * SETTER_TREATMENT - setId (setValF).
+ */
function setId(&$dnu1 = null) {
- //numero automatique
$this->valF[$this->clePrimaire] = $this->f->db->nextId(DB_PREFIXE.$this->table);
}

+ /**
+ * SETTER_TREATMENT - setValFAjout (setValF).
+ */
function setValFAjout($val = array()) {
- //numero automatique -> pas de controle ajout cle primaire
}

+ /**
+ * CHECK_TREATMENT - verifierAjout.
+ */
function verifierAjout($val = array(), &$dnu1 = null) {
- //numero automatique -> pas de verfication de cle primaire
}

- //==========================
- // Formulaire [form]
- //==========================
/**
- *
+ * SETTER_FORM - setType.
*/
function setType(&$form, $maj) {
- // Récupération du mode de l'action
+ parent::setType($form, $maj);
$crud = $this->get_action_crud($maj);
-
- // MODE AJOUTER
- if ($maj == 0 || $crud == 'create') {
+ // MODE CREATE / AJOUTER
+ if ($maj == 0 || $crud == "create") {
$form->setType("type_licence", "hidden");
$form->setType("libelle", "text");
$form->setType("contrainte_proximite", "checkbox");
}
-
- // MDOE MODIFIER
- if ($maj == 1 || $crud == 'update') {
+ // MODE UPDATE / MODIFIER
+ if ($maj == 1 || $crud == "update") {
$form->setType("type_licence", "hiddenstatic");
$form->setType("libelle", "text");
$form->setType("contrainte_proximite", "checkbox");
}
-
- // MODE SUPPRIMER
- if ($maj == 2 || $crud == 'delete') {
+ // MODE DELETE / SUPPRIMER
+ if ($maj == 2 || $crud == "delete") {
$form->setType("type_licence", "hiddenstatic");
$form->setType("libelle", "hiddenstatic");
$form->setType("contrainte_proximite", "hiddenstatic");
}
-
- // MODE CONSULTER
- if ($maj == 3 || $crud == 'read') {
+ // MODE READ / CONSULTER
+ if ($maj == 3 || $crud == "read") {
$form->setType("type_licence", "static");
$form->setType("libelle", "static");
$form->setType("contrainte_proximite", "checkboxstatic");
}
-
}

-
+ /**
+ * SETTER_FORM - setOnchange.
+ */
function setOnchange(&$form, $maj) {
- //javascript controle client
- $form->setOnchange('type_licence','VerifNum(this)');
+ $form->setOnchange("type_licence", "VerifNum(this)");
}
+
/**
- * Methode setTaille
+ * SETTER_FORM - setTaille.
*/
function setTaille(&$form, $maj) {
$form->setTaille("type_licence", 11);
@@ -129,7 +159,7 @@
}

/**
- * Methode setMax
+ * SETTER_FORM - setMax.
*/
function setMax(&$form, $maj) {
$form->setMax("type_licence", 11);
@@ -137,44 +167,35 @@
$form->setMax("contrainte_proximite", 1);
}

-
+ /**
+ * SETTER_FORM - setLib.
+ */
function setLib(&$form, $maj) {
- //libelle des champs
- $form->setLib('type_licence', __('type_licence'));
- $form->setLib('libelle', __('libelle'));
- $form->setLib('contrainte_proximite', __('contrainte_proximite'));
+ $form->setLib("type_licence", __("type_licence"));
+ $form->setLib("libelle", __("libelle"));
+ $form->setLib("contrainte_proximite", __("contrainte_proximite"));
}
+
/**
- *
+ * SETTER_FORM - setSelect.
*/
function setSelect(&$form, $maj, &$dnu1 = null, $dnu2 = null) {
-
+ parent::setSelect($form, $maj);
}

-
- //==================================
- // sous Formulaire
- //==================================
-
-
+ /**
+ * SETTER_FORM - setValsousformulaire (setVal).
+ */
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
$this->retourformulaire = $retourformulaire;
$this->set_form_default_values($form, $maj, $validation);
- }// fin setValsousformulaire
+ }

- //==================================
- // cle secondaire
- //==================================
-
/**
- * Methode clesecondaire
+ * CHECK_TREATMENT - cleSecondaire.
*/
function cleSecondaire($id, &$dnu1 = null, $val = array(), $dnu2 = null) {
- // On appelle la methode de la classe parent
parent::cleSecondaire($id);
- // Verification de la cle secondaire : demande_licence
$this->rechercheTable($this->f->db, "demande_licence", "type_licence", $id);
}
-
-
}

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/adresse_postale.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/adresse_postale.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/adresse_postale.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,48 +1,48 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *adresse_postale*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("géolocalisation")." -> ".__("adresses postales");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."adresse_postale";
// SELECT
$champAffiche = array(
- 'adresse_postale.adresse_postale as "'.__("adresse_postale").'"',
- 'adresse_postale.rivoli as "'.__("rivoli").'"',
- 'adresse_postale.numero as "'.__("numero").'"',
- 'adresse_postale.complement as "'.__("complement").'"',
- 'adresse_postale.libelle as "'.__("libelle").'"',
- );
+ "adresse_postale.adresse_postale as \"".__("adresse_postale")."\"",
+ "adresse_postale.rivoli as \"".__("rivoli")."\"",
+ "adresse_postale.numero as \"".__("numero")."\"",
+ "adresse_postale.complement as \"".__("complement")."\"",
+ "adresse_postale.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- 'adresse_postale.geom as "'.__("geom").'"',
- );
+ "adresse_postale.geom as \"".__("geom")."\"",
+);
//
$champRecherche = array(
- 'adresse_postale.adresse_postale as "'.__("adresse_postale").'"',
- 'adresse_postale.rivoli as "'.__("rivoli").'"',
- 'adresse_postale.numero as "'.__("numero").'"',
- 'adresse_postale.complement as "'.__("complement").'"',
- 'adresse_postale.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY adresse_postale.libelle ASC NULLS LAST";
-$edition="adresse_postale";
+ "adresse_postale.adresse_postale as \"".__("adresse_postale")."\"",
+ "adresse_postale.rivoli as \"".__("rivoli")."\"",
+ "adresse_postale.numero as \"".__("numero")."\"",
+ "adresse_postale.complement as \"".__("complement")."\"",
+ "adresse_postale.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY adresse_postale.libelle ASC NULLS LAST";
+$edition = "adresse_postale";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/courrier.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/courrier.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/courrier.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *courrier*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("application")." -> ".__("courriers");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."courrier
LEFT JOIN ".DB_PREFIXE."etablissement
@@ -25,27 +25,27 @@
ON courrier.etablissement=etablissement.etablissement ";
// SELECT
$champAffiche = array(
- 'courrier.courrier as "'.__("courrier").'"',
- 'to_char(courrier.date_courrier ,\'DD/MM/YYYY\') as "'.__("date_courrier").'"',
- 'courrier.modele_lettre_type as "'.__("modele_lettre_type").'"',
- 'courrier.objet as "'.__("objet").'"',
+ "courrier.courrier as \"".__("courrier")."\"",
+ "to_char(courrier.date_courrier ,'DD/MM/YYYY') as \"".__("date_courrier")."\"",
+ "courrier.modele_lettre_type as \"".__("modele_lettre_type")."\"",
+ "courrier.objet as \"".__("objet")."\"",
"case courrier.fichier_finalise when 't' then 'Oui' else 'Non' end as \"".__("fichier_finalise")."\"",
- 'etablissement.raison_sociale as "'.__("etablissement").'"',
- );
+ "etablissement.raison_sociale as \"".__("etablissement")."\"",
+);
//
$champNonAffiche = array(
- 'courrier.corps_om_html as "'.__("corps_om_html").'"',
- 'courrier.fichier as "'.__("fichier").'"',
- );
+ "courrier.corps_om_html as \"".__("corps_om_html")."\"",
+ "courrier.fichier as \"".__("fichier")."\"",
+);
//
$champRecherche = array(
- 'courrier.courrier as "'.__("courrier").'"',
- 'courrier.modele_lettre_type as "'.__("modele_lettre_type").'"',
- 'courrier.objet as "'.__("objet").'"',
- 'etablissement.raison_sociale as "'.__("etablissement").'"',
- );
-$tri="ORDER BY courrier.date_courrier ASC NULLS LAST";
-$edition="courrier";
+ "courrier.courrier as \"".__("courrier")."\"",
+ "courrier.modele_lettre_type as \"".__("modele_lettre_type")."\"",
+ "courrier.objet as \"".__("objet")."\"",
+ "etablissement.raison_sociale as \"".__("etablissement")."\"",
+);
+$tri = "ORDER BY courrier.date_courrier ASC NULLS LAST";
+$edition = "courrier";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/demande_licence.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/demande_licence.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/demande_licence.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 10/08/2018 17:44
+/**
+ * Ce script contient la définition des variables de l'objet *demande_licence*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("application")." -> ".__("demandes de licence");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."demande_licence
LEFT JOIN ".DB_PREFIXE."etablissement
@@ -33,36 +33,36 @@
ON demande_licence.type_licence=type_licence.type_licence ";
// SELECT
$champAffiche = array(
- 'demande_licence.demande_licence as "'.__("demande_licence").'"',
- 'type_licence.libelle as "'.__("type_licence").'"',
- 'demande_licence.numero_licence as "'.__("numero_licence").'"',
- 'terme.libelle as "'.__("terme").'"',
- 'to_char(demande_licence.date_debut_validite ,\'DD/MM/YYYY\') as "'.__("date_debut_validite").'"',
- 'to_char(demande_licence.date_fin_validite ,\'DD/MM/YYYY\') as "'.__("date_fin_validite").'"',
- 'etablissement.raison_sociale as "'.__("etablissement").'"',
- );
+ "demande_licence.demande_licence as \"".__("demande_licence")."\"",
+ "type_licence.libelle as \"".__("type_licence")."\"",
+ "demande_licence.numero_licence as \"".__("numero_licence")."\"",
+ "terme.libelle as \"".__("terme")."\"",
+ "to_char(demande_licence.date_debut_validite ,'DD/MM/YYYY') as \"".__("date_debut_validite")."\"",
+ "to_char(demande_licence.date_fin_validite ,'DD/MM/YYYY') as \"".__("date_fin_validite")."\"",
+ "etablissement.raison_sociale as \"".__("etablissement")."\"",
+);
//
$champNonAffiche = array(
- 'demande_licence.date_demande_licence as "'.__("date_demande_licence").'"',
- 'demande_licence.date_ancienne_demande as "'.__("date_ancienne_demande").'"',
- 'demande_licence.type_demande as "'.__("type_demande").'"',
- 'demande_licence.compte_rendu as "'.__("compte_rendu").'"',
- 'demande_licence.statut_demande as "'.__("statut_demande").'"',
- 'demande_licence.occasion as "'.__("occasion").'"',
- 'demande_licence.particularite as "'.__("particularite").'"',
- 'demande_licence.heure_debut as "'.__("heure_debut").'"',
- 'demande_licence.heure_fin as "'.__("heure_fin").'"',
- );
+ "demande_licence.date_demande_licence as \"".__("date_demande_licence")."\"",
+ "demande_licence.date_ancienne_demande as \"".__("date_ancienne_demande")."\"",
+ "demande_licence.type_demande as \"".__("type_demande")."\"",
+ "demande_licence.compte_rendu as \"".__("compte_rendu")."\"",
+ "demande_licence.statut_demande as \"".__("statut_demande")."\"",
+ "demande_licence.occasion as \"".__("occasion")."\"",
+ "demande_licence.particularite as \"".__("particularite")."\"",
+ "demande_licence.heure_debut as \"".__("heure_debut")."\"",
+ "demande_licence.heure_fin as \"".__("heure_fin")."\"",
+);
//
$champRecherche = array(
- 'demande_licence.demande_licence as "'.__("demande_licence").'"',
- 'type_licence.libelle as "'.__("type_licence").'"',
- 'demande_licence.numero_licence as "'.__("numero_licence").'"',
- 'terme.libelle as "'.__("terme").'"',
- 'etablissement.raison_sociale as "'.__("etablissement").'"',
- );
-$tri="ORDER BY demande_licence.date_demande_licence ASC NULLS LAST";
-$edition="demande_licence";
+ "demande_licence.demande_licence as \"".__("demande_licence")."\"",
+ "type_licence.libelle as \"".__("type_licence")."\"",
+ "demande_licence.numero_licence as \"".__("numero_licence")."\"",
+ "terme.libelle as \"".__("terme")."\"",
+ "etablissement.raison_sociale as \"".__("etablissement")."\"",
+);
+$tri = "ORDER BY demande_licence.date_demande_licence ASC NULLS LAST";
+$edition = "demande_licence";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/dossier.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/dossier.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/dossier.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *dossier*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("application")." -> ".__("dossiers");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."dossier
LEFT JOIN ".DB_PREFIXE."etablissement
@@ -25,23 +25,23 @@
ON dossier.etablissement=etablissement.etablissement ";
// SELECT
$champAffiche = array(
- 'dossier.dossier as "'.__("dossier").'"',
- 'to_char(dossier.date_piece ,\'DD/MM/YYYY\') as "'.__("date_piece").'"',
- 'dossier.observation as "'.__("observation").'"',
- 'etablissement.raison_sociale as "'.__("etablissement").'"',
- );
+ "dossier.dossier as \"".__("dossier")."\"",
+ "to_char(dossier.date_piece ,'DD/MM/YYYY') as \"".__("date_piece")."\"",
+ "dossier.observation as \"".__("observation")."\"",
+ "etablissement.raison_sociale as \"".__("etablissement")."\"",
+);
//
$champNonAffiche = array(
- 'dossier.fichier as "'.__("fichier").'"',
- );
+ "dossier.fichier as \"".__("fichier")."\"",
+);
//
$champRecherche = array(
- 'dossier.dossier as "'.__("dossier").'"',
- 'dossier.observation as "'.__("observation").'"',
- 'etablissement.raison_sociale as "'.__("etablissement").'"',
- );
-$tri="ORDER BY dossier.date_piece ASC NULLS LAST";
-$edition="dossier";
+ "dossier.dossier as \"".__("dossier")."\"",
+ "dossier.observation as \"".__("observation")."\"",
+ "etablissement.raison_sociale as \"".__("etablissement")."\"",
+);
+$tri = "ORDER BY dossier.date_piece ASC NULLS LAST";
+$edition = "dossier";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/etablissement.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/etablissement.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/etablissement.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 19/10/2018 13:02
+/**
+ * Ce script contient la définition des variables de l'objet *etablissement*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("application")." -> ".__("établissements");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."etablissement
LEFT JOIN ".DB_PREFIXE."titre_de_civilite as titre_de_civilite0
@@ -37,83 +37,83 @@
ON etablissement.type_etablissement=type_etablissement.type_etablissement ";
// SELECT
$champAffiche = array(
- 'etablissement.etablissement as "'.__("etablissement").'"',
- 'etablissement.raison_sociale as "'.__("raison_sociale").'"',
- 'etablissement.enseigne as "'.__("enseigne").'"',
- 'etablissement.libelle_voie as "'.__("libelle_voie").'"',
- 'etablissement.nom_exploitant as "'.__("nom_exploitant").'"',
- 'etablissement.nom_proprietaire as "'.__("nom_proprietaire").'"',
- );
+ "etablissement.etablissement as \"".__("etablissement")."\"",
+ "etablissement.raison_sociale as \"".__("raison_sociale")."\"",
+ "etablissement.enseigne as \"".__("enseigne")."\"",
+ "etablissement.libelle_voie as \"".__("libelle_voie")."\"",
+ "etablissement.nom_exploitant as \"".__("nom_exploitant")."\"",
+ "etablissement.nom_proprietaire as \"".__("nom_proprietaire")."\"",
+);
//
$champNonAffiche = array(
- 'etablissement.no_siret as "'.__("no_siret").'"',
- 'etablissement.forme_juridique as "'.__("forme_juridique").'"',
- 'etablissement.nature as "'.__("nature").'"',
- 'etablissement.type_etablissement as "'.__("type_etablissement").'"',
- 'etablissement.permis_exploitation as "'.__("permis_exploitation").'"',
- 'etablissement.date_permis_exploitation as "'.__("date_permis_exploitation").'"',
- 'etablissement.permis_exploitation_nuit as "'.__("permis_exploitation_nuit").'"',
- 'etablissement.date_permis_exploitation_nuit as "'.__("date_permis_exploitation_nuit").'"',
- 'etablissement.numero_voie as "'.__("numero_voie").'"',
- 'etablissement.complement as "'.__("complement").'"',
- 'etablissement.voie as "'.__("voie").'"',
- 'etablissement.complement_voie as "'.__("complement_voie").'"',
- 'etablissement.cp_etablissement as "'.__("cp_etablissement").'"',
- 'etablissement.ville_etablissement as "'.__("ville_etablissement").'"',
- 'etablissement.geom as "'.__("geom").'"',
- 'etablissement.civilite_exploitant as "'.__("civilite_exploitant").'"',
- 'etablissement.nom_marital_exploitant as "'.__("nom_marital_exploitant").'"',
- 'etablissement.prenom_exploitant as "'.__("prenom_exploitant").'"',
- 'etablissement.date_naissance_exploitant as "'.__("date_naissance_exploitant").'"',
- 'etablissement.ville_naissance_exploitant as "'.__("ville_naissance_exploitant").'"',
- 'etablissement.cp_naissance_exploitant as "'.__("cp_naissance_exploitant").'"',
- 'etablissement.adresse1_exploitant as "'.__("adresse1_exploitant").'"',
- 'etablissement.adresse2_exploitant as "'.__("adresse2_exploitant").'"',
- 'etablissement.cp_exploitant as "'.__("cp_exploitant").'"',
- 'etablissement.ville_exploitant as "'.__("ville_exploitant").'"',
- 'etablissement.qualite_exploitant as "'.__("qualite_exploitant").'"',
- 'etablissement.nationalite_exploitant as "'.__("nationalite_exploitant").'"',
- 'etablissement.particularite_exploitant as "'.__("particularite_exploitant").'"',
- 'etablissement.civilite_co_exploitant as "'.__("civilite_co_exploitant").'"',
- 'etablissement.nom_co_exploitant as "'.__("nom_co_exploitant").'"',
- 'etablissement.nom_marital_co_exploitant as "'.__("nom_marital_co_exploitant").'"',
- 'etablissement.prenom_co_exploitant as "'.__("prenom_co_exploitant").'"',
- 'etablissement.date_naissance_co_exploitant as "'.__("date_naissance_co_exploitant").'"',
- 'etablissement.ville_naissance_co_exploitant as "'.__("ville_naissance_co_exploitant").'"',
- 'etablissement.cp_naissance_co_exploitant as "'.__("cp_naissance_co_exploitant").'"',
- 'etablissement.adresse1_co_exploitant as "'.__("adresse1_co_exploitant").'"',
- 'etablissement.adresse2_co_exploitant as "'.__("adresse2_co_exploitant").'"',
- 'etablissement.cp_co_exploitant as "'.__("cp_co_exploitant").'"',
- 'etablissement.ville_co_exploitant as "'.__("ville_co_exploitant").'"',
- 'etablissement.nationalite_co_exploitant as "'.__("nationalite_co_exploitant").'"',
- 'etablissement.qualite_co_exploitant as "'.__("qualite_co_exploitant").'"',
- 'etablissement.particularite_co_exploitant as "'.__("particularite_co_exploitant").'"',
- 'etablissement.nom_ancien_exploitant as "'.__("nom_ancien_exploitant").'"',
- 'etablissement.prenom_ancien_exploitant as "'.__("prenom_ancien_exploitant").'"',
- 'etablissement.qualite_ancien_exploitant as "'.__("qualite_ancien_exploitant").'"',
- 'etablissement.civilite_proprietaire as "'.__("civilite_proprietaire").'"',
- 'etablissement.prenom_proprietaire as "'.__("prenom_proprietaire").'"',
- 'etablissement.adresse1_proprietaire as "'.__("adresse1_proprietaire").'"',
- 'etablissement.adresse2_proprietaire as "'.__("adresse2_proprietaire").'"',
- 'etablissement.cp_proprietaire as "'.__("cp_proprietaire").'"',
- 'etablissement.ville_proprietaire as "'.__("ville_proprietaire").'"',
- 'etablissement.profession_proprietaire as "'.__("profession_proprietaire").'"',
- 'etablissement.date_fermeture as "'.__("date_fermeture").'"',
- 'etablissement.date_liquidation as "'.__("date_liquidation").'"',
- 'etablissement.observation as "'.__("observation").'"',
- 'etablissement.ancien_proprietaire as "'.__("ancien_proprietaire").'"',
- );
+ "etablissement.no_siret as \"".__("no_siret")."\"",
+ "etablissement.forme_juridique as \"".__("forme_juridique")."\"",
+ "etablissement.nature as \"".__("nature")."\"",
+ "etablissement.type_etablissement as \"".__("type_etablissement")."\"",
+ "etablissement.permis_exploitation as \"".__("permis_exploitation")."\"",
+ "etablissement.date_permis_exploitation as \"".__("date_permis_exploitation")."\"",
+ "etablissement.permis_exploitation_nuit as \"".__("permis_exploitation_nuit")."\"",
+ "etablissement.date_permis_exploitation_nuit as \"".__("date_permis_exploitation_nuit")."\"",
+ "etablissement.numero_voie as \"".__("numero_voie")."\"",
+ "etablissement.complement as \"".__("complement")."\"",
+ "etablissement.voie as \"".__("voie")."\"",
+ "etablissement.complement_voie as \"".__("complement_voie")."\"",
+ "etablissement.cp_etablissement as \"".__("cp_etablissement")."\"",
+ "etablissement.ville_etablissement as \"".__("ville_etablissement")."\"",
+ "etablissement.geom as \"".__("geom")."\"",
+ "etablissement.civilite_exploitant as \"".__("civilite_exploitant")."\"",
+ "etablissement.nom_marital_exploitant as \"".__("nom_marital_exploitant")."\"",
+ "etablissement.prenom_exploitant as \"".__("prenom_exploitant")."\"",
+ "etablissement.date_naissance_exploitant as \"".__("date_naissance_exploitant")."\"",
+ "etablissement.ville_naissance_exploitant as \"".__("ville_naissance_exploitant")."\"",
+ "etablissement.cp_naissance_exploitant as \"".__("cp_naissance_exploitant")."\"",
+ "etablissement.adresse1_exploitant as \"".__("adresse1_exploitant")."\"",
+ "etablissement.adresse2_exploitant as \"".__("adresse2_exploitant")."\"",
+ "etablissement.cp_exploitant as \"".__("cp_exploitant")."\"",
+ "etablissement.ville_exploitant as \"".__("ville_exploitant")."\"",
+ "etablissement.qualite_exploitant as \"".__("qualite_exploitant")."\"",
+ "etablissement.nationalite_exploitant as \"".__("nationalite_exploitant")."\"",
+ "etablissement.particularite_exploitant as \"".__("particularite_exploitant")."\"",
+ "etablissement.civilite_co_exploitant as \"".__("civilite_co_exploitant")."\"",
+ "etablissement.nom_co_exploitant as \"".__("nom_co_exploitant")."\"",
+ "etablissement.nom_marital_co_exploitant as \"".__("nom_marital_co_exploitant")."\"",
+ "etablissement.prenom_co_exploitant as \"".__("prenom_co_exploitant")."\"",
+ "etablissement.date_naissance_co_exploitant as \"".__("date_naissance_co_exploitant")."\"",
+ "etablissement.ville_naissance_co_exploitant as \"".__("ville_naissance_co_exploitant")."\"",
+ "etablissement.cp_naissance_co_exploitant as \"".__("cp_naissance_co_exploitant")."\"",
+ "etablissement.adresse1_co_exploitant as \"".__("adresse1_co_exploitant")."\"",
+ "etablissement.adresse2_co_exploitant as \"".__("adresse2_co_exploitant")."\"",
+ "etablissement.cp_co_exploitant as \"".__("cp_co_exploitant")."\"",
+ "etablissement.ville_co_exploitant as \"".__("ville_co_exploitant")."\"",
+ "etablissement.nationalite_co_exploitant as \"".__("nationalite_co_exploitant")."\"",
+ "etablissement.qualite_co_exploitant as \"".__("qualite_co_exploitant")."\"",
+ "etablissement.particularite_co_exploitant as \"".__("particularite_co_exploitant")."\"",
+ "etablissement.nom_ancien_exploitant as \"".__("nom_ancien_exploitant")."\"",
+ "etablissement.prenom_ancien_exploitant as \"".__("prenom_ancien_exploitant")."\"",
+ "etablissement.qualite_ancien_exploitant as \"".__("qualite_ancien_exploitant")."\"",
+ "etablissement.civilite_proprietaire as \"".__("civilite_proprietaire")."\"",
+ "etablissement.prenom_proprietaire as \"".__("prenom_proprietaire")."\"",
+ "etablissement.adresse1_proprietaire as \"".__("adresse1_proprietaire")."\"",
+ "etablissement.adresse2_proprietaire as \"".__("adresse2_proprietaire")."\"",
+ "etablissement.cp_proprietaire as \"".__("cp_proprietaire")."\"",
+ "etablissement.ville_proprietaire as \"".__("ville_proprietaire")."\"",
+ "etablissement.profession_proprietaire as \"".__("profession_proprietaire")."\"",
+ "etablissement.date_fermeture as \"".__("date_fermeture")."\"",
+ "etablissement.date_liquidation as \"".__("date_liquidation")."\"",
+ "etablissement.observation as \"".__("observation")."\"",
+ "etablissement.ancien_proprietaire as \"".__("ancien_proprietaire")."\"",
+);
//
$champRecherche = array(
- 'etablissement.etablissement as "'.__("etablissement").'"',
- 'etablissement.raison_sociale as "'.__("raison_sociale").'"',
- 'etablissement.enseigne as "'.__("enseigne").'"',
- 'etablissement.libelle_voie as "'.__("libelle_voie").'"',
- 'etablissement.nom_exploitant as "'.__("nom_exploitant").'"',
- 'etablissement.nom_proprietaire as "'.__("nom_proprietaire").'"',
- );
-$tri="ORDER BY etablissement.raison_sociale ASC NULLS LAST";
-$edition="etablissement";
+ "etablissement.etablissement as \"".__("etablissement")."\"",
+ "etablissement.raison_sociale as \"".__("raison_sociale")."\"",
+ "etablissement.enseigne as \"".__("enseigne")."\"",
+ "etablissement.libelle_voie as \"".__("libelle_voie")."\"",
+ "etablissement.nom_exploitant as \"".__("nom_exploitant")."\"",
+ "etablissement.nom_proprietaire as \"".__("nom_proprietaire")."\"",
+);
+$tri = "ORDER BY etablissement.raison_sociale ASC NULLS LAST";
+$edition = "etablissement";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -142,8 +142,7 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- 'courrier',
- 'demande_licence',
- 'dossier',
+ "courrier",
+ "demande_licence",
+ "dossier",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_collectivite.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_collectivite.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_collectivite.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,43 +1,43 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_collectivite*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("général")." -> ".__("om_collectivite");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_collectivite";
// SELECT
$champAffiche = array(
- 'om_collectivite.om_collectivite as "'.__("om_collectivite").'"',
- 'om_collectivite.libelle as "'.__("libelle").'"',
- 'om_collectivite.niveau as "'.__("niveau").'"',
- );
+ "om_collectivite.om_collectivite as \"".__("om_collectivite")."\"",
+ "om_collectivite.libelle as \"".__("libelle")."\"",
+ "om_collectivite.niveau as \"".__("niveau")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_collectivite.om_collectivite as "'.__("om_collectivite").'"',
- 'om_collectivite.libelle as "'.__("libelle").'"',
- 'om_collectivite.niveau as "'.__("niveau").'"',
- );
-$tri="ORDER BY om_collectivite.libelle ASC NULLS LAST";
-$edition="om_collectivite";
+ "om_collectivite.om_collectivite as \"".__("om_collectivite")."\"",
+ "om_collectivite.libelle as \"".__("libelle")."\"",
+ "om_collectivite.niveau as \"".__("niveau")."\"",
+);
+$tri = "ORDER BY om_collectivite.libelle ASC NULLS LAST";
+$edition = "om_collectivite";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -54,13 +54,12 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'om_etat',
- //'om_lettretype',
- //'om_logo',
- //'om_parametre',
- //'om_sig_flux',
- //'om_sig_map',
- //'om_sousetat',
- //'om_utilisateur',
+ //"om_etat",
+ //"om_lettretype",
+ //"om_logo",
+ //"om_parametre",
+ //"om_sig_flux",
+ //"om_sig_map",
+ //"om_sousetat",
+ //"om_utilisateur",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_dashboard.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_dashboard.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_dashboard.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_dashboard*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tableaux de bord")." -> ".__("om_dashboard");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_dashboard
LEFT JOIN ".DB_PREFIXE."om_profil
@@ -27,25 +27,25 @@
ON om_dashboard.om_widget=om_widget.om_widget ";
// SELECT
$champAffiche = array(
- 'om_dashboard.om_dashboard as "'.__("om_dashboard").'"',
- 'om_profil.libelle as "'.__("om_profil").'"',
- 'om_dashboard.bloc as "'.__("bloc").'"',
- 'om_dashboard.position as "'.__("position").'"',
- 'om_widget.libelle as "'.__("om_widget").'"',
- );
+ "om_dashboard.om_dashboard as \"".__("om_dashboard")."\"",
+ "om_profil.libelle as \"".__("om_profil")."\"",
+ "om_dashboard.bloc as \"".__("bloc")."\"",
+ "om_dashboard.position as \"".__("position")."\"",
+ "om_widget.libelle as \"".__("om_widget")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_dashboard.om_dashboard as "'.__("om_dashboard").'"',
- 'om_profil.libelle as "'.__("om_profil").'"',
- 'om_dashboard.bloc as "'.__("bloc").'"',
- 'om_dashboard.position as "'.__("position").'"',
- 'om_widget.libelle as "'.__("om_widget").'"',
- );
-$tri="ORDER BY om_profil.libelle ASC NULLS LAST";
-$edition="om_dashboard";
+ "om_dashboard.om_dashboard as \"".__("om_dashboard")."\"",
+ "om_profil.libelle as \"".__("om_profil")."\"",
+ "om_dashboard.bloc as \"".__("bloc")."\"",
+ "om_dashboard.position as \"".__("position")."\"",
+ "om_widget.libelle as \"".__("om_widget")."\"",
+);
+$tri = "ORDER BY om_profil.libelle ASC NULLS LAST";
+$edition = "om_dashboard";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_droit.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_droit.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_droit.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_droit*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("gestion des utilisateurs")." -> ".__("om_droit");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_droit
LEFT JOIN ".DB_PREFIXE."om_profil
@@ -25,21 +25,21 @@
ON om_droit.om_profil=om_profil.om_profil ";
// SELECT
$champAffiche = array(
- 'om_droit.om_droit as "'.__("om_droit").'"',
- 'om_droit.libelle as "'.__("libelle").'"',
- 'om_profil.libelle as "'.__("om_profil").'"',
- );
+ "om_droit.om_droit as \"".__("om_droit")."\"",
+ "om_droit.libelle as \"".__("libelle")."\"",
+ "om_profil.libelle as \"".__("om_profil")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_droit.om_droit as "'.__("om_droit").'"',
- 'om_droit.libelle as "'.__("libelle").'"',
- 'om_profil.libelle as "'.__("om_profil").'"',
- );
-$tri="ORDER BY om_droit.libelle ASC NULLS LAST";
-$edition="om_droit";
+ "om_droit.om_droit as \"".__("om_droit")."\"",
+ "om_droit.libelle as \"".__("libelle")."\"",
+ "om_profil.libelle as \"".__("om_profil")."\"",
+);
+$tri = "ORDER BY om_droit.libelle ASC NULLS LAST";
+$edition = "om_droit";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_etat.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_etat.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_etat.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_etat*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("éditions")." -> ".__("om_etat");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_etat
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -27,73 +27,73 @@
ON om_etat.om_sql=om_requete.om_requete ";
// SELECT
$champAffiche = array(
- 'om_etat.om_etat as "'.__("om_etat").'"',
- 'om_etat.id as "'.__("id").'"',
- 'om_etat.libelle as "'.__("libelle").'"',
+ "om_etat.om_etat as \"".__("om_etat")."\"",
+ "om_etat.id as \"".__("id")."\"",
+ "om_etat.libelle as \"".__("libelle")."\"",
"case om_etat.actif when 't' then 'Oui' else 'Non' end as \"".__("actif")."\"",
- 'om_etat.orientation as "'.__("orientation").'"',
- 'om_etat.format as "'.__("format").'"',
- 'om_etat.logo as "'.__("logo").'"',
- 'om_etat.logoleft as "'.__("logoleft").'"',
- 'om_etat.logotop as "'.__("logotop").'"',
- 'om_etat.titreleft as "'.__("titreleft").'"',
- 'om_etat.titretop as "'.__("titretop").'"',
- 'om_etat.titrelargeur as "'.__("titrelargeur").'"',
- 'om_etat.titrehauteur as "'.__("titrehauteur").'"',
- 'om_etat.titrebordure as "'.__("titrebordure").'"',
- 'om_requete.libelle as "'.__("om_sql").'"',
- 'om_etat.se_font as "'.__("se_font").'"',
- 'om_etat.se_couleurtexte as "'.__("se_couleurtexte").'"',
- 'om_etat.margeleft as "'.__("margeleft").'"',
- 'om_etat.margetop as "'.__("margetop").'"',
- 'om_etat.margeright as "'.__("margeright").'"',
- 'om_etat.margebottom as "'.__("margebottom").'"',
- 'om_etat.header_offset as "'.__("header_offset").'"',
- 'om_etat.footer_offset as "'.__("footer_offset").'"',
- );
+ "om_etat.orientation as \"".__("orientation")."\"",
+ "om_etat.format as \"".__("format")."\"",
+ "om_etat.logo as \"".__("logo")."\"",
+ "om_etat.logoleft as \"".__("logoleft")."\"",
+ "om_etat.logotop as \"".__("logotop")."\"",
+ "om_etat.titreleft as \"".__("titreleft")."\"",
+ "om_etat.titretop as \"".__("titretop")."\"",
+ "om_etat.titrelargeur as \"".__("titrelargeur")."\"",
+ "om_etat.titrehauteur as \"".__("titrehauteur")."\"",
+ "om_etat.titrebordure as \"".__("titrebordure")."\"",
+ "om_requete.libelle as \"".__("om_sql")."\"",
+ "om_etat.se_font as \"".__("se_font")."\"",
+ "om_etat.se_couleurtexte as \"".__("se_couleurtexte")."\"",
+ "om_etat.margeleft as \"".__("margeleft")."\"",
+ "om_etat.margetop as \"".__("margetop")."\"",
+ "om_etat.margeright as \"".__("margeright")."\"",
+ "om_etat.margebottom as \"".__("margebottom")."\"",
+ "om_etat.header_offset as \"".__("header_offset")."\"",
+ "om_etat.footer_offset as \"".__("footer_offset")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_etat.om_collectivite as "'.__("om_collectivite").'"',
- 'om_etat.titre_om_htmletat as "'.__("titre_om_htmletat").'"',
- 'om_etat.corps_om_htmletatex as "'.__("corps_om_htmletatex").'"',
- 'om_etat.header_om_htmletat as "'.__("header_om_htmletat").'"',
- 'om_etat.footer_om_htmletat as "'.__("footer_om_htmletat").'"',
- );
+ "om_etat.om_collectivite as \"".__("om_collectivite")."\"",
+ "om_etat.titre_om_htmletat as \"".__("titre_om_htmletat")."\"",
+ "om_etat.corps_om_htmletatex as \"".__("corps_om_htmletatex")."\"",
+ "om_etat.header_om_htmletat as \"".__("header_om_htmletat")."\"",
+ "om_etat.footer_om_htmletat as \"".__("footer_om_htmletat")."\"",
+);
//
$champRecherche = array(
- 'om_etat.om_etat as "'.__("om_etat").'"',
- 'om_etat.id as "'.__("id").'"',
- 'om_etat.libelle as "'.__("libelle").'"',
- 'om_etat.orientation as "'.__("orientation").'"',
- 'om_etat.format as "'.__("format").'"',
- 'om_etat.logo as "'.__("logo").'"',
- 'om_etat.logoleft as "'.__("logoleft").'"',
- 'om_etat.logotop as "'.__("logotop").'"',
- 'om_etat.titreleft as "'.__("titreleft").'"',
- 'om_etat.titretop as "'.__("titretop").'"',
- 'om_etat.titrelargeur as "'.__("titrelargeur").'"',
- 'om_etat.titrehauteur as "'.__("titrehauteur").'"',
- 'om_etat.titrebordure as "'.__("titrebordure").'"',
- 'om_requete.libelle as "'.__("om_sql").'"',
- 'om_etat.se_font as "'.__("se_font").'"',
- 'om_etat.se_couleurtexte as "'.__("se_couleurtexte").'"',
- 'om_etat.margeleft as "'.__("margeleft").'"',
- 'om_etat.margetop as "'.__("margetop").'"',
- 'om_etat.margeright as "'.__("margeright").'"',
- 'om_etat.margebottom as "'.__("margebottom").'"',
- 'om_etat.header_offset as "'.__("header_offset").'"',
- 'om_etat.footer_offset as "'.__("footer_offset").'"',
- );
+ "om_etat.om_etat as \"".__("om_etat")."\"",
+ "om_etat.id as \"".__("id")."\"",
+ "om_etat.libelle as \"".__("libelle")."\"",
+ "om_etat.orientation as \"".__("orientation")."\"",
+ "om_etat.format as \"".__("format")."\"",
+ "om_etat.logo as \"".__("logo")."\"",
+ "om_etat.logoleft as \"".__("logoleft")."\"",
+ "om_etat.logotop as \"".__("logotop")."\"",
+ "om_etat.titreleft as \"".__("titreleft")."\"",
+ "om_etat.titretop as \"".__("titretop")."\"",
+ "om_etat.titrelargeur as \"".__("titrelargeur")."\"",
+ "om_etat.titrehauteur as \"".__("titrehauteur")."\"",
+ "om_etat.titrebordure as \"".__("titrebordure")."\"",
+ "om_requete.libelle as \"".__("om_sql")."\"",
+ "om_etat.se_font as \"".__("se_font")."\"",
+ "om_etat.se_couleurtexte as \"".__("se_couleurtexte")."\"",
+ "om_etat.margeleft as \"".__("margeleft")."\"",
+ "om_etat.margetop as \"".__("margetop")."\"",
+ "om_etat.margeright as \"".__("margeright")."\"",
+ "om_etat.margebottom as \"".__("margebottom")."\"",
+ "om_etat.header_offset as \"".__("header_offset")."\"",
+ "om_etat.footer_offset as \"".__("footer_offset")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_etat.libelle ASC NULLS LAST";
-$edition="om_etat";
+$tri = "ORDER BY om_etat.libelle ASC NULLS LAST";
+$edition = "om_etat";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_lettretype.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_lettretype.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_lettretype.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_lettretype*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("éditions")." -> ".__("om_lettretype");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_lettretype
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -27,73 +27,73 @@
ON om_lettretype.om_sql=om_requete.om_requete ";
// SELECT
$champAffiche = array(
- 'om_lettretype.om_lettretype as "'.__("om_lettretype").'"',
- 'om_lettretype.id as "'.__("id").'"',
- 'om_lettretype.libelle as "'.__("libelle").'"',
+ "om_lettretype.om_lettretype as \"".__("om_lettretype")."\"",
+ "om_lettretype.id as \"".__("id")."\"",
+ "om_lettretype.libelle as \"".__("libelle")."\"",
"case om_lettretype.actif when 't' then 'Oui' else 'Non' end as \"".__("actif")."\"",
- 'om_lettretype.orientation as "'.__("orientation").'"',
- 'om_lettretype.format as "'.__("format").'"',
- 'om_lettretype.logo as "'.__("logo").'"',
- 'om_lettretype.logoleft as "'.__("logoleft").'"',
- 'om_lettretype.logotop as "'.__("logotop").'"',
- 'om_lettretype.titreleft as "'.__("titreleft").'"',
- 'om_lettretype.titretop as "'.__("titretop").'"',
- 'om_lettretype.titrelargeur as "'.__("titrelargeur").'"',
- 'om_lettretype.titrehauteur as "'.__("titrehauteur").'"',
- 'om_lettretype.titrebordure as "'.__("titrebordure").'"',
- 'om_requete.libelle as "'.__("om_sql").'"',
- 'om_lettretype.margeleft as "'.__("margeleft").'"',
- 'om_lettretype.margetop as "'.__("margetop").'"',
- 'om_lettretype.margeright as "'.__("margeright").'"',
- 'om_lettretype.margebottom as "'.__("margebottom").'"',
- 'om_lettretype.se_font as "'.__("se_font").'"',
- 'om_lettretype.se_couleurtexte as "'.__("se_couleurtexte").'"',
- 'om_lettretype.header_offset as "'.__("header_offset").'"',
- 'om_lettretype.footer_offset as "'.__("footer_offset").'"',
- );
+ "om_lettretype.orientation as \"".__("orientation")."\"",
+ "om_lettretype.format as \"".__("format")."\"",
+ "om_lettretype.logo as \"".__("logo")."\"",
+ "om_lettretype.logoleft as \"".__("logoleft")."\"",
+ "om_lettretype.logotop as \"".__("logotop")."\"",
+ "om_lettretype.titreleft as \"".__("titreleft")."\"",
+ "om_lettretype.titretop as \"".__("titretop")."\"",
+ "om_lettretype.titrelargeur as \"".__("titrelargeur")."\"",
+ "om_lettretype.titrehauteur as \"".__("titrehauteur")."\"",
+ "om_lettretype.titrebordure as \"".__("titrebordure")."\"",
+ "om_requete.libelle as \"".__("om_sql")."\"",
+ "om_lettretype.margeleft as \"".__("margeleft")."\"",
+ "om_lettretype.margetop as \"".__("margetop")."\"",
+ "om_lettretype.margeright as \"".__("margeright")."\"",
+ "om_lettretype.margebottom as \"".__("margebottom")."\"",
+ "om_lettretype.se_font as \"".__("se_font")."\"",
+ "om_lettretype.se_couleurtexte as \"".__("se_couleurtexte")."\"",
+ "om_lettretype.header_offset as \"".__("header_offset")."\"",
+ "om_lettretype.footer_offset as \"".__("footer_offset")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_lettretype.om_collectivite as "'.__("om_collectivite").'"',
- 'om_lettretype.titre_om_htmletat as "'.__("titre_om_htmletat").'"',
- 'om_lettretype.corps_om_htmletatex as "'.__("corps_om_htmletatex").'"',
- 'om_lettretype.header_om_htmletat as "'.__("header_om_htmletat").'"',
- 'om_lettretype.footer_om_htmletat as "'.__("footer_om_htmletat").'"',
- );
+ "om_lettretype.om_collectivite as \"".__("om_collectivite")."\"",
+ "om_lettretype.titre_om_htmletat as \"".__("titre_om_htmletat")."\"",
+ "om_lettretype.corps_om_htmletatex as \"".__("corps_om_htmletatex")."\"",
+ "om_lettretype.header_om_htmletat as \"".__("header_om_htmletat")."\"",
+ "om_lettretype.footer_om_htmletat as \"".__("footer_om_htmletat")."\"",
+);
//
$champRecherche = array(
- 'om_lettretype.om_lettretype as "'.__("om_lettretype").'"',
- 'om_lettretype.id as "'.__("id").'"',
- 'om_lettretype.libelle as "'.__("libelle").'"',
- 'om_lettretype.orientation as "'.__("orientation").'"',
- 'om_lettretype.format as "'.__("format").'"',
- 'om_lettretype.logo as "'.__("logo").'"',
- 'om_lettretype.logoleft as "'.__("logoleft").'"',
- 'om_lettretype.logotop as "'.__("logotop").'"',
- 'om_lettretype.titreleft as "'.__("titreleft").'"',
- 'om_lettretype.titretop as "'.__("titretop").'"',
- 'om_lettretype.titrelargeur as "'.__("titrelargeur").'"',
- 'om_lettretype.titrehauteur as "'.__("titrehauteur").'"',
- 'om_lettretype.titrebordure as "'.__("titrebordure").'"',
- 'om_requete.libelle as "'.__("om_sql").'"',
- 'om_lettretype.margeleft as "'.__("margeleft").'"',
- 'om_lettretype.margetop as "'.__("margetop").'"',
- 'om_lettretype.margeright as "'.__("margeright").'"',
- 'om_lettretype.margebottom as "'.__("margebottom").'"',
- 'om_lettretype.se_font as "'.__("se_font").'"',
- 'om_lettretype.se_couleurtexte as "'.__("se_couleurtexte").'"',
- 'om_lettretype.header_offset as "'.__("header_offset").'"',
- 'om_lettretype.footer_offset as "'.__("footer_offset").'"',
- );
+ "om_lettretype.om_lettretype as \"".__("om_lettretype")."\"",
+ "om_lettretype.id as \"".__("id")."\"",
+ "om_lettretype.libelle as \"".__("libelle")."\"",
+ "om_lettretype.orientation as \"".__("orientation")."\"",
+ "om_lettretype.format as \"".__("format")."\"",
+ "om_lettretype.logo as \"".__("logo")."\"",
+ "om_lettretype.logoleft as \"".__("logoleft")."\"",
+ "om_lettretype.logotop as \"".__("logotop")."\"",
+ "om_lettretype.titreleft as \"".__("titreleft")."\"",
+ "om_lettretype.titretop as \"".__("titretop")."\"",
+ "om_lettretype.titrelargeur as \"".__("titrelargeur")."\"",
+ "om_lettretype.titrehauteur as \"".__("titrehauteur")."\"",
+ "om_lettretype.titrebordure as \"".__("titrebordure")."\"",
+ "om_requete.libelle as \"".__("om_sql")."\"",
+ "om_lettretype.margeleft as \"".__("margeleft")."\"",
+ "om_lettretype.margetop as \"".__("margetop")."\"",
+ "om_lettretype.margeright as \"".__("margeright")."\"",
+ "om_lettretype.margebottom as \"".__("margebottom")."\"",
+ "om_lettretype.se_font as \"".__("se_font")."\"",
+ "om_lettretype.se_couleurtexte as \"".__("se_couleurtexte")."\"",
+ "om_lettretype.header_offset as \"".__("header_offset")."\"",
+ "om_lettretype.footer_offset as \"".__("footer_offset")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_lettretype.libelle ASC NULLS LAST";
-$edition="om_lettretype";
+$tri = "ORDER BY om_lettretype.libelle ASC NULLS LAST";
+$edition = "om_lettretype";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_logo.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_logo.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_logo.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_logo*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("éditions")." -> ".__("om_logo");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_logo
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -25,37 +25,37 @@
ON om_logo.om_collectivite=om_collectivite.om_collectivite ";
// SELECT
$champAffiche = array(
- 'om_logo.om_logo as "'.__("om_logo").'"',
- 'om_logo.id as "'.__("id").'"',
- 'om_logo.libelle as "'.__("libelle").'"',
- 'om_logo.description as "'.__("description").'"',
- 'om_logo.fichier as "'.__("fichier").'"',
- 'om_logo.resolution as "'.__("resolution").'"',
+ "om_logo.om_logo as \"".__("om_logo")."\"",
+ "om_logo.id as \"".__("id")."\"",
+ "om_logo.libelle as \"".__("libelle")."\"",
+ "om_logo.description as \"".__("description")."\"",
+ "om_logo.fichier as \"".__("fichier")."\"",
+ "om_logo.resolution as \"".__("resolution")."\"",
"case om_logo.actif when 't' then 'Oui' else 'Non' end as \"".__("actif")."\"",
- );
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_logo.om_collectivite as "'.__("om_collectivite").'"',
- );
+ "om_logo.om_collectivite as \"".__("om_collectivite")."\"",
+);
//
$champRecherche = array(
- 'om_logo.om_logo as "'.__("om_logo").'"',
- 'om_logo.id as "'.__("id").'"',
- 'om_logo.libelle as "'.__("libelle").'"',
- 'om_logo.description as "'.__("description").'"',
- 'om_logo.fichier as "'.__("fichier").'"',
- 'om_logo.resolution as "'.__("resolution").'"',
- );
+ "om_logo.om_logo as \"".__("om_logo")."\"",
+ "om_logo.id as \"".__("id")."\"",
+ "om_logo.libelle as \"".__("libelle")."\"",
+ "om_logo.description as \"".__("description")."\"",
+ "om_logo.fichier as \"".__("fichier")."\"",
+ "om_logo.resolution as \"".__("resolution")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_logo.libelle ASC NULLS LAST";
-$edition="om_logo";
+$tri = "ORDER BY om_logo.libelle ASC NULLS LAST";
+$edition = "om_logo";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_parametre.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_parametre.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_parametre.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_parametre*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("général")." -> ".__("om_parametre");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_parametre
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -25,29 +25,29 @@
ON om_parametre.om_collectivite=om_collectivite.om_collectivite ";
// SELECT
$champAffiche = array(
- 'om_parametre.om_parametre as "'.__("om_parametre").'"',
- 'om_parametre.libelle as "'.__("libelle").'"',
- );
+ "om_parametre.om_parametre as \"".__("om_parametre")."\"",
+ "om_parametre.libelle as \"".__("libelle")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_parametre.valeur as "'.__("valeur").'"',
- 'om_parametre.om_collectivite as "'.__("om_collectivite").'"',
- );
+ "om_parametre.valeur as \"".__("valeur")."\"",
+ "om_parametre.om_collectivite as \"".__("om_collectivite")."\"",
+);
//
$champRecherche = array(
- 'om_parametre.om_parametre as "'.__("om_parametre").'"',
- 'om_parametre.libelle as "'.__("libelle").'"',
- );
+ "om_parametre.om_parametre as \"".__("om_parametre")."\"",
+ "om_parametre.libelle as \"".__("libelle")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_parametre.libelle ASC NULLS LAST";
-$edition="om_parametre";
+$tri = "ORDER BY om_parametre.libelle ASC NULLS LAST";
+$edition = "om_parametre";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_permission.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_permission.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_permission.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,43 +1,43 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_permission*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("gestion des utilisateurs")." -> ".__("om_permission");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_permission";
// SELECT
$champAffiche = array(
- 'om_permission.om_permission as "'.__("om_permission").'"',
- 'om_permission.libelle as "'.__("libelle").'"',
- 'om_permission.type as "'.__("type").'"',
- );
+ "om_permission.om_permission as \"".__("om_permission")."\"",
+ "om_permission.libelle as \"".__("libelle")."\"",
+ "om_permission.type as \"".__("type")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_permission.om_permission as "'.__("om_permission").'"',
- 'om_permission.libelle as "'.__("libelle").'"',
- 'om_permission.type as "'.__("type").'"',
- );
-$tri="ORDER BY om_permission.libelle ASC NULLS LAST";
-$edition="om_permission";
+ "om_permission.om_permission as \"".__("om_permission")."\"",
+ "om_permission.libelle as \"".__("libelle")."\"",
+ "om_permission.type as \"".__("type")."\"",
+);
+$tri = "ORDER BY om_permission.libelle ASC NULLS LAST";
+$edition = "om_permission";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_profil.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_profil.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_profil.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,43 +1,43 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_profil*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("gestion des utilisateurs")." -> ".__("om_profil");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_profil";
// SELECT
$champAffiche = array(
- 'om_profil.om_profil as "'.__("om_profil").'"',
- 'om_profil.libelle as "'.__("libelle").'"',
- 'om_profil.hierarchie as "'.__("hierarchie").'"',
- );
+ "om_profil.om_profil as \"".__("om_profil")."\"",
+ "om_profil.libelle as \"".__("libelle")."\"",
+ "om_profil.hierarchie as \"".__("hierarchie")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_profil.om_profil as "'.__("om_profil").'"',
- 'om_profil.libelle as "'.__("libelle").'"',
- 'om_profil.hierarchie as "'.__("hierarchie").'"',
- );
-$tri="ORDER BY om_profil.libelle ASC NULLS LAST";
-$edition="om_profil";
+ "om_profil.om_profil as \"".__("om_profil")."\"",
+ "om_profil.libelle as \"".__("libelle")."\"",
+ "om_profil.hierarchie as \"".__("hierarchie")."\"",
+);
+$tri = "ORDER BY om_profil.libelle ASC NULLS LAST";
+$edition = "om_profil";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -48,8 +48,7 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'om_dashboard',
- //'om_droit',
- //'om_utilisateur',
+ //"om_dashboard",
+ //"om_droit",
+ //"om_utilisateur",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_requete.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_requete.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_requete.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,53 +1,53 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_requete*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("éditions")." -> ".__("om_requete");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_requete";
// SELECT
$champAffiche = array(
- 'om_requete.om_requete as "'.__("om_requete").'"',
- 'om_requete.code as "'.__("code").'"',
- 'om_requete.libelle as "'.__("libelle").'"',
- 'om_requete.description as "'.__("description").'"',
- 'om_requete.type as "'.__("type").'"',
- 'om_requete.classe as "'.__("classe").'"',
- 'om_requete.methode as "'.__("methode").'"',
- );
+ "om_requete.om_requete as \"".__("om_requete")."\"",
+ "om_requete.code as \"".__("code")."\"",
+ "om_requete.libelle as \"".__("libelle")."\"",
+ "om_requete.description as \"".__("description")."\"",
+ "om_requete.type as \"".__("type")."\"",
+ "om_requete.classe as \"".__("classe")."\"",
+ "om_requete.methode as \"".__("methode")."\"",
+);
//
$champNonAffiche = array(
- 'om_requete.requete as "'.__("requete").'"',
- 'om_requete.merge_fields as "'.__("merge_fields").'"',
- );
+ "om_requete.requete as \"".__("requete")."\"",
+ "om_requete.merge_fields as \"".__("merge_fields")."\"",
+);
//
$champRecherche = array(
- 'om_requete.om_requete as "'.__("om_requete").'"',
- 'om_requete.code as "'.__("code").'"',
- 'om_requete.libelle as "'.__("libelle").'"',
- 'om_requete.description as "'.__("description").'"',
- 'om_requete.type as "'.__("type").'"',
- 'om_requete.classe as "'.__("classe").'"',
- 'om_requete.methode as "'.__("methode").'"',
- );
-$tri="ORDER BY om_requete.libelle ASC NULLS LAST";
-$edition="om_requete";
+ "om_requete.om_requete as \"".__("om_requete")."\"",
+ "om_requete.code as \"".__("code")."\"",
+ "om_requete.libelle as \"".__("libelle")."\"",
+ "om_requete.description as \"".__("description")."\"",
+ "om_requete.type as \"".__("type")."\"",
+ "om_requete.classe as \"".__("classe")."\"",
+ "om_requete.methode as \"".__("methode")."\"",
+);
+$tri = "ORDER BY om_requete.libelle ASC NULLS LAST";
+$edition = "om_requete";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -58,7 +58,6 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'om_etat',
- //'om_lettretype',
+ //"om_etat",
+ //"om_lettretype",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_extent.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_extent.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_extent.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,44 +1,44 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_sig_extent*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("SIG")." -> ".__("étendue");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_sig_extent";
// SELECT
$champAffiche = array(
- 'om_sig_extent.om_sig_extent as "'.__("om_sig_extent").'"',
- 'om_sig_extent.nom as "'.__("nom").'"',
- 'om_sig_extent.extent as "'.__("extent").'"',
+ "om_sig_extent.om_sig_extent as \"".__("om_sig_extent")."\"",
+ "om_sig_extent.nom as \"".__("nom")."\"",
+ "om_sig_extent.extent as \"".__("extent")."\"",
"case om_sig_extent.valide when 't' then 'Oui' else 'Non' end as \"".__("valide")."\"",
- );
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_sig_extent.om_sig_extent as "'.__("om_sig_extent").'"',
- 'om_sig_extent.nom as "'.__("nom").'"',
- 'om_sig_extent.extent as "'.__("extent").'"',
- );
-$tri="ORDER BY om_sig_extent.nom ASC NULLS LAST";
-$edition="om_sig_extent";
+ "om_sig_extent.om_sig_extent as \"".__("om_sig_extent")."\"",
+ "om_sig_extent.nom as \"".__("nom")."\"",
+ "om_sig_extent.extent as \"".__("extent")."\"",
+);
+$tri = "ORDER BY om_sig_extent.nom ASC NULLS LAST";
+$edition = "om_sig_extent";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -49,6 +49,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- 'om_sig_map',
+ "om_sig_map",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_flux.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_flux.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_flux.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_sig_flux*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("SIG")." -> ".__("flux");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_sig_flux
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -25,42 +25,42 @@
ON om_sig_flux.om_collectivite=om_collectivite.om_collectivite ";
// SELECT
$champAffiche = array(
- 'om_sig_flux.om_sig_flux as "'.__("om_sig_flux").'"',
- 'om_sig_flux.libelle as "'.__("libelle").'"',
- 'om_sig_flux.id as "'.__("id").'"',
- 'om_sig_flux.attribution as "'.__("attribution").'"',
- 'om_sig_flux.chemin as "'.__("chemin").'"',
- 'om_sig_flux.couches as "'.__("couches").'"',
- 'om_sig_flux.cache_type as "'.__("cache_type").'"',
- 'om_sig_flux.cache_gfi_chemin as "'.__("cache_gfi_chemin").'"',
- 'om_sig_flux.cache_gfi_couches as "'.__("cache_gfi_couches").'"',
- );
+ "om_sig_flux.om_sig_flux as \"".__("om_sig_flux")."\"",
+ "om_sig_flux.libelle as \"".__("libelle")."\"",
+ "om_sig_flux.id as \"".__("id")."\"",
+ "om_sig_flux.attribution as \"".__("attribution")."\"",
+ "om_sig_flux.chemin as \"".__("chemin")."\"",
+ "om_sig_flux.couches as \"".__("couches")."\"",
+ "om_sig_flux.cache_type as \"".__("cache_type")."\"",
+ "om_sig_flux.cache_gfi_chemin as \"".__("cache_gfi_chemin")."\"",
+ "om_sig_flux.cache_gfi_couches as \"".__("cache_gfi_couches")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_sig_flux.om_collectivite as "'.__("om_collectivite").'"',
- );
+ "om_sig_flux.om_collectivite as \"".__("om_collectivite")."\"",
+);
//
$champRecherche = array(
- 'om_sig_flux.om_sig_flux as "'.__("om_sig_flux").'"',
- 'om_sig_flux.libelle as "'.__("libelle").'"',
- 'om_sig_flux.id as "'.__("id").'"',
- 'om_sig_flux.attribution as "'.__("attribution").'"',
- 'om_sig_flux.chemin as "'.__("chemin").'"',
- 'om_sig_flux.couches as "'.__("couches").'"',
- 'om_sig_flux.cache_type as "'.__("cache_type").'"',
- 'om_sig_flux.cache_gfi_chemin as "'.__("cache_gfi_chemin").'"',
- 'om_sig_flux.cache_gfi_couches as "'.__("cache_gfi_couches").'"',
- );
+ "om_sig_flux.om_sig_flux as \"".__("om_sig_flux")."\"",
+ "om_sig_flux.libelle as \"".__("libelle")."\"",
+ "om_sig_flux.id as \"".__("id")."\"",
+ "om_sig_flux.attribution as \"".__("attribution")."\"",
+ "om_sig_flux.chemin as \"".__("chemin")."\"",
+ "om_sig_flux.couches as \"".__("couches")."\"",
+ "om_sig_flux.cache_type as \"".__("cache_type")."\"",
+ "om_sig_flux.cache_gfi_chemin as \"".__("cache_gfi_chemin")."\"",
+ "om_sig_flux.cache_gfi_couches as \"".__("cache_gfi_couches")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_sig_flux.libelle ASC NULLS LAST";
-$edition="om_sig_flux";
+$tri = "ORDER BY om_sig_flux.libelle ASC NULLS LAST";
+$edition = "om_sig_flux";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -91,6 +91,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- 'om_sig_map_flux',
+ "om_sig_map_flux",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_sig_map*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("SIG")." -> ".__("carte");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_sig_map
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -29,58 +29,58 @@
ON om_sig_map.source_flux=om_sig_map.om_sig_map ";
// SELECT
$champAffiche = array(
- 'om_sig_map.om_sig_map as "'.__("om_sig_map").'"',
- 'om_sig_map.id as "'.__("id").'"',
- 'om_sig_map.libelle as "'.__("libelle").'"',
+ "om_sig_map.om_sig_map as \"".__("om_sig_map")."\"",
+ "om_sig_map.id as \"".__("id")."\"",
+ "om_sig_map.libelle as \"".__("libelle")."\"",
"case om_sig_map.actif when 't' then 'Oui' else 'Non' end as \"".__("actif")."\"",
- 'om_sig_map.zoom as "'.__("zoom").'"',
+ "om_sig_map.zoom as \"".__("zoom")."\"",
"case om_sig_map.fond_osm when 't' then 'Oui' else 'Non' end as \"".__("fond_osm")."\"",
"case om_sig_map.fond_bing when 't' then 'Oui' else 'Non' end as \"".__("fond_bing")."\"",
"case om_sig_map.fond_sat when 't' then 'Oui' else 'Non' end as \"".__("fond_sat")."\"",
"case om_sig_map.layer_info when 't' then 'Oui' else 'Non' end as \"".__("layer_info")."\"",
- 'om_sig_map.projection_externe as "'.__("projection_externe").'"',
- 'om_sig_map.retour as "'.__("retour").'"',
+ "om_sig_map.projection_externe as \"".__("projection_externe")."\"",
+ "om_sig_map.retour as \"".__("retour")."\"",
"case om_sig_map.util_idx when 't' then 'Oui' else 'Non' end as \"".__("util_idx")."\"",
"case om_sig_map.util_reqmo when 't' then 'Oui' else 'Non' end as \"".__("util_reqmo")."\"",
"case om_sig_map.util_recherche when 't' then 'Oui' else 'Non' end as \"".__("util_recherche")."\"",
- 'om_sig_map.libelle as "'.__("source_flux").'"',
- 'om_sig_map.fond_default as "'.__("fond_default").'"',
- 'om_sig_extent.nom as "'.__("om_sig_extent").'"',
+ "om_sig_map.libelle as \"".__("source_flux")."\"",
+ "om_sig_map.fond_default as \"".__("fond_default")."\"",
+ "om_sig_extent.nom as \"".__("om_sig_extent")."\"",
"case om_sig_map.restrict_extent when 't' then 'Oui' else 'Non' end as \"".__("restrict_extent")."\"",
- 'om_sig_map.sld_marqueur as "'.__("sld_marqueur").'"',
- 'om_sig_map.sld_data as "'.__("sld_data").'"',
- 'om_sig_map.point_centrage as "'.__("point_centrage").'"',
- );
+ "om_sig_map.sld_marqueur as \"".__("sld_marqueur")."\"",
+ "om_sig_map.sld_data as \"".__("sld_data")."\"",
+ "om_sig_map.point_centrage as \"".__("point_centrage")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_sig_map.om_collectivite as "'.__("om_collectivite").'"',
- 'om_sig_map.url as "'.__("url").'"',
- 'om_sig_map.om_sql as "'.__("om_sql").'"',
- );
+ "om_sig_map.om_collectivite as \"".__("om_collectivite")."\"",
+ "om_sig_map.url as \"".__("url")."\"",
+ "om_sig_map.om_sql as \"".__("om_sql")."\"",
+);
//
$champRecherche = array(
- 'om_sig_map.om_sig_map as "'.__("om_sig_map").'"',
- 'om_sig_map.id as "'.__("id").'"',
- 'om_sig_map.libelle as "'.__("libelle").'"',
- 'om_sig_map.zoom as "'.__("zoom").'"',
- 'om_sig_map.projection_externe as "'.__("projection_externe").'"',
- 'om_sig_map.retour as "'.__("retour").'"',
- 'om_sig_map.libelle as "'.__("source_flux").'"',
- 'om_sig_map.fond_default as "'.__("fond_default").'"',
- 'om_sig_extent.nom as "'.__("om_sig_extent").'"',
- 'om_sig_map.sld_marqueur as "'.__("sld_marqueur").'"',
- 'om_sig_map.sld_data as "'.__("sld_data").'"',
- );
+ "om_sig_map.om_sig_map as \"".__("om_sig_map")."\"",
+ "om_sig_map.id as \"".__("id")."\"",
+ "om_sig_map.libelle as \"".__("libelle")."\"",
+ "om_sig_map.zoom as \"".__("zoom")."\"",
+ "om_sig_map.projection_externe as \"".__("projection_externe")."\"",
+ "om_sig_map.retour as \"".__("retour")."\"",
+ "om_sig_map.libelle as \"".__("source_flux")."\"",
+ "om_sig_map.fond_default as \"".__("fond_default")."\"",
+ "om_sig_extent.nom as \"".__("om_sig_extent")."\"",
+ "om_sig_map.sld_marqueur as \"".__("sld_marqueur")."\"",
+ "om_sig_map.sld_data as \"".__("sld_data")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_sig_map.libelle ASC NULLS LAST";
-$edition="om_sig_map";
+$tri = "ORDER BY om_sig_map.libelle ASC NULLS LAST";
+$edition = "om_sig_map";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -133,8 +133,7 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- 'om_sig_map',
- 'om_sig_map_comp',
- 'om_sig_map_flux',
+ "om_sig_map",
+ "om_sig_map_comp",
+ "om_sig_map_flux",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_comp.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_comp.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_comp.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_sig_map_comp*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("SIG")." -> ".__("géométrie");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_sig_map_comp
LEFT JOIN ".DB_PREFIXE."om_sig_map
@@ -25,35 +25,35 @@
ON om_sig_map_comp.om_sig_map=om_sig_map.om_sig_map ";
// SELECT
$champAffiche = array(
- 'om_sig_map_comp.om_sig_map_comp as "'.__("om_sig_map_comp").'"',
- 'om_sig_map.libelle as "'.__("om_sig_map").'"',
- 'om_sig_map_comp.libelle as "'.__("libelle").'"',
- 'om_sig_map_comp.ordre as "'.__("ordre").'"',
+ "om_sig_map_comp.om_sig_map_comp as \"".__("om_sig_map_comp")."\"",
+ "om_sig_map.libelle as \"".__("om_sig_map")."\"",
+ "om_sig_map_comp.libelle as \"".__("libelle")."\"",
+ "om_sig_map_comp.ordre as \"".__("ordre")."\"",
"case om_sig_map_comp.actif when 't' then 'Oui' else 'Non' end as \"".__("actif")."\"",
"case om_sig_map_comp.comp_maj when 't' then 'Oui' else 'Non' end as \"".__("comp_maj")."\"",
- 'om_sig_map_comp.type_geometrie as "'.__("type_geometrie").'"',
- 'om_sig_map_comp.comp_table_update as "'.__("comp_table_update").'"',
- 'om_sig_map_comp.comp_champ as "'.__("comp_champ").'"',
- 'om_sig_map_comp.comp_champ_idx as "'.__("comp_champ_idx").'"',
- 'om_sig_map_comp.obj_class as "'.__("obj_class").'"',
- );
+ "om_sig_map_comp.type_geometrie as \"".__("type_geometrie")."\"",
+ "om_sig_map_comp.comp_table_update as \"".__("comp_table_update")."\"",
+ "om_sig_map_comp.comp_champ as \"".__("comp_champ")."\"",
+ "om_sig_map_comp.comp_champ_idx as \"".__("comp_champ_idx")."\"",
+ "om_sig_map_comp.obj_class as \"".__("obj_class")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'om_sig_map_comp.om_sig_map_comp as "'.__("om_sig_map_comp").'"',
- 'om_sig_map.libelle as "'.__("om_sig_map").'"',
- 'om_sig_map_comp.libelle as "'.__("libelle").'"',
- 'om_sig_map_comp.ordre as "'.__("ordre").'"',
- 'om_sig_map_comp.type_geometrie as "'.__("type_geometrie").'"',
- 'om_sig_map_comp.comp_table_update as "'.__("comp_table_update").'"',
- 'om_sig_map_comp.comp_champ as "'.__("comp_champ").'"',
- 'om_sig_map_comp.comp_champ_idx as "'.__("comp_champ_idx").'"',
- 'om_sig_map_comp.obj_class as "'.__("obj_class").'"',
- );
-$tri="ORDER BY om_sig_map_comp.libelle ASC NULLS LAST";
-$edition="om_sig_map_comp";
+ "om_sig_map_comp.om_sig_map_comp as \"".__("om_sig_map_comp")."\"",
+ "om_sig_map.libelle as \"".__("om_sig_map")."\"",
+ "om_sig_map_comp.libelle as \"".__("libelle")."\"",
+ "om_sig_map_comp.ordre as \"".__("ordre")."\"",
+ "om_sig_map_comp.type_geometrie as \"".__("type_geometrie")."\"",
+ "om_sig_map_comp.comp_table_update as \"".__("comp_table_update")."\"",
+ "om_sig_map_comp.comp_champ as \"".__("comp_champ")."\"",
+ "om_sig_map_comp.comp_champ_idx as \"".__("comp_champ_idx")."\"",
+ "om_sig_map_comp.obj_class as \"".__("obj_class")."\"",
+);
+$tri = "ORDER BY om_sig_map_comp.libelle ASC NULLS LAST";
+$edition = "om_sig_map_comp";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_flux.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_flux.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sig_map_flux.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_sig_map_flux*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("SIG")." -> ".__("flux appliqué à une carte");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_sig_map_flux
LEFT JOIN ".DB_PREFIXE."om_sig_flux
@@ -27,43 +27,43 @@
ON om_sig_map_flux.om_sig_map=om_sig_map.om_sig_map ";
// SELECT
$champAffiche = array(
- 'om_sig_map_flux.om_sig_map_flux as "'.__("om_sig_map_flux").'"',
- 'om_sig_flux.libelle as "'.__("om_sig_flux").'"',
- 'om_sig_map.libelle as "'.__("om_sig_map").'"',
- 'om_sig_map_flux.ol_map as "'.__("ol_map").'"',
- 'om_sig_map_flux.ordre as "'.__("ordre").'"',
+ "om_sig_map_flux.om_sig_map_flux as \"".__("om_sig_map_flux")."\"",
+ "om_sig_flux.libelle as \"".__("om_sig_flux")."\"",
+ "om_sig_map.libelle as \"".__("om_sig_map")."\"",
+ "om_sig_map_flux.ol_map as \"".__("ol_map")."\"",
+ "om_sig_map_flux.ordre as \"".__("ordre")."\"",
"case om_sig_map_flux.visibility when 't' then 'Oui' else 'Non' end as \"".__("visibility")."\"",
"case om_sig_map_flux.panier when 't' then 'Oui' else 'Non' end as \"".__("panier")."\"",
- 'om_sig_map_flux.pa_nom as "'.__("pa_nom").'"',
- 'om_sig_map_flux.pa_layer as "'.__("pa_layer").'"',
- 'om_sig_map_flux.pa_attribut as "'.__("pa_attribut").'"',
- 'om_sig_map_flux.pa_encaps as "'.__("pa_encaps").'"',
- 'om_sig_map_flux.pa_type_geometrie as "'.__("pa_type_geometrie").'"',
+ "om_sig_map_flux.pa_nom as \"".__("pa_nom")."\"",
+ "om_sig_map_flux.pa_layer as \"".__("pa_layer")."\"",
+ "om_sig_map_flux.pa_attribut as \"".__("pa_attribut")."\"",
+ "om_sig_map_flux.pa_encaps as \"".__("pa_encaps")."\"",
+ "om_sig_map_flux.pa_type_geometrie as \"".__("pa_type_geometrie")."\"",
"case om_sig_map_flux.baselayer when 't' then 'Oui' else 'Non' end as \"".__("baselayer")."\"",
"case om_sig_map_flux.singletile when 't' then 'Oui' else 'Non' end as \"".__("singletile")."\"",
- 'om_sig_map_flux.maxzoomlevel as "'.__("maxzoomlevel").'"',
- );
+ "om_sig_map_flux.maxzoomlevel as \"".__("maxzoomlevel")."\"",
+);
//
$champNonAffiche = array(
- 'om_sig_map_flux.pa_sql as "'.__("pa_sql").'"',
- 'om_sig_map_flux.sql_filter as "'.__("sql_filter").'"',
- );
+ "om_sig_map_flux.pa_sql as \"".__("pa_sql")."\"",
+ "om_sig_map_flux.sql_filter as \"".__("sql_filter")."\"",
+);
//
$champRecherche = array(
- 'om_sig_map_flux.om_sig_map_flux as "'.__("om_sig_map_flux").'"',
- 'om_sig_flux.libelle as "'.__("om_sig_flux").'"',
- 'om_sig_map.libelle as "'.__("om_sig_map").'"',
- 'om_sig_map_flux.ol_map as "'.__("ol_map").'"',
- 'om_sig_map_flux.ordre as "'.__("ordre").'"',
- 'om_sig_map_flux.pa_nom as "'.__("pa_nom").'"',
- 'om_sig_map_flux.pa_layer as "'.__("pa_layer").'"',
- 'om_sig_map_flux.pa_attribut as "'.__("pa_attribut").'"',
- 'om_sig_map_flux.pa_encaps as "'.__("pa_encaps").'"',
- 'om_sig_map_flux.pa_type_geometrie as "'.__("pa_type_geometrie").'"',
- 'om_sig_map_flux.maxzoomlevel as "'.__("maxzoomlevel").'"',
- );
-$tri="ORDER BY om_sig_flux.libelle ASC NULLS LAST";
-$edition="om_sig_map_flux";
+ "om_sig_map_flux.om_sig_map_flux as \"".__("om_sig_map_flux")."\"",
+ "om_sig_flux.libelle as \"".__("om_sig_flux")."\"",
+ "om_sig_map.libelle as \"".__("om_sig_map")."\"",
+ "om_sig_map_flux.ol_map as \"".__("ol_map")."\"",
+ "om_sig_map_flux.ordre as \"".__("ordre")."\"",
+ "om_sig_map_flux.pa_nom as \"".__("pa_nom")."\"",
+ "om_sig_map_flux.pa_layer as \"".__("pa_layer")."\"",
+ "om_sig_map_flux.pa_attribut as \"".__("pa_attribut")."\"",
+ "om_sig_map_flux.pa_encaps as \"".__("pa_encaps")."\"",
+ "om_sig_map_flux.pa_type_geometrie as \"".__("pa_type_geometrie")."\"",
+ "om_sig_map_flux.maxzoomlevel as \"".__("maxzoomlevel")."\"",
+);
+$tri = "ORDER BY om_sig_flux.libelle ASC NULLS LAST";
+$edition = "om_sig_map_flux";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sousetat.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sousetat.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_sousetat.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_sousetat*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("éditions")." -> ".__("om_sousetat");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_sousetat
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -25,139 +25,139 @@
ON om_sousetat.om_collectivite=om_collectivite.om_collectivite ";
// SELECT
$champAffiche = array(
- 'om_sousetat.om_sousetat as "'.__("om_sousetat").'"',
- 'om_sousetat.id as "'.__("id").'"',
- 'om_sousetat.libelle as "'.__("libelle").'"',
+ "om_sousetat.om_sousetat as \"".__("om_sousetat")."\"",
+ "om_sousetat.id as \"".__("id")."\"",
+ "om_sousetat.libelle as \"".__("libelle")."\"",
"case om_sousetat.actif when 't' then 'Oui' else 'Non' end as \"".__("actif")."\"",
- 'om_sousetat.titrehauteur as "'.__("titrehauteur").'"',
- 'om_sousetat.titrefont as "'.__("titrefont").'"',
- 'om_sousetat.titreattribut as "'.__("titreattribut").'"',
- 'om_sousetat.titretaille as "'.__("titretaille").'"',
- 'om_sousetat.titrebordure as "'.__("titrebordure").'"',
- 'om_sousetat.titrealign as "'.__("titrealign").'"',
- 'om_sousetat.titrefond as "'.__("titrefond").'"',
- 'om_sousetat.titrefondcouleur as "'.__("titrefondcouleur").'"',
- 'om_sousetat.titretextecouleur as "'.__("titretextecouleur").'"',
- 'om_sousetat.intervalle_debut as "'.__("intervalle_debut").'"',
- 'om_sousetat.intervalle_fin as "'.__("intervalle_fin").'"',
- 'om_sousetat.entete_flag as "'.__("entete_flag").'"',
- 'om_sousetat.entete_fond as "'.__("entete_fond").'"',
- 'om_sousetat.entete_orientation as "'.__("entete_orientation").'"',
- 'om_sousetat.entete_hauteur as "'.__("entete_hauteur").'"',
- 'om_sousetat.entetecolone_bordure as "'.__("entetecolone_bordure").'"',
- 'om_sousetat.entetecolone_align as "'.__("entetecolone_align").'"',
- 'om_sousetat.entete_fondcouleur as "'.__("entete_fondcouleur").'"',
- 'om_sousetat.entete_textecouleur as "'.__("entete_textecouleur").'"',
- 'om_sousetat.tableau_largeur as "'.__("tableau_largeur").'"',
- 'om_sousetat.tableau_bordure as "'.__("tableau_bordure").'"',
- 'om_sousetat.tableau_fontaille as "'.__("tableau_fontaille").'"',
- 'om_sousetat.bordure_couleur as "'.__("bordure_couleur").'"',
- 'om_sousetat.se_fond1 as "'.__("se_fond1").'"',
- 'om_sousetat.se_fond2 as "'.__("se_fond2").'"',
- 'om_sousetat.cellule_fond as "'.__("cellule_fond").'"',
- 'om_sousetat.cellule_hauteur as "'.__("cellule_hauteur").'"',
- 'om_sousetat.cellule_largeur as "'.__("cellule_largeur").'"',
- 'om_sousetat.cellule_bordure_un as "'.__("cellule_bordure_un").'"',
- 'om_sousetat.cellule_bordure as "'.__("cellule_bordure").'"',
- 'om_sousetat.cellule_align as "'.__("cellule_align").'"',
- 'om_sousetat.cellule_fond_total as "'.__("cellule_fond_total").'"',
- 'om_sousetat.cellule_fontaille_total as "'.__("cellule_fontaille_total").'"',
- 'om_sousetat.cellule_hauteur_total as "'.__("cellule_hauteur_total").'"',
- 'om_sousetat.cellule_fondcouleur_total as "'.__("cellule_fondcouleur_total").'"',
- 'om_sousetat.cellule_bordure_total as "'.__("cellule_bordure_total").'"',
- 'om_sousetat.cellule_align_total as "'.__("cellule_align_total").'"',
- 'om_sousetat.cellule_fond_moyenne as "'.__("cellule_fond_moyenne").'"',
- 'om_sousetat.cellule_fontaille_moyenne as "'.__("cellule_fontaille_moyenne").'"',
- 'om_sousetat.cellule_hauteur_moyenne as "'.__("cellule_hauteur_moyenne").'"',
- 'om_sousetat.cellule_fondcouleur_moyenne as "'.__("cellule_fondcouleur_moyenne").'"',
- 'om_sousetat.cellule_bordure_moyenne as "'.__("cellule_bordure_moyenne").'"',
- 'om_sousetat.cellule_align_moyenne as "'.__("cellule_align_moyenne").'"',
- 'om_sousetat.cellule_fond_nbr as "'.__("cellule_fond_nbr").'"',
- 'om_sousetat.cellule_fontaille_nbr as "'.__("cellule_fontaille_nbr").'"',
- 'om_sousetat.cellule_hauteur_nbr as "'.__("cellule_hauteur_nbr").'"',
- 'om_sousetat.cellule_fondcouleur_nbr as "'.__("cellule_fondcouleur_nbr").'"',
- 'om_sousetat.cellule_bordure_nbr as "'.__("cellule_bordure_nbr").'"',
- 'om_sousetat.cellule_align_nbr as "'.__("cellule_align_nbr").'"',
- 'om_sousetat.cellule_numerique as "'.__("cellule_numerique").'"',
- 'om_sousetat.cellule_total as "'.__("cellule_total").'"',
- 'om_sousetat.cellule_moyenne as "'.__("cellule_moyenne").'"',
- 'om_sousetat.cellule_compteur as "'.__("cellule_compteur").'"',
- );
+ "om_sousetat.titrehauteur as \"".__("titrehauteur")."\"",
+ "om_sousetat.titrefont as \"".__("titrefont")."\"",
+ "om_sousetat.titreattribut as \"".__("titreattribut")."\"",
+ "om_sousetat.titretaille as \"".__("titretaille")."\"",
+ "om_sousetat.titrebordure as \"".__("titrebordure")."\"",
+ "om_sousetat.titrealign as \"".__("titrealign")."\"",
+ "om_sousetat.titrefond as \"".__("titrefond")."\"",
+ "om_sousetat.titrefondcouleur as \"".__("titrefondcouleur")."\"",
+ "om_sousetat.titretextecouleur as \"".__("titretextecouleur")."\"",
+ "om_sousetat.intervalle_debut as \"".__("intervalle_debut")."\"",
+ "om_sousetat.intervalle_fin as \"".__("intervalle_fin")."\"",
+ "om_sousetat.entete_flag as \"".__("entete_flag")."\"",
+ "om_sousetat.entete_fond as \"".__("entete_fond")."\"",
+ "om_sousetat.entete_orientation as \"".__("entete_orientation")."\"",
+ "om_sousetat.entete_hauteur as \"".__("entete_hauteur")."\"",
+ "om_sousetat.entetecolone_bordure as \"".__("entetecolone_bordure")."\"",
+ "om_sousetat.entetecolone_align as \"".__("entetecolone_align")."\"",
+ "om_sousetat.entete_fondcouleur as \"".__("entete_fondcouleur")."\"",
+ "om_sousetat.entete_textecouleur as \"".__("entete_textecouleur")."\"",
+ "om_sousetat.tableau_largeur as \"".__("tableau_largeur")."\"",
+ "om_sousetat.tableau_bordure as \"".__("tableau_bordure")."\"",
+ "om_sousetat.tableau_fontaille as \"".__("tableau_fontaille")."\"",
+ "om_sousetat.bordure_couleur as \"".__("bordure_couleur")."\"",
+ "om_sousetat.se_fond1 as \"".__("se_fond1")."\"",
+ "om_sousetat.se_fond2 as \"".__("se_fond2")."\"",
+ "om_sousetat.cellule_fond as \"".__("cellule_fond")."\"",
+ "om_sousetat.cellule_hauteur as \"".__("cellule_hauteur")."\"",
+ "om_sousetat.cellule_largeur as \"".__("cellule_largeur")."\"",
+ "om_sousetat.cellule_bordure_un as \"".__("cellule_bordure_un")."\"",
+ "om_sousetat.cellule_bordure as \"".__("cellule_bordure")."\"",
+ "om_sousetat.cellule_align as \"".__("cellule_align")."\"",
+ "om_sousetat.cellule_fond_total as \"".__("cellule_fond_total")."\"",
+ "om_sousetat.cellule_fontaille_total as \"".__("cellule_fontaille_total")."\"",
+ "om_sousetat.cellule_hauteur_total as \"".__("cellule_hauteur_total")."\"",
+ "om_sousetat.cellule_fondcouleur_total as \"".__("cellule_fondcouleur_total")."\"",
+ "om_sousetat.cellule_bordure_total as \"".__("cellule_bordure_total")."\"",
+ "om_sousetat.cellule_align_total as \"".__("cellule_align_total")."\"",
+ "om_sousetat.cellule_fond_moyenne as \"".__("cellule_fond_moyenne")."\"",
+ "om_sousetat.cellule_fontaille_moyenne as \"".__("cellule_fontaille_moyenne")."\"",
+ "om_sousetat.cellule_hauteur_moyenne as \"".__("cellule_hauteur_moyenne")."\"",
+ "om_sousetat.cellule_fondcouleur_moyenne as \"".__("cellule_fondcouleur_moyenne")."\"",
+ "om_sousetat.cellule_bordure_moyenne as \"".__("cellule_bordure_moyenne")."\"",
+ "om_sousetat.cellule_align_moyenne as \"".__("cellule_align_moyenne")."\"",
+ "om_sousetat.cellule_fond_nbr as \"".__("cellule_fond_nbr")."\"",
+ "om_sousetat.cellule_fontaille_nbr as \"".__("cellule_fontaille_nbr")."\"",
+ "om_sousetat.cellule_hauteur_nbr as \"".__("cellule_hauteur_nbr")."\"",
+ "om_sousetat.cellule_fondcouleur_nbr as \"".__("cellule_fondcouleur_nbr")."\"",
+ "om_sousetat.cellule_bordure_nbr as \"".__("cellule_bordure_nbr")."\"",
+ "om_sousetat.cellule_align_nbr as \"".__("cellule_align_nbr")."\"",
+ "om_sousetat.cellule_numerique as \"".__("cellule_numerique")."\"",
+ "om_sousetat.cellule_total as \"".__("cellule_total")."\"",
+ "om_sousetat.cellule_moyenne as \"".__("cellule_moyenne")."\"",
+ "om_sousetat.cellule_compteur as \"".__("cellule_compteur")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_sousetat.om_collectivite as "'.__("om_collectivite").'"',
- 'om_sousetat.titre as "'.__("titre").'"',
- 'om_sousetat.om_sql as "'.__("om_sql").'"',
- );
+ "om_sousetat.om_collectivite as \"".__("om_collectivite")."\"",
+ "om_sousetat.titre as \"".__("titre")."\"",
+ "om_sousetat.om_sql as \"".__("om_sql")."\"",
+);
//
$champRecherche = array(
- 'om_sousetat.om_sousetat as "'.__("om_sousetat").'"',
- 'om_sousetat.id as "'.__("id").'"',
- 'om_sousetat.libelle as "'.__("libelle").'"',
- 'om_sousetat.titrehauteur as "'.__("titrehauteur").'"',
- 'om_sousetat.titrefont as "'.__("titrefont").'"',
- 'om_sousetat.titreattribut as "'.__("titreattribut").'"',
- 'om_sousetat.titretaille as "'.__("titretaille").'"',
- 'om_sousetat.titrebordure as "'.__("titrebordure").'"',
- 'om_sousetat.titrealign as "'.__("titrealign").'"',
- 'om_sousetat.titrefond as "'.__("titrefond").'"',
- 'om_sousetat.titrefondcouleur as "'.__("titrefondcouleur").'"',
- 'om_sousetat.titretextecouleur as "'.__("titretextecouleur").'"',
- 'om_sousetat.intervalle_debut as "'.__("intervalle_debut").'"',
- 'om_sousetat.intervalle_fin as "'.__("intervalle_fin").'"',
- 'om_sousetat.entete_flag as "'.__("entete_flag").'"',
- 'om_sousetat.entete_fond as "'.__("entete_fond").'"',
- 'om_sousetat.entete_orientation as "'.__("entete_orientation").'"',
- 'om_sousetat.entete_hauteur as "'.__("entete_hauteur").'"',
- 'om_sousetat.entetecolone_bordure as "'.__("entetecolone_bordure").'"',
- 'om_sousetat.entetecolone_align as "'.__("entetecolone_align").'"',
- 'om_sousetat.entete_fondcouleur as "'.__("entete_fondcouleur").'"',
- 'om_sousetat.entete_textecouleur as "'.__("entete_textecouleur").'"',
- 'om_sousetat.tableau_largeur as "'.__("tableau_largeur").'"',
- 'om_sousetat.tableau_bordure as "'.__("tableau_bordure").'"',
- 'om_sousetat.tableau_fontaille as "'.__("tableau_fontaille").'"',
- 'om_sousetat.bordure_couleur as "'.__("bordure_couleur").'"',
- 'om_sousetat.se_fond1 as "'.__("se_fond1").'"',
- 'om_sousetat.se_fond2 as "'.__("se_fond2").'"',
- 'om_sousetat.cellule_fond as "'.__("cellule_fond").'"',
- 'om_sousetat.cellule_hauteur as "'.__("cellule_hauteur").'"',
- 'om_sousetat.cellule_largeur as "'.__("cellule_largeur").'"',
- 'om_sousetat.cellule_bordure_un as "'.__("cellule_bordure_un").'"',
- 'om_sousetat.cellule_bordure as "'.__("cellule_bordure").'"',
- 'om_sousetat.cellule_align as "'.__("cellule_align").'"',
- 'om_sousetat.cellule_fond_total as "'.__("cellule_fond_total").'"',
- 'om_sousetat.cellule_fontaille_total as "'.__("cellule_fontaille_total").'"',
- 'om_sousetat.cellule_hauteur_total as "'.__("cellule_hauteur_total").'"',
- 'om_sousetat.cellule_fondcouleur_total as "'.__("cellule_fondcouleur_total").'"',
- 'om_sousetat.cellule_bordure_total as "'.__("cellule_bordure_total").'"',
- 'om_sousetat.cellule_align_total as "'.__("cellule_align_total").'"',
- 'om_sousetat.cellule_fond_moyenne as "'.__("cellule_fond_moyenne").'"',
- 'om_sousetat.cellule_fontaille_moyenne as "'.__("cellule_fontaille_moyenne").'"',
- 'om_sousetat.cellule_hauteur_moyenne as "'.__("cellule_hauteur_moyenne").'"',
- 'om_sousetat.cellule_fondcouleur_moyenne as "'.__("cellule_fondcouleur_moyenne").'"',
- 'om_sousetat.cellule_bordure_moyenne as "'.__("cellule_bordure_moyenne").'"',
- 'om_sousetat.cellule_align_moyenne as "'.__("cellule_align_moyenne").'"',
- 'om_sousetat.cellule_fond_nbr as "'.__("cellule_fond_nbr").'"',
- 'om_sousetat.cellule_fontaille_nbr as "'.__("cellule_fontaille_nbr").'"',
- 'om_sousetat.cellule_hauteur_nbr as "'.__("cellule_hauteur_nbr").'"',
- 'om_sousetat.cellule_fondcouleur_nbr as "'.__("cellule_fondcouleur_nbr").'"',
- 'om_sousetat.cellule_bordure_nbr as "'.__("cellule_bordure_nbr").'"',
- 'om_sousetat.cellule_align_nbr as "'.__("cellule_align_nbr").'"',
- 'om_sousetat.cellule_numerique as "'.__("cellule_numerique").'"',
- 'om_sousetat.cellule_total as "'.__("cellule_total").'"',
- 'om_sousetat.cellule_moyenne as "'.__("cellule_moyenne").'"',
- 'om_sousetat.cellule_compteur as "'.__("cellule_compteur").'"',
- );
+ "om_sousetat.om_sousetat as \"".__("om_sousetat")."\"",
+ "om_sousetat.id as \"".__("id")."\"",
+ "om_sousetat.libelle as \"".__("libelle")."\"",
+ "om_sousetat.titrehauteur as \"".__("titrehauteur")."\"",
+ "om_sousetat.titrefont as \"".__("titrefont")."\"",
+ "om_sousetat.titreattribut as \"".__("titreattribut")."\"",
+ "om_sousetat.titretaille as \"".__("titretaille")."\"",
+ "om_sousetat.titrebordure as \"".__("titrebordure")."\"",
+ "om_sousetat.titrealign as \"".__("titrealign")."\"",
+ "om_sousetat.titrefond as \"".__("titrefond")."\"",
+ "om_sousetat.titrefondcouleur as \"".__("titrefondcouleur")."\"",
+ "om_sousetat.titretextecouleur as \"".__("titretextecouleur")."\"",
+ "om_sousetat.intervalle_debut as \"".__("intervalle_debut")."\"",
+ "om_sousetat.intervalle_fin as \"".__("intervalle_fin")."\"",
+ "om_sousetat.entete_flag as \"".__("entete_flag")."\"",
+ "om_sousetat.entete_fond as \"".__("entete_fond")."\"",
+ "om_sousetat.entete_orientation as \"".__("entete_orientation")."\"",
+ "om_sousetat.entete_hauteur as \"".__("entete_hauteur")."\"",
+ "om_sousetat.entetecolone_bordure as \"".__("entetecolone_bordure")."\"",
+ "om_sousetat.entetecolone_align as \"".__("entetecolone_align")."\"",
+ "om_sousetat.entete_fondcouleur as \"".__("entete_fondcouleur")."\"",
+ "om_sousetat.entete_textecouleur as \"".__("entete_textecouleur")."\"",
+ "om_sousetat.tableau_largeur as \"".__("tableau_largeur")."\"",
+ "om_sousetat.tableau_bordure as \"".__("tableau_bordure")."\"",
+ "om_sousetat.tableau_fontaille as \"".__("tableau_fontaille")."\"",
+ "om_sousetat.bordure_couleur as \"".__("bordure_couleur")."\"",
+ "om_sousetat.se_fond1 as \"".__("se_fond1")."\"",
+ "om_sousetat.se_fond2 as \"".__("se_fond2")."\"",
+ "om_sousetat.cellule_fond as \"".__("cellule_fond")."\"",
+ "om_sousetat.cellule_hauteur as \"".__("cellule_hauteur")."\"",
+ "om_sousetat.cellule_largeur as \"".__("cellule_largeur")."\"",
+ "om_sousetat.cellule_bordure_un as \"".__("cellule_bordure_un")."\"",
+ "om_sousetat.cellule_bordure as \"".__("cellule_bordure")."\"",
+ "om_sousetat.cellule_align as \"".__("cellule_align")."\"",
+ "om_sousetat.cellule_fond_total as \"".__("cellule_fond_total")."\"",
+ "om_sousetat.cellule_fontaille_total as \"".__("cellule_fontaille_total")."\"",
+ "om_sousetat.cellule_hauteur_total as \"".__("cellule_hauteur_total")."\"",
+ "om_sousetat.cellule_fondcouleur_total as \"".__("cellule_fondcouleur_total")."\"",
+ "om_sousetat.cellule_bordure_total as \"".__("cellule_bordure_total")."\"",
+ "om_sousetat.cellule_align_total as \"".__("cellule_align_total")."\"",
+ "om_sousetat.cellule_fond_moyenne as \"".__("cellule_fond_moyenne")."\"",
+ "om_sousetat.cellule_fontaille_moyenne as \"".__("cellule_fontaille_moyenne")."\"",
+ "om_sousetat.cellule_hauteur_moyenne as \"".__("cellule_hauteur_moyenne")."\"",
+ "om_sousetat.cellule_fondcouleur_moyenne as \"".__("cellule_fondcouleur_moyenne")."\"",
+ "om_sousetat.cellule_bordure_moyenne as \"".__("cellule_bordure_moyenne")."\"",
+ "om_sousetat.cellule_align_moyenne as \"".__("cellule_align_moyenne")."\"",
+ "om_sousetat.cellule_fond_nbr as \"".__("cellule_fond_nbr")."\"",
+ "om_sousetat.cellule_fontaille_nbr as \"".__("cellule_fontaille_nbr")."\"",
+ "om_sousetat.cellule_hauteur_nbr as \"".__("cellule_hauteur_nbr")."\"",
+ "om_sousetat.cellule_fondcouleur_nbr as \"".__("cellule_fondcouleur_nbr")."\"",
+ "om_sousetat.cellule_bordure_nbr as \"".__("cellule_bordure_nbr")."\"",
+ "om_sousetat.cellule_align_nbr as \"".__("cellule_align_nbr")."\"",
+ "om_sousetat.cellule_numerique as \"".__("cellule_numerique")."\"",
+ "om_sousetat.cellule_total as \"".__("cellule_total")."\"",
+ "om_sousetat.cellule_moyenne as \"".__("cellule_moyenne")."\"",
+ "om_sousetat.cellule_compteur as \"".__("cellule_compteur")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_sousetat.libelle ASC NULLS LAST";
-$edition="om_sousetat";
+$tri = "ORDER BY om_sousetat.libelle ASC NULLS LAST";
+$edition = "om_sousetat";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_utilisateur.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_utilisateur.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_utilisateur.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,24 +1,24 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_utilisateur*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("gestion des utilisateurs")." -> ".__("om_utilisateur");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_utilisateur
LEFT JOIN ".DB_PREFIXE."om_collectivite
@@ -27,37 +27,37 @@
ON om_utilisateur.om_profil=om_profil.om_profil ";
// SELECT
$champAffiche = array(
- 'om_utilisateur.om_utilisateur as "'.__("om_utilisateur").'"',
- 'om_utilisateur.nom as "'.__("nom").'"',
- 'om_utilisateur.email as "'.__("email").'"',
- 'om_utilisateur.login as "'.__("login").'"',
- 'om_utilisateur.om_type as "'.__("om_type").'"',
- 'om_profil.libelle as "'.__("om_profil").'"',
- );
+ "om_utilisateur.om_utilisateur as \"".__("om_utilisateur")."\"",
+ "om_utilisateur.nom as \"".__("nom")."\"",
+ "om_utilisateur.email as \"".__("email")."\"",
+ "om_utilisateur.login as \"".__("login")."\"",
+ "om_utilisateur.om_type as \"".__("om_type")."\"",
+ "om_profil.libelle as \"".__("om_profil")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champAffiche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champAffiche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
//
$champNonAffiche = array(
- 'om_utilisateur.pwd as "'.__("pwd").'"',
- 'om_utilisateur.om_collectivite as "'.__("om_collectivite").'"',
- );
+ "om_utilisateur.pwd as \"".__("pwd")."\"",
+ "om_utilisateur.om_collectivite as \"".__("om_collectivite")."\"",
+);
//
$champRecherche = array(
- 'om_utilisateur.om_utilisateur as "'.__("om_utilisateur").'"',
- 'om_utilisateur.nom as "'.__("nom").'"',
- 'om_utilisateur.email as "'.__("email").'"',
- 'om_utilisateur.login as "'.__("login").'"',
- 'om_utilisateur.om_type as "'.__("om_type").'"',
- 'om_profil.libelle as "'.__("om_profil").'"',
- );
+ "om_utilisateur.om_utilisateur as \"".__("om_utilisateur")."\"",
+ "om_utilisateur.nom as \"".__("nom")."\"",
+ "om_utilisateur.email as \"".__("email")."\"",
+ "om_utilisateur.login as \"".__("login")."\"",
+ "om_utilisateur.om_type as \"".__("om_type")."\"",
+ "om_profil.libelle as \"".__("om_profil")."\"",
+);
//
-if ($_SESSION['niveau'] == '2') {
- array_push($champRecherche, "om_collectivite.libelle as \"".__("collectivite")."\"");
+if ($_SESSION["niveau"] == "2") {
+ $champRecherche[] = "om_collectivite.libelle as \"".__("collectivite")."\"";
}
-$tri="ORDER BY om_utilisateur.nom ASC NULLS LAST";
-$edition="om_utilisateur";
+$tri = "ORDER BY om_utilisateur.nom ASC NULLS LAST";
+$edition = "om_utilisateur";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_widget.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_widget.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/om_widget.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,47 +1,47 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *om_widget*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tableaux de bord")." -> ".__("om_widget");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."om_widget";
// SELECT
$champAffiche = array(
- 'om_widget.om_widget as "'.__("om_widget").'"',
- 'om_widget.libelle as "'.__("libelle").'"',
- 'om_widget.type as "'.__("type").'"',
- );
+ "om_widget.om_widget as \"".__("om_widget")."\"",
+ "om_widget.libelle as \"".__("libelle")."\"",
+ "om_widget.type as \"".__("type")."\"",
+);
//
$champNonAffiche = array(
- 'om_widget.lien as "'.__("lien").'"',
- 'om_widget.texte as "'.__("texte").'"',
- 'om_widget.script as "'.__("script").'"',
- 'om_widget.arguments as "'.__("arguments").'"',
- );
+ "om_widget.lien as \"".__("lien")."\"",
+ "om_widget.texte as \"".__("texte")."\"",
+ "om_widget.script as \"".__("script")."\"",
+ "om_widget.arguments as \"".__("arguments")."\"",
+);
//
$champRecherche = array(
- 'om_widget.om_widget as "'.__("om_widget").'"',
- 'om_widget.libelle as "'.__("libelle").'"',
- 'om_widget.type as "'.__("type").'"',
- );
-$tri="ORDER BY om_widget.libelle ASC NULLS LAST";
-$edition="om_widget";
+ "om_widget.om_widget as \"".__("om_widget")."\"",
+ "om_widget.libelle as \"".__("libelle")."\"",
+ "om_widget.type as \"".__("type")."\"",
+);
+$tri = "ORDER BY om_widget.libelle ASC NULLS LAST";
+$edition = "om_widget";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -52,6 +52,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'om_dashboard',
+ //"om_dashboard",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/perimetre.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/perimetre.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/perimetre.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,49 +1,49 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *perimetre*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("application")." -> ".__("périmètres d'exclusion");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."perimetre";
// SELECT
$champAffiche = array(
- 'perimetre.perimetre as "'.__("perimetre").'"',
- 'perimetre.libelle as "'.__("libelle").'"',
- 'perimetre.longueur_exclusion_metre as "'.__("longueur_exclusion_metre").'"',
- );
+ "perimetre.perimetre as \"".__("perimetre")."\"",
+ "perimetre.libelle as \"".__("libelle")."\"",
+ "perimetre.longueur_exclusion_metre as \"".__("longueur_exclusion_metre")."\"",
+);
//
$champNonAffiche = array(
- 'perimetre.numero_voie as "'.__("numero_voie").'"',
- 'perimetre.complement as "'.__("complement").'"',
- 'perimetre.voie as "'.__("voie").'"',
- 'perimetre.libelle_voie as "'.__("libelle_voie").'"',
- 'perimetre.complement_voie as "'.__("complement_voie").'"',
- 'perimetre.geom as "'.__("geom").'"',
- );
+ "perimetre.numero_voie as \"".__("numero_voie")."\"",
+ "perimetre.complement as \"".__("complement")."\"",
+ "perimetre.voie as \"".__("voie")."\"",
+ "perimetre.libelle_voie as \"".__("libelle_voie")."\"",
+ "perimetre.complement_voie as \"".__("complement_voie")."\"",
+ "perimetre.geom as \"".__("geom")."\"",
+);
//
$champRecherche = array(
- 'perimetre.perimetre as "'.__("perimetre").'"',
- 'perimetre.libelle as "'.__("libelle").'"',
- 'perimetre.longueur_exclusion_metre as "'.__("longueur_exclusion_metre").'"',
- );
-$tri="ORDER BY perimetre.libelle ASC NULLS LAST";
-$edition="perimetre";
+ "perimetre.perimetre as \"".__("perimetre")."\"",
+ "perimetre.libelle as \"".__("libelle")."\"",
+ "perimetre.longueur_exclusion_metre as \"".__("longueur_exclusion_metre")."\"",
+);
+$tri = "ORDER BY perimetre.libelle ASC NULLS LAST";
+$edition = "perimetre";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/qualite_exploitant.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/qualite_exploitant.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/qualite_exploitant.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,41 +1,41 @@
<?php
-//$Id$
-//gen openMairie le 13/09/2018 12:16
+/**
+ * Ce script contient la définition des variables de l'objet *qualite_exploitant*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("qualités de l'exploitant");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."qualite_exploitant";
// SELECT
$champAffiche = array(
- 'qualite_exploitant.qualite_exploitant as "'.__("qualite_exploitant").'"',
- 'qualite_exploitant.libelle as "'.__("libelle").'"',
- );
+ "qualite_exploitant.qualite_exploitant as \"".__("qualite_exploitant")."\"",
+ "qualite_exploitant.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'qualite_exploitant.qualite_exploitant as "'.__("qualite_exploitant").'"',
- 'qualite_exploitant.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY qualite_exploitant.libelle ASC NULLS LAST";
-$edition="qualite_exploitant";
+ "qualite_exploitant.qualite_exploitant as \"".__("qualite_exploitant")."\"",
+ "qualite_exploitant.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY qualite_exploitant.libelle ASC NULLS LAST";
+$edition = "qualite_exploitant";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -46,6 +46,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'etablissement',
+ //"etablissement",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/rivoli.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/rivoli.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/rivoli.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,41 +1,41 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *rivoli*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("géolocalisation")." -> ".__("rivoli");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."rivoli";
// SELECT
$champAffiche = array(
- 'rivoli.rivoli as "'.__("rivoli").'"',
- 'rivoli.libelle as "'.__("libelle").'"',
- );
+ "rivoli.rivoli as \"".__("rivoli")."\"",
+ "rivoli.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'rivoli.rivoli as "'.__("rivoli").'"',
- 'rivoli.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY rivoli.libelle ASC NULLS LAST";
-$edition="rivoli";
+ "rivoli.rivoli as \"".__("rivoli")."\"",
+ "rivoli.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY rivoli.libelle ASC NULLS LAST";
+$edition = "rivoli";
/**
* Gestion de la clause WHERE => $selection
*/

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/statut_demande.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/statut_demande.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/statut_demande.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,41 +1,41 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *statut_demande*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("statuts de la demande");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."statut_demande";
// SELECT
$champAffiche = array(
- 'statut_demande.statut_demande as "'.__("statut_demande").'"',
- 'statut_demande.libelle as "'.__("libelle").'"',
- );
+ "statut_demande.statut_demande as \"".__("statut_demande")."\"",
+ "statut_demande.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'statut_demande.statut_demande as "'.__("statut_demande").'"',
- 'statut_demande.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY statut_demande.libelle ASC NULLS LAST";
-$edition="statut_demande";
+ "statut_demande.statut_demande as \"".__("statut_demande")."\"",
+ "statut_demande.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY statut_demande.libelle ASC NULLS LAST";
+$edition = "statut_demande";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -46,6 +46,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'demande_licence',
+ //"demande_licence",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/terme.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/terme.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/terme.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,43 +1,43 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *terme*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("termes");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."terme";
// SELECT
$champAffiche = array(
- 'terme.terme as "'.__("terme").'"',
- 'terme.code as "'.__("code").'"',
- 'terme.libelle as "'.__("libelle").'"',
- );
+ "terme.terme as \"".__("terme")."\"",
+ "terme.code as \"".__("code")."\"",
+ "terme.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'terme.terme as "'.__("terme").'"',
- 'terme.code as "'.__("code").'"',
- 'terme.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY terme.libelle ASC NULLS LAST";
-$edition="terme";
+ "terme.terme as \"".__("terme")."\"",
+ "terme.code as \"".__("code")."\"",
+ "terme.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY terme.libelle ASC NULLS LAST";
+$edition = "terme";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -48,6 +48,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'demande_licence',
+ //"demande_licence",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/titre_de_civilite.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/titre_de_civilite.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/titre_de_civilite.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,43 +1,43 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *titre_de_civilite*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("titres de civilités");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."titre_de_civilite";
// SELECT
$champAffiche = array(
- 'titre_de_civilite.titre_de_civilite as "'.__("titre_de_civilite").'"',
- 'titre_de_civilite.code as "'.__("code").'"',
- 'titre_de_civilite.libelle as "'.__("libelle").'"',
- );
+ "titre_de_civilite.titre_de_civilite as \"".__("titre_de_civilite")."\"",
+ "titre_de_civilite.code as \"".__("code")."\"",
+ "titre_de_civilite.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'titre_de_civilite.titre_de_civilite as "'.__("titre_de_civilite").'"',
- 'titre_de_civilite.code as "'.__("code").'"',
- 'titre_de_civilite.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY titre_de_civilite.libelle ASC NULLS LAST";
-$edition="titre_de_civilite";
+ "titre_de_civilite.titre_de_civilite as \"".__("titre_de_civilite")."\"",
+ "titre_de_civilite.code as \"".__("code")."\"",
+ "titre_de_civilite.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY titre_de_civilite.libelle ASC NULLS LAST";
+$edition = "titre_de_civilite";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -48,6 +48,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'etablissement',
+ //"etablissement",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_demande.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_demande.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_demande.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,43 +1,43 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *type_demande*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("types de demandes");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."type_demande";
// SELECT
$champAffiche = array(
- 'type_demande.type_demande as "'.__("type_demande").'"',
- 'type_demande.code as "'.__("code").'"',
- 'type_demande.libelle as "'.__("libelle").'"',
- );
+ "type_demande.type_demande as \"".__("type_demande")."\"",
+ "type_demande.code as \"".__("code")."\"",
+ "type_demande.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'type_demande.type_demande as "'.__("type_demande").'"',
- 'type_demande.code as "'.__("code").'"',
- 'type_demande.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY type_demande.libelle ASC NULLS LAST";
-$edition="type_demande";
+ "type_demande.type_demande as \"".__("type_demande")."\"",
+ "type_demande.code as \"".__("code")."\"",
+ "type_demande.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY type_demande.libelle ASC NULLS LAST";
+$edition = "type_demande";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -48,6 +48,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'demande_licence',
+ //"demande_licence",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_etablissement.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_etablissement.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_etablissement.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,41 +1,41 @@
<?php
-//$Id$
-//gen openMairie le 07/08/2018 10:12
+/**
+ * Ce script contient la définition des variables de l'objet *type_etablissement*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("types d'établissements");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."type_etablissement";
// SELECT
$champAffiche = array(
- 'type_etablissement.type_etablissement as "'.__("type_etablissement").'"',
- 'type_etablissement.libelle as "'.__("libelle").'"',
- );
+ "type_etablissement.type_etablissement as \"".__("type_etablissement")."\"",
+ "type_etablissement.libelle as \"".__("libelle")."\"",
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'type_etablissement.type_etablissement as "'.__("type_etablissement").'"',
- 'type_etablissement.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY type_etablissement.libelle ASC NULLS LAST";
-$edition="type_etablissement";
+ "type_etablissement.type_etablissement as \"".__("type_etablissement")."\"",
+ "type_etablissement.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY type_etablissement.libelle ASC NULLS LAST";
+$edition = "type_etablissement";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -46,6 +46,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'etablissement',
+ //"etablissement",
);
-

Modified: branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_licence.inc.php
===================================================================
--- branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_licence.inc.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/gen/sql/pgsql/type_licence.inc.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -1,42 +1,42 @@
<?php
-//$Id$
-//gen openMairie le 10/08/2018 17:44
+/**
+ * Ce script contient la définition des variables de l'objet *type_licence*.
+ *
+ * Script généré par openMairie le 08/08/2019 12:59.
+ *
+ * @package opendebitdeboisson
+ * @version SVN : $Id$
+ */

-$DEBUG=0;
-$serie=15;
+$DEBUG = 0;
+$serie = 15;
$ent = __("administration & paramétrage")." -> ".__("tables de référence")." -> ".__("types de licences");
-if(!isset($premier)) $premier='';
-if(!isset($tricolsf)) $tricolsf='';
-if(!isset($premiersf)) $premiersf='';
-if(!isset($selection)) $selection='';
-if(!isset($retourformulaire)) $retourformulaire='';
-if (!isset($idxformulaire)) {
- $idxformulaire = '';
-}
-if (!isset($tricol)) {
- $tricol = '';
-}
-if (!isset($valide)) {
- $valide = '';
-}
+if (!isset($premier)) { $premier = ""; }
+if (!isset($tricolsf)) { $tricolsf = ""; }
+if (!isset($premiersf)) { $premiersf = ""; }
+if (!isset($selection)) { $selection = ""; }
+if (!isset($retourformulaire)) { $retourformulaire = ""; }
+if (!isset($idxformulaire)) { $idxformulaire = ""; }
+if (!isset($tricol)) { $tricol = ""; }
+if (!isset($valide)) { $valide = ""; }
// FROM
$table = DB_PREFIXE."type_licence";
// SELECT
$champAffiche = array(
- 'type_licence.type_licence as "'.__("type_licence").'"',
- 'type_licence.libelle as "'.__("libelle").'"',
+ "type_licence.type_licence as \"".__("type_licence")."\"",
+ "type_licence.libelle as \"".__("libelle")."\"",
"case type_licence.contrainte_proximite when 't' then 'Oui' else 'Non' end as \"".__("contrainte_proximite")."\"",
- );
+);
//
$champNonAffiche = array(
- );
+);
//
$champRecherche = array(
- 'type_licence.type_licence as "'.__("type_licence").'"',
- 'type_licence.libelle as "'.__("libelle").'"',
- );
-$tri="ORDER BY type_licence.libelle ASC NULLS LAST";
-$edition="type_licence";
+ "type_licence.type_licence as \"".__("type_licence")."\"",
+ "type_licence.libelle as \"".__("libelle")."\"",
+);
+$tri = "ORDER BY type_licence.libelle ASC NULLS LAST";
+$edition = "type_licence";
/**
* Gestion de la clause WHERE => $selection
*/
@@ -47,6 +47,5 @@
* Gestion SOUSFORMULAIRE => $sousformulaire
*/
$sousformulaire = array(
- //'demande_licence',
+ //"demande_licence",
);
-

Modified: branches/poc-upgrade-om-4.10/obj/opendebitdeboisson.class.php
===================================================================
--- branches/poc-upgrade-om-4.10/obj/opendebitdeboisson.class.php 2019-08-01 09:37:52 UTC (rev 384)
+++ branches/poc-upgrade-om-4.10/obj/opendebitdeboisson.class.php 2019-08-08 11:00:30 UTC (rev 385)
@@ -67,6 +67,13 @@
protected $_application_name = "openDébitDeBoisson";

/**
+ * Gestion du nom de package.
+ *
+ * @var mixed Configuration niveau application.
+ */
+ protected $_package_name = "opendebitdeboisson";
+
+ /**
* Titre HTML.
*
* @var mixed Configuration niveau application.

Reply all
Reply to author
Forward
0 new messages