Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1706 → Rev 1702

/trunk/jrest/lib/FormateurGroupeColonne.php
185,9 → 185,7
foreach($colonnes as $abbrev => $colonne) {
$valeur = null;
if(is_null($colonne['dyna'])) continue;
// XXX: PHP-5.3
call_user_func_array($colonne['dyna'],
array($cel, $obs, &$ligne_formatee));
$colonne['dyna']($cel, $obs, $ligne_formatee);
}
 
return $ligne_formatee;
476,7 → 474,6
implode(',', array_keys(self::$baseflor_col)),
implode(',', $obsids));
$res = $cel->requeter($req);
if(!$res) return NULL;
 
foreach($res as $v) {
$data = $v;
492,12 → 489,12
static function baseflor_ligne($cel, $obs, &$ligne) {
 
if(! $obs['nom_ret_nn']) {
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), NULL));
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), 'A'));
return;
}
 
if(! self::referenceTableExiste($cel)) {
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), NULL));
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), 'A'));
return;
}
 
520,7 → 517,7
Cel::SQL_RETOUR_LIGNE);
 
if(! $data) {
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), NULL));
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), 'A'));
return;
}