Création function reset (mise a jours)
This commit is contained in:
parent
d2a574d49e
commit
a48e8eeaaf
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user