Line 92... |
Line 92... |
92 |
|
92 |
|
93 |
if ($champs_etendus != null) {
|
93 |
if ($champs_etendus != null) {
|
94 |
$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');
|
94 |
$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');
|
95 |
$id_obs = $gestionnaire_observation->renvoyerIdPourOrdre($uid[0],$uid[1]);
|
95 |
$id_obs = $gestionnaire_observation->renvoyerIdPourOrdre($uid[0],$uid[1]);
|
96 |
foreach($champs_etendus as &$champ_etendu) {
|
96 |
foreach($champs_etendus as &$champ_etendu) {
|
97 |
$objet_champ_etendu = new ChampEtendu();
|
97 |
$objet_champ_etendu = new ObsEtendue();
|
98 |
$objet_champ_etendu->id = $id_obs;
|
98 |
$objet_champ_etendu->id = $id_obs;
|
99 |
if($this->doitGenererCleChampEtendu($champ_etendu)) {
|
99 |
if($this->doitGenererCleChampEtendu($champ_etendu)) {
|
100 |
$champ_etendu['cle'] = $gestion_champs_etendus->transformerLabelEnCle($champ_etendu['label']);
|
100 |
$champ_etendu['cle'] = $gestion_champs_etendus->transformerLabelEnCle($champ_etendu['label']);
|
101 |
}
|
101 |
}
|
Line 134... |
Line 134... |
134 |
$id_nouvelle_obs = $gestionnaire_observation->ajouterObservation($pairs['ce_utilisateur'], $pairs);
|
134 |
$id_nouvelle_obs = $gestionnaire_observation->ajouterObservation($pairs['ce_utilisateur'], $pairs);
|
Line 135... |
Line 135... |
135 |
|
135 |
|
136 |
if ($champs_etendus != null) {
|
136 |
if ($champs_etendus != null) {
|
137 |
$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');
|
137 |
$gestion_champs_etendus = new GestionChampsEtendus($this->config, 'obs');
|
138 |
foreach($champs_etendus as &$champ_etendu) {
|
138 |
foreach($champs_etendus as &$champ_etendu) {
|
139 |
$objet_champ_etendu = new ChampEtendu();
|
139 |
$objet_champ_etendu = new ObsEtendue();
|
140 |
$objet_champ_etendu->id = $id_nouvelle_obs;
|
140 |
$objet_champ_etendu->id = $id_nouvelle_obs;
|
141 |
if($this->doitGenererCleChampEtendu($champ_etendu)) {
|
141 |
if($this->doitGenererCleChampEtendu($champ_etendu)) {
|
142 |
$champ_etendu['cle'] = $gestion_champs_etendus->transformerLabelEnCle($champ_etendu['label']);
|
142 |
$champ_etendu['cle'] = $gestion_champs_etendus->transformerLabelEnCle($champ_etendu['label']);
|
143 |
}
|
143 |
}
|