Loading src/UnicaenAutoform/View/Helper/InstanceAsTextHelper.php +2 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ class InstanceAsTextHelper extends AbstractHelper $categories = $formulaire->getCategories(); $categories = array_filter($categories, function (Categorie $categorie) use ($date) { if ($date === null) return $categorie->estNonHistorise(); $wasExisting = ($categorie->getHistoCreation() === null or $categorie->getHistoCreation() <= $date); $wasntHistorise = ($categorie->getHistoDestruction() === null or $categorie->getHistoDestruction() >= $date); return ($wasExisting and $wasntHistorise); Loading @@ -42,6 +43,7 @@ class InstanceAsTextHelper extends AbstractHelper $champs = $categorie->getChamps(); $champs = array_filter($champs, function (Champ $champ) use ($date) { if ($date === null) return $champ->estNonHistorise(); $wasExisting = ($champ->getHistoCreation() === null or $champ->getHistoCreation() <= $date); $wasntHistorise = ($champ->getHistoDestruction() === null or $champ->getHistoDestruction() >= $date); return ($wasExisting and $wasntHistorise); Loading Loading
src/UnicaenAutoform/View/Helper/InstanceAsTextHelper.php +2 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ class InstanceAsTextHelper extends AbstractHelper $categories = $formulaire->getCategories(); $categories = array_filter($categories, function (Categorie $categorie) use ($date) { if ($date === null) return $categorie->estNonHistorise(); $wasExisting = ($categorie->getHistoCreation() === null or $categorie->getHistoCreation() <= $date); $wasntHistorise = ($categorie->getHistoDestruction() === null or $categorie->getHistoDestruction() >= $date); return ($wasExisting and $wasntHistorise); Loading @@ -42,6 +43,7 @@ class InstanceAsTextHelper extends AbstractHelper $champs = $categorie->getChamps(); $champs = array_filter($champs, function (Champ $champ) use ($date) { if ($date === null) return $champ->estNonHistorise(); $wasExisting = ($champ->getHistoCreation() === null or $champ->getHistoCreation() <= $date); $wasntHistorise = ($champ->getHistoDestruction() === null or $champ->getHistoDestruction() >= $date); return ($wasExisting and $wasntHistorise); Loading