function decompiler_champ($struct, $fmt = '', $prof = 0)
{
    $avant = decompiler_($struct->avant, $fmt, $prof);
    $apres = decompiler_($struct->apres, $fmt, $prof);
    $args = $filtres = '';
    if ($p = $struct->param) {
        if ($p[0][0] === '') {
            $args = decompiler_liste(array(array_shift($p)), $fmt, $prof);
        }
        $filtres = decompiler_liste($p, $fmt, $prof);
    }
    $f = 'format_champ_' . $fmt;
    return $f($struct->nom_champ, $struct->nom_boucle, $struct->etoile, $avant, $apres, $args, $filtres, $prof);
}
Beispiel #2
0
function decompiler_champ($struct, $fmt='', $prof=0)
{
	$avant = public_decompiler($struct->avant, $fmt, $prof);
	$apres = public_decompiler($struct->apres, $fmt, $prof);
	$args = $filtres = '';
	if ($p = $struct->param) {
		if ($p[0][0]==='')
		  $args = decompiler_liste(array(array_shift($p)), $fmt, $prof);
		$filtres = decompiler_liste($p, $fmt, $prof);
	}
	$f = 'format_champ_' . ($fmt ? $fmt : _EXTENSION_SQUELETTES);
	return $f($struct->nom_champ, $struct->nom_boucle, $struct->etoile, $avant, $apres, $args, $filtres, $prof);
}