Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3896 → Rev 3897

/branches/v3.01-serpe/widget/modules/manager/Manager.php
166,6 → 166,10
$tableau = (array) json_decode( $json, true );
$retour['squelette'] = 'creation';
$retour['donnees']['widget'] = $tableau[0];
// obtenir un tableau de coordonnées+zoom expoitable
if (isset($retour['donnees']['widget']['localisation'])) {
$retour['donnees']['widget']['tableau-localisation'] = $this->traiterLocalisation($retour['donnees']['widget']['localisation']);
}
// En prévision d'un service permettant la suppression/modification champs supp
$retour['donnees']['widget']['chpSupp'] = $this->rechercherChampsSupp();
 
207,6 → 211,17
return $parametres_modif;
}
 
private function traiterLocalisation( $infos_localisation ) {
$infos = explode(';', $infos_localisation);
$tableauTmp = array();
$retour = array();
foreach ($infos as $info) {
$tableauTmp = explode(':', $info);
$retour[$tableauTmp[0]] = $tableauTmp[1];
}
return $retour;
}
 
private function traiterDonneesFiles() {
$return = array();
$transmettre_donnees = false;
398,7 → 413,10
}
}
$retour[$projet]['champs-supp'][$key]['mandatory'] = intval( $chsup['mandatory'] );
$retour[$projet]['champs-supp'][$key]['is_visible'] = intval( $chsup['is_visible'] );
}
// renvoyer un json exploitable par le sccript js
$retour[$projet]['champs-supp-json'] = json_encode($retour[$projet]['champs-supp']);
return $retour;
}
}