Loading documentation/release/4.0.0.md 0 → 100644 +33 −0 Original line number Diff line number Diff line Version 4.0.0 (XX/XX/2023) ==== Évolution --- - Interface pour déclarer les référentiel de compétences. - Changement des formulaires de saisie des compétences : Référentiel et Identifiant source. - Interface d'import des compétences depuis le CSV d'un référentiel de compétence Modification en BD --- ```postgresql ``` Evolution des librairies --- ```bash ``` Ou réinstalle des libraires ```bash rm -fr vendor rm -fr composer.lock composer install ``` Evolution des macros et templates --- module/Element/src/Element/Form/Competence/CompetenceForm.php +13 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,18 @@ class CompetenceForm extends Form { 'data-live-search' => 'true', ], ]); //identifiant dans referentiel $this->add([ 'type' => Text::class, 'name' => 'identifiant', 'options' => [ 'label' => "Identifiant dans le référentiel source:", 'label_options' => [ 'disable_html_escape' => true, ], ], 'attributes' => [ 'id' => 'identifiant', ], ]); //submit $this->add([ Loading @@ -114,6 +126,7 @@ class CompetenceForm extends Form { 'type' => [ 'required' => true, ], 'theme' => [ 'required' => false, ], 'referentiel' => [ 'required' => false, ], 'identifiant' => [ 'required' => false, ], ])); } } No newline at end of file module/Element/src/Element/Form/Competence/CompetenceHydrator.php +5 −3 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ class CompetenceHydrator implements HydratorInterface { $data['type'] = ($object->getType())?$object->getType()->getId():null; $data['theme'] = ($object->getTheme())?$object->getTheme()->getId():null; $data['referentiel'] = ($object->getReferentiel())?$object->getReferentiel()->getId():null; $data['identifiant'] = ($object->getIdSource())??null; return $data; } Loading @@ -36,11 +37,12 @@ class CompetenceHydrator implements HydratorInterface { { $object->setLibelle($data['libelle']); $object->setDescription($data['description']); $object->setIdSource($data['identifiant']??null); $type = null; $theme = null; if (isset($data['type']) AND $data['type'] != '') $type = $this->getCompetenceTypeService()->getCompetenceType($data['type']); if (isset($data['theme']) AND $data['theme'] != '') $theme = $this->getCompetenceThemeService()->getCompetenceTheme($data['theme']); $referentiel = null; $theme = null; $type = null; if (isset($data['referentiel']) AND $data['referentiel'] != '') $referentiel = $this->getCompetenceReferentielService()->getCompetenceReferentiel($data['referentiel']); if (isset($data['theme']) AND $data['theme'] != '') $theme = $this->getCompetenceThemeService()->getCompetenceTheme($data['theme']); if (isset($data['type']) AND $data['type'] != '') $type = $this->getCompetenceTypeService()->getCompetenceType($data['type']); $object->setReferentiel($referentiel); $object->setTheme($theme); Loading Loading
documentation/release/4.0.0.md 0 → 100644 +33 −0 Original line number Diff line number Diff line Version 4.0.0 (XX/XX/2023) ==== Évolution --- - Interface pour déclarer les référentiel de compétences. - Changement des formulaires de saisie des compétences : Référentiel et Identifiant source. - Interface d'import des compétences depuis le CSV d'un référentiel de compétence Modification en BD --- ```postgresql ``` Evolution des librairies --- ```bash ``` Ou réinstalle des libraires ```bash rm -fr vendor rm -fr composer.lock composer install ``` Evolution des macros et templates ---
module/Element/src/Element/Form/Competence/CompetenceForm.php +13 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,18 @@ class CompetenceForm extends Form { 'data-live-search' => 'true', ], ]); //identifiant dans referentiel $this->add([ 'type' => Text::class, 'name' => 'identifiant', 'options' => [ 'label' => "Identifiant dans le référentiel source:", 'label_options' => [ 'disable_html_escape' => true, ], ], 'attributes' => [ 'id' => 'identifiant', ], ]); //submit $this->add([ Loading @@ -114,6 +126,7 @@ class CompetenceForm extends Form { 'type' => [ 'required' => true, ], 'theme' => [ 'required' => false, ], 'referentiel' => [ 'required' => false, ], 'identifiant' => [ 'required' => false, ], ])); } } No newline at end of file
module/Element/src/Element/Form/Competence/CompetenceHydrator.php +5 −3 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ class CompetenceHydrator implements HydratorInterface { $data['type'] = ($object->getType())?$object->getType()->getId():null; $data['theme'] = ($object->getTheme())?$object->getTheme()->getId():null; $data['referentiel'] = ($object->getReferentiel())?$object->getReferentiel()->getId():null; $data['identifiant'] = ($object->getIdSource())??null; return $data; } Loading @@ -36,11 +37,12 @@ class CompetenceHydrator implements HydratorInterface { { $object->setLibelle($data['libelle']); $object->setDescription($data['description']); $object->setIdSource($data['identifiant']??null); $type = null; $theme = null; if (isset($data['type']) AND $data['type'] != '') $type = $this->getCompetenceTypeService()->getCompetenceType($data['type']); if (isset($data['theme']) AND $data['theme'] != '') $theme = $this->getCompetenceThemeService()->getCompetenceTheme($data['theme']); $referentiel = null; $theme = null; $type = null; if (isset($data['referentiel']) AND $data['referentiel'] != '') $referentiel = $this->getCompetenceReferentielService()->getCompetenceReferentiel($data['referentiel']); if (isset($data['theme']) AND $data['theme'] != '') $theme = $this->getCompetenceThemeService()->getCompetenceTheme($data['theme']); if (isset($data['type']) AND $data['type'] != '') $type = $this->getCompetenceTypeService()->getCompetenceType($data['type']); $object->setReferentiel($referentiel); $object->setTheme($theme); Loading