'var',
'label' => 'Définir une variable',
'class' => get_called_class(),
'path' => __FILE__,
'icon' => 'fas fa-dollar-sign',
'color' => '#ff9f43',
);
if(!isset($key)) return $manifest;
return isset($manifest[$key]) ? $manifest[$key] : '' ;
}
//méthode d'affichage de l'effet
public static function form($item){
$html = '';
$class = get_called_class();
//$class::manifest('icon')
ob_start();
?>
toArray();
if(isset($parameters['old'])) $parameters['old'] = $parameters['old']->toArray();
}
if(!isset($effect->values['variable-slug'])) throw new Exception("Nom de la variable non défini");
$effect->values['variable-slug'] = template($effect->values['variable-slug'],$parameters,true);
$effect->values['variable-value'] = isset($effect->values['variable-value']) ? template($effect->values['variable-value'],$parameters,true) : '';
$workflowVars = json_decode($conf->get('workflow-var'),true);
$workflowVars[$effect->values['variable-slug']] = $effect->values['variable-value'];
$conf->put('workflow-var', json_encode($workflowVars));
$logs .= ' '.$effect->values['variable-slug'].' passée à '.$effect->values['variable-value'];
return $logs;
}
}
?>