Loading module/Application/src/Application/Controller/Factory/IndexControllerFactory.php +7 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Application\Controller\Factory; use Application\Controller\IndexController; use Application\Service\Actualite\ActualiteService; use Application\Service\EcoleDoctorale\EcoleDoctoraleService; use Application\Service\Etablissement\EtablissementService; use Application\Service\These\TheseService; use Application\Service\Variable\VariableService; Loading Loading @@ -34,6 +35,12 @@ class IndexControllerFactory $etablissementService = $container->get('EtablissementService'); $controller->setEtablissementService($etablissementService); /** * @var EcoleDoctoraleService $ecoleDoctoraleService */ $ecoleDoctoraleService = $container->get(EcoleDoctoraleService::class); $controller->setEcoleDoctoraleService($ecoleDoctoraleService); /** * @var VariableService $variableService */ Loading module/Application/src/Application/Controller/IndexController.php +3 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Application\Controller; use Application\Entity\Db\Variable; use Application\Service\Actualite\ActualiteServiceAwareTrait; use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait; use Application\Service\Etablissement\EtablissementServiceAwareTrait; use Application\Service\These\TheseServiceAwareTrait; use Application\Service\Variable\VariableServiceAwareTrait; Loading @@ -16,6 +17,7 @@ use Zend\View\Model\ViewModel; class IndexController extends AbstractController { use VariableServiceAwareTrait; use EcoleDoctoraleServiceAwareTrait; use EtablissementServiceAwareTrait; use TheseServiceAwareTrait; use ActualiteServiceAwareTrait; Loading Loading @@ -44,7 +46,6 @@ class IndexController extends AbstractController print $value; print "<br/>"; } } } Loading @@ -70,6 +71,7 @@ class IndexController extends AbstractController 'role' => $this->userContextService->getSelectedIdentityRole(), 'estDoctorant' => (bool) $this->userContextService->getIdentityDoctorant(), 'url' => $this->actualiteService->isActif() ? $this->actualiteService->getUrl() : null, 'offre' => $this->actualiteService->isOffre() ? $this->getEcoleDoctoraleService()->getOffre() : null, ]); if ($response instanceof ViewModel) { Loading module/Application/src/Application/Entity/Db/EcoleDoctorale.php +47 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,15 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter */ protected $structure; /** * @var string */ protected $theme; /** * @var string */ protected $offreThese; /** * EcoleDoctorale constructor. */ Loading Loading @@ -164,4 +173,42 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter { return $this->structure; } /** * @return string */ public function getTheme() { return $this->theme; } /** * @param string $theme * @return EcoleDoctorale */ public function setTheme($theme) { $this->theme = $theme; return $this; } /** * @return string */ public function getOffreThese() { return $this->offreThese; } /** * @param string $offreThese * @return EcoleDoctorale */ public function setOffreThese($offreThese) { $this->offreThese = $offreThese; return $this; } } No newline at end of file module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.EcoleDoctorale.dcm.xml +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ <generator strategy="SEQUENCE"/> </id> <field name="theme" type="string" column="THEME" length="1024" nullable="true"/> <field name="offreThese" type="string" column="OFFRE_THESE" length="1024" nullable="true"/> <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/> <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/> Loading module/Application/src/Application/Form/EcoleDoctoraleForm.php +10 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,16 @@ class EcoleDoctoraleForm extends Form ->setLabel("IdREF :") ); $this->add(( new Text('theme')) ->setLabel("Thème :") ); $this->add(( new Text('offre-these')) ->setLabel("Lien vers l'offre de thèse :") ); $this->add( (new Checkbox('estFerme')) ->setLabel("École doctorale fermée") Loading Loading
module/Application/src/Application/Controller/Factory/IndexControllerFactory.php +7 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Application\Controller\Factory; use Application\Controller\IndexController; use Application\Service\Actualite\ActualiteService; use Application\Service\EcoleDoctorale\EcoleDoctoraleService; use Application\Service\Etablissement\EtablissementService; use Application\Service\These\TheseService; use Application\Service\Variable\VariableService; Loading Loading @@ -34,6 +35,12 @@ class IndexControllerFactory $etablissementService = $container->get('EtablissementService'); $controller->setEtablissementService($etablissementService); /** * @var EcoleDoctoraleService $ecoleDoctoraleService */ $ecoleDoctoraleService = $container->get(EcoleDoctoraleService::class); $controller->setEcoleDoctoraleService($ecoleDoctoraleService); /** * @var VariableService $variableService */ Loading
module/Application/src/Application/Controller/IndexController.php +3 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Application\Controller; use Application\Entity\Db\Variable; use Application\Service\Actualite\ActualiteServiceAwareTrait; use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait; use Application\Service\Etablissement\EtablissementServiceAwareTrait; use Application\Service\These\TheseServiceAwareTrait; use Application\Service\Variable\VariableServiceAwareTrait; Loading @@ -16,6 +17,7 @@ use Zend\View\Model\ViewModel; class IndexController extends AbstractController { use VariableServiceAwareTrait; use EcoleDoctoraleServiceAwareTrait; use EtablissementServiceAwareTrait; use TheseServiceAwareTrait; use ActualiteServiceAwareTrait; Loading Loading @@ -44,7 +46,6 @@ class IndexController extends AbstractController print $value; print "<br/>"; } } } Loading @@ -70,6 +71,7 @@ class IndexController extends AbstractController 'role' => $this->userContextService->getSelectedIdentityRole(), 'estDoctorant' => (bool) $this->userContextService->getIdentityDoctorant(), 'url' => $this->actualiteService->isActif() ? $this->actualiteService->getUrl() : null, 'offre' => $this->actualiteService->isOffre() ? $this->getEcoleDoctoraleService()->getOffre() : null, ]); if ($response instanceof ViewModel) { Loading
module/Application/src/Application/Entity/Db/EcoleDoctorale.php +47 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,15 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter */ protected $structure; /** * @var string */ protected $theme; /** * @var string */ protected $offreThese; /** * EcoleDoctorale constructor. */ Loading Loading @@ -164,4 +173,42 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter { return $this->structure; } /** * @return string */ public function getTheme() { return $this->theme; } /** * @param string $theme * @return EcoleDoctorale */ public function setTheme($theme) { $this->theme = $theme; return $this; } /** * @return string */ public function getOffreThese() { return $this->offreThese; } /** * @param string $offreThese * @return EcoleDoctorale */ public function setOffreThese($offreThese) { $this->offreThese = $offreThese; return $this; } } No newline at end of file
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.EcoleDoctorale.dcm.xml +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ <generator strategy="SEQUENCE"/> </id> <field name="theme" type="string" column="THEME" length="1024" nullable="true"/> <field name="offreThese" type="string" column="OFFRE_THESE" length="1024" nullable="true"/> <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/> <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/> Loading
module/Application/src/Application/Form/EcoleDoctoraleForm.php +10 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,16 @@ class EcoleDoctoraleForm extends Form ->setLabel("IdREF :") ); $this->add(( new Text('theme')) ->setLabel("Thème :") ); $this->add(( new Text('offre-these')) ->setLabel("Lien vers l'offre de thèse :") ); $this->add( (new Checkbox('estFerme')) ->setLabel("École doctorale fermée") Loading