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

Hydrator : Laminas

parent dfd0634c
Branches
Tags
No related merge requests found
Pipeline #15918 passed
...@@ -11,7 +11,7 @@ class CategorieHydrator implements HydratorInterface { ...@@ -11,7 +11,7 @@ class CategorieHydrator implements HydratorInterface {
* @param Categorie $object * @param Categorie $object
* @return array * @return array
*/ */
public function extract(object $object) public function extract(object $object) : array
{ {
$data = [ $data = [
'libelle' => $object->getLibelle(), 'libelle' => $object->getLibelle(),
......
...@@ -11,7 +11,7 @@ class ChampHydrator implements HydratorInterface { ...@@ -11,7 +11,7 @@ class ChampHydrator implements HydratorInterface {
* @param Champ $object * @param Champ $object
* @return array * @return array
*/ */
public function extract(object $object) public function extract(object $object) : array
{ {
$data = [ $data = [
'type' => $object->getElement(), 'type' => $object->getElement(),
......
...@@ -11,7 +11,7 @@ class FormulaireHydrator implements HydratorInterface { ...@@ -11,7 +11,7 @@ class FormulaireHydrator implements HydratorInterface {
* @param Formulaire $object * @param Formulaire $object
* @return array * @return array
*/ */
public function extract(object $object) public function extract(object $object) : array
{ {
$data = [ $data = [
'libelle' => $object->getLibelle(), 'libelle' => $object->getLibelle(),
......
...@@ -65,7 +65,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch ...@@ -65,7 +65,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch
href="<?php echo $this->url('autoform/formulaire/modifier/ajouter-categorie', ['formulaire' => $formulaire->getId()], [], true); ?>" href="<?php echo $this->url('autoform/formulaire/modifier/ajouter-categorie', ['formulaire' => $formulaire->getId()], [], true); ?>"
class="btn btn-primary ajax-modal" data-event="modification" class="btn btn-primary ajax-modal" data-event="modification"
> >
<span class="icon ajouter"></span> <span class="icon icon-ajouter"></span>
Ajouter une catégorie Ajouter une catégorie
</a> </a>
<?php endif; ?> <?php endif; ?>
...@@ -101,7 +101,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch ...@@ -101,7 +101,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch
href="<?php echo $this->url('autoform/formulaire/modifier/modifier-categorie', ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId()], [], true); ?>" href="<?php echo $this->url('autoform/formulaire/modifier/modifier-categorie', ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId()], [], true); ?>"
class="ajax-modal" data-event="modification" class="ajax-modal" data-event="modification"
> >
<span class="icon editer" title="Modifier la catégorie"></span></a> <span class="icon icon-editer" title="Modifier la catégorie"></span></a>
<a <a
<?php /** @see \UnicaenAutoform\Controller\FormulaireController::bougerCategorieAction() */ ?> <?php /** @see \UnicaenAutoform\Controller\FormulaireController::bougerCategorieAction() */ ?>
href="<?php echo $this->url('autoform/formulaire/modifier/bouger-categorie', ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId(), 'direction' => 'haut'], [], true); ?>" href="<?php echo $this->url('autoform/formulaire/modifier/bouger-categorie', ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId(), 'direction' => 'haut'], [], true); ?>"
...@@ -126,7 +126,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch ...@@ -126,7 +126,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch
<?php /** @see \UnicaenAutoform\Controller\FormulaireController::restaurerCategorieAction() */ ?> <?php /** @see \UnicaenAutoform\Controller\FormulaireController::restaurerCategorieAction() */ ?>
href="<?php echo $this->url('autoform/formulaire/modifier/restaurer-categorie', ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId()], [], true); ?>" href="<?php echo $this->url('autoform/formulaire/modifier/restaurer-categorie', ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId()], [], true); ?>"
> >
<span class="icon restaurer" title="Restaurer la catégorie" ></span></a> <span class="icon icon-restaurer" title="Restaurer la catégorie" ></span></a>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
...@@ -150,7 +150,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch ...@@ -150,7 +150,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch
class="btn btn-primary ajax-modal" class="btn btn-primary ajax-modal"
data-event="modification" data-event="modification"
> >
<span class="icon ajouter"></span> <span class="icon icon-ajouter"></span>
Ajouter un champ Ajouter un champ
</a> </a>
<?php endif; ?> <?php endif; ?>
...@@ -188,7 +188,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch ...@@ -188,7 +188,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch
class="ajax-modal" class="ajax-modal"
data-event="modification" data-event="modification"
> >
<span class="icon editer" title="Modifier la catégorie"></span></a> <span class="icon icon-editer" title="Modifier la catégorie"></span></a>
<a <a
<?php /** @see \UnicaenAutoform\Controller\FormulaireController::bougerChampAction() */ ?> <?php /** @see \UnicaenAutoform\Controller\FormulaireController::bougerChampAction() */ ?>
href="<?php echo $this->url('autoform/formulaire/categorie/champ/bouger', href="<?php echo $this->url('autoform/formulaire/categorie/champ/bouger',
...@@ -221,7 +221,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch ...@@ -221,7 +221,7 @@ $canDetruireChamp = $this->isAllowed(ChampPrivileges::getResourceId(Ch
['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId(), 'champ' => $champ->getId()], ['formulaire' => $formulaire->getId(), 'categorie' => $categorie->getId(), 'champ' => $champ->getId()],
[], [],
true); ?>"> true); ?>">
<span class="icon restaurer" title="Restaurer la catégorie" ></span></a> <span class="icon icon-restaurer" title="Restaurer la catégorie" ></span></a>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
......
...@@ -55,9 +55,9 @@ $this->headTitle('Index des validations'); ...@@ -55,9 +55,9 @@ $this->headTitle('Index des validations');
<?php if ($canEditerValidation) : ?> <?php if ($canEditerValidation) : ?>
<a href="<?php //echo $this->url('autoform/validation/afficher-validation', ['demande' => $validation->getDemande()->getId(), 'validation' => $validation->getId()],[], true); ?>"> <a href="<?php //echo $this->url('autoform/validation/afficher-validation', ['demande' => $validation->getDemande()->getId(), 'validation' => $validation->getId()],[], true); ?>">
<span class="icon editer" title="Modifier la validation"></span></a> <span class="icon icon-editer" title="Modifier la validation"></span></a>
<?php else : ?> <?php else : ?>
<span class="icon editer" style="color:lightgray;"></span> <span class="icon icon-editer" style="color:lightgray;"></span>
<?php endif; ?> <?php endif; ?>
<?php if ($canVoirValidation) : ?> <?php if ($canVoirValidation) : ?>
...@@ -71,13 +71,13 @@ $this->headTitle('Index des validations'); ...@@ -71,13 +71,13 @@ $this->headTitle('Index des validations');
<span class="icon icon-historiser" title="Historiser la validation"></span></a> <span class="icon icon-historiser" title="Historiser la validation"></span></a>
<?php else : ?> <?php else : ?>
<a href="<?php //echo $this->url('autoform/validation/restaurer', ['demande' => $validation->getDemande()->getId(), 'validation' => $validation->getId()],[], true); ?>"> <a href="<?php //echo $this->url('autoform/validation/restaurer', ['demande' => $validation->getDemande()->getId(), 'validation' => $validation->getId()],[], true); ?>">
<span class="icon restaurer" title="restaurer la validation"></span></a> <span class="icon icon-restaurer" title="restaurer la validation"></span></a>
<?php endif; ?> <?php endif; ?>
<?php else : ?> <?php else : ?>
<?php if ($validation->estNonHistorise()) : ?> <?php if ($validation->estNonHistorise()) : ?>
<span class="icon icon-historiser" style="color:lightgray;"></span> <span class="icon icon-historiser" style="color:lightgray;"></span>
<?php else : ?> <?php else : ?>
<span class="icon restaurer" style="color:lightgray;"></span> <span class="icon icon-restaurer" style="color:lightgray;"></span>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment