Skip to content
Snippets Groups Projects
Commit a65fbf6d authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Nouvelle fonction de découpage pour les témoins

parent cc227a08
No related branches found
No related tags found
No related merge requests found
Pipeline #26159 passed
......@@ -102,6 +102,18 @@ class Parametre
}
public function getTemoins() : array
{
$on = [];
$off = [];
$listing = explode(";", $this->getValeur());
foreach ($listing as $item) {
if (isset($item[0])) {
if ($item[0] === '!') $off[] = substr($item, 1); else $on[] = $item;
}
}
return [ 'on' => $on, 'off' => $off];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment