Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1705 → Rev 1706

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