Création function reset (mise a jours)

This commit is contained in:
Damien LASSERRE 2012-02-16 08:20:03 +00:00
parent d2a574d49e
commit a48e8eeaaf

View File

@ -98,6 +98,19 @@ class SessionCiblage
return $this->{$element};
}
public function resetFamille($famille)
{
require_once('Field.php');
$fields = new Fields(null);
$reference = $fields->getByFamille($famille);
echo '<pre>';print_r($this->valeur);
foreach($this->valeur as $name => $valeur) {
if(array_key_exists($name, $reference)) {
unset($this->valeur[$name]);
}
}
$this->setSession();
}
public function clearCiblage()
{