Line 242... |
Line 242... |
242 |
'commentaire' => self::GenColInfo('commentaire', 'Notes'),
|
242 |
'commentaire' => self::GenColInfo('commentaire', 'Notes'),
|
243 |
'latitude' => self::GenColInfo('latitude', 'Latitude', 1),
|
243 |
'latitude' => self::GenColInfo('latitude', 'Latitude', 1),
|
244 |
'longitude' => self::GenColInfo('longitude', 'Longitude', 1),
|
244 |
'longitude' => self::GenColInfo('longitude', 'Longitude', 1),
|
245 |
'geodatum' => self::GenColInfo('geodatum', 'Référentiel Géographique', 1),
|
245 |
'geodatum' => self::GenColInfo('geodatum', 'Référentiel Géographique', 1),
|
Line -... |
Line 246... |
- |
|
246 |
|
246 |
|
247 |
// TODO: importable = FALSE car pas de merge de données importées
|
247 |
'ordre' => self::GenColInfo('ordre', 'Ordre', 1),
|
248 |
'ordre' => self::GenColInfo('ordre', 'Ordre', 1, NULL, NULL, FALSE),
|
Line 248... |
Line 249... |
248 |
'id_observation' => self::GenColInfo('id_observation', 'Identifiant', 1),
|
249 |
'id_observation' => self::GenColInfo('id_observation', 'Identifiant', 1, NULL, NULL, FALSE),
|
249 |
|
250 |
|
250 |
'mots_cles_texte' => self::GenColInfo('mots_cles_texte', 'Mots Clés', 1),
|
251 |
'mots_cles_texte' => self::GenColInfo('mots_cles_texte', 'Mots Clés', 1),
|
251 |
'commentaire' => self::GenColInfo('commentaire', 'Commentaires', 1),
|
252 |
'commentaire' => self::GenColInfo('commentaire', 'Commentaires', 1),
|
- |
|
253 |
'date_creation' => self::GenColInfo('date_creation', 'Date Création', 1),
|
- |
|
254 |
'date_modification' => self::GenColInfo('date_modification', 'Date Modification', 1),
|
252 |
'date_creation' => self::GenColInfo('date_creation', 'Date Création', 1),
|
255 |
// importable = FALSE car à l'import ce sont de "nouvelles" données, donc "non-transmises"
|
253 |
'date_modification' => self::GenColInfo('date_modification', 'Date Modification', 1),
|
256 |
'transmission' => self::GenColInfo('transmission', 'Transmis', 1, NULL, NULL, FALSE),
|
254 |
'date_transmission' => self::GenColInfo('date_transmission', 'Date Transmission', 1),
|
257 |
'date_transmission' => self::GenColInfo('date_transmission', 'Date Transmission', 1),
|
255 |
'abondance' => self::GenColInfo('abondance', 'Abondance', 1),
|
258 |
'abondance' => self::GenColInfo('abondance', 'Abondance', 1, NULL, NULL, FALSE),
|
Line 256... |
Line 259... |
256 |
'certitude' => self::GenColInfo('certitude', 'Certitude', 1),
|
259 |
'certitude' => self::GenColInfo('certitude', 'Certitude', 1, NULL, NULL, FALSE),
|
257 |
'phenologie' => self::GenColInfo('phenologie', 'Phénologie', 1),
|
260 |
'phenologie' => self::GenColInfo('phenologie', 'Phénologie', 1, NULL, NULL, FALSE),
|
258 |
|
261 |
|
259 |
'nom-commun' => self::GenColInfo('nom-commun', 'Nom Commun', 1, NULL, 'getNomCommun')
|
262 |
'nom_commun' => self::GenColInfo('nom_commun', 'Nom Commun', 1, NULL, 'getNomCommun', FALSE)
|
260 |
//'nom-commun' => self::GenColInfo('nom-commun', 'Nom Commun', 1, NULL, 'getNomCommun_v2')
|
263 |
//'nom-commun' => self::GenColInfo('nom-commun', 'Nom Commun', 1, NULL, 'getNomCommun_v2')
|
Line 273... |
Line 276... |
273 |
* @param $fonction_data (optionnel): une *méthode* d'obtention de donnée
|
276 |
* @param $fonction_data (optionnel): une *méthode* d'obtention de donnée
|
274 |
* $fonction_data doit prendre comme premier argument les champs de l'enregistrement existant
|
277 |
* $fonction_data doit prendre comme premier argument les champs de l'enregistrement existant
|
275 |
* $fonction_data doit retourner une valeur
|
278 |
* $fonction_data doit retourner une valeur
|
Line 276... |
Line 279... |
276 |
|
279 |
|
277 |
*/
|
280 |
*/
|
278 |
static function GenColInfo($slug, $nom, $is_extra = 0, $fonction = NULL, $fonction_data = NULL) {
|
281 |
static function GenColInfo($slug, $nom, $is_extra = 0, $fonction = NULL, $fonction_data = NULL, $importable = TRUE) {
|
279 |
return Array('slug' => $slug,
|
282 |
return Array('slug' => $slug,
|
280 |
'nom' => $nom,
|
283 |
'nom' => $nom,
|
281 |
'extra' => $is_extra ? 1 : 0,
|
284 |
'extra' => $is_extra ? 1 : 0,
|
282 |
'fonction' => $fonction,
|
285 |
'fonction' => $fonction,
|
- |
|
286 |
'fonction_data' => $fonction_data,
|
283 |
'fonction_data' => $fonction_data
|
287 |
'importable' => $importable
|
284 |
);
|
288 |
);
|
Line 285... |
Line 289... |
285 |
}
|
289 |
}
|
286 |
|
290 |
|