Commit 21754c4e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Modernisation code Application

parent e8d74bf6
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Application/src/Application/Form/FicheMetierImportation/FicheMetierImportationForm.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class FicheMetierImportationForm extends Form {
            'type' => File::class,
            'name' => 'fichier',
            'options' => [
                'label' => 'Fiche métier au format CSV <span class="icon icon-star" title="Champ obligatoire"></span> :',
                'label' => 'Fiche métier au format CSV <span class="icon icon-asterisque" title="Champ obligatoire"></span> :',
                'label_options' => [ 'disable_html_escape' => true, ],
            ],
        ]);
@@ -27,7 +27,7 @@ class FicheMetierImportationForm extends Form {
            'type' => Select::class,
            'name' => 'mode',
            'options' => [
                'label' => 'Mode  <span class="icon icon-star" title="Champ obligatoire"></span> :',
                'label' => 'Mode  <span class="icon icon-asterisque" title="Champ obligatoire"></span> :',
                'label_options' => [ 'disable_html_escape' => true, ],
                'value_options' => [
                    'preview' => "Prévisualisation",
+14 −58
Changes for module/Element/src/Element/Entity/Db/Application.php: 14 added lines, 58 removed lines.
Original line number Diff line number Diff line
@@ -11,98 +11,54 @@ class Application implements HistoriqueAwareInterface, HasDescriptionInterface {
    use HistoriqueAwareTrait;
    use HasDescriptionTrait;

    /** @var integer */
    private $id;
    /** @var string */
    private $libelle;
    /** @var string */
    private $url;
    /** @var boolean */
    private $actif;
    /** @var ApplicationTheme */
    private $groupe;
    private ?int  $id = -1;
    private ?string $libelle = null;
    private ?string $url = null;
    private bool $actif = true;
    private ?ApplicationTheme $groupe = null;

    public function __construct()
    {
    }

    /**
     * @return int
     */
    public function getId()
    public function getId() : ?int
    {
        return $this->id;
    }

    /**
     * @return string
     */
    public function getLibelle()
    public function getLibelle() : ?string
    {
        return $this->libelle;
    }

    /**
     * @param string $libelle
     * @return Application
     */
    public function setLibelle($libelle)
    public function setLibelle(string $libelle) : void
    {
        $this->libelle = $libelle;
        return $this;
    }

    /**
     * @return string
     */
    public function getUrl()
    public function getUrl() : ?string
    {
        return $this->url;
    }

    /**
     * @param string $url
     * @return Application
     */
    public function setUrl($url)
    public function setUrl(?string $url) : void
    {
        $this->url = $url;
        return $this;
    }

    /**
     * @return bool
     */
    public function isActif()
    public function isActif() : bool
    {
        return $this->actif;
    }

    /**
     * @param bool $actif
     * @return Application
     */
    public function setActif($actif)
    public function setActif(bool $actif) : void
    {
        $this->actif = $actif;
        return $this;
    }

    /**
     * @return ApplicationTheme
     */
    public function getGroupe()
    public function getGroupe() : ?ApplicationTheme
    {
        return $this->groupe;
    }

    /**
     * @param ApplicationTheme $groupe
     * @return Application
     */
    public function setGroupe($groupe)
    public function setGroupe(?ApplicationTheme $groupe) : void
    {
        $this->groupe = $groupe;
        return $this;
    }
}
 No newline at end of file
+2 −11
Changes for module/Element/src/Element/Service/Application/ApplicationServiceAwareTrait.php: 2 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -4,25 +4,16 @@ namespace Element\Service\Application;

Trait ApplicationServiceAwareTrait {

    /** @var ApplicationService */
    private $applicationService;
    private ApplicationService $applicationService;

    /**
     * @return ApplicationService
     */
    public function getApplicationService() : ApplicationService
    {
        return $this->applicationService;
    }

    /**
     * @param ApplicationService $applicationService
     * @return ApplicationService
     */
    public function setApplicationService(ApplicationService $applicationService) : ApplicationService
    public function setApplicationService(ApplicationService $applicationService) : void
    {
        $this->applicationService = $applicationService;
        return $this->applicationService;
    }

}
 No newline at end of file
+4 −0
Changes for public/unicaen/app/css/unicaen-icon.css: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -280,3 +280,7 @@
.icon.icon-lier:before {
    content: "\f0c1";
}

.icon.icon-asterisque:before {
    content: "\f069";
}
 No newline at end of file