Loading data/SQL/indicateur.sql +6 Changes for data/SQL/indicateur.sql: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ UPDATE OTH.CATEGORIE_PRIVILEGE SET CODE = 'indicateur', LIBELLE = 'Indicateur', UPDATE OTH.PRIVILEGE SET CATEGORIE_ID = 50, CODE = 'consultation', LIBELLE = 'Consultation des indicateurs', ORDRE = 10 WHERE ID = 270; UPDATE OTH.PRIVILEGE SET CATEGORIE_ID = 50, CODE = 'exportation', LIBELLE = 'Exportation des indicateurs', ORDRE = 20 WHERE ID = 271; UPDATE OTH.PRIVILEGE SET CATEGORIE_ID = 50, CODE = 'rafraichissement', LIBELLE = 'Rafraîchissement des indicateurs', ORDRE = 30 WHERE ID = 272; INSERT INTO OTH.PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES (273, 50, 'edition', 'Édition des indicateurs', 40); UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 302 AND PRIVILEGE_ID = 270; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 306 AND PRIVILEGE_ID = 270; Loading Loading @@ -50,3 +51,8 @@ UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 313 AND PRIVILEGE_ID = 272; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 314 AND PRIVILEGE_ID = 272; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 315 AND PRIVILEGE_ID = 272; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 320 AND PRIVILEGE_ID = 272; create sequence INDICATEUR_ID_seq; select INDICATEUR_ID_SEQ.nextval() from dual; INSERT INTO ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) VALUE(302,273); No newline at end of file module/Indicateur/config/module.config.php +90 −119 Changes for module/Indicateur/config/module.config.php: 90 added lines, 119 removed lines. Original line number Diff line number Diff line <?php use Application\Provider\Privilege\IndicateurPrivileges; use Indicateur\Provider\Privilege\IndicateurPrivileges; use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain; use Doctrine\DBAL\Driver\OCI8\Driver as OCI8; use Doctrine\ORM\Mapping\Driver\XmlDriver; use Indicateur\Controller\Factory\IndicateurControllerFactory; use Indicateur\Controller\IndicateurController; use Indicateur\Form\IndicateurForm; use Indicateur\Form\IndicateurFormFactory; use Indicateur\Form\IndicateurHydrator; use Indicateur\Service\Factory\IndicateurServiceFactory; use Indicateur\Service\IndicateurService; use Indicateur\View\Helper\CompletIndicateurIndividuHelper; use Indicateur\View\Helper\CompletIndicateurTheseHelper; use Indicateur\View\Helper\ResumeIndicateurIndividuHelper; use Indicateur\View\Helper\ResumeIndicateurTheseHelper; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return array( Loading @@ -13,13 +26,12 @@ return array( 'controller' => IndicateurController::class, 'action' => [ 'index', 'soutenance-depassee', 'acteurs-sans-mail', 'doctorants-sans-mail', 'theses-anciennes', 'theses-a-soutenir', 'theses-sans-pdc', 'theses-sans-depot', 'view', 'toggle-indicateur', 'lister-indicateur', 'editer-indicateur', 'effacer-indicateur', 'rafraichir-indicateur', ], 'privileges' => [ IndicateurPrivileges::INDICATEUR_CONSULTATION, Loading @@ -29,13 +41,7 @@ return array( [ 'controller' => IndicateurController::class, 'action' => [ 'export-soutenance-depassee', 'export-acteurs-sans-mail', 'export-doctorants-sans-mail', 'export-theses-anciennes', 'export-theses-a-soutenir', 'export-theses-sans-pdc', 'export-theses-sans-depot', 'export', ], 'privileges' => [ IndicateurPrivileges::INDICATEUR_EXPORTATION, Loading @@ -44,7 +50,28 @@ return array( ], ], ], 'doctrine' => [], 'doctrine' => [ 'driver' => [ 'orm_default' => [ 'class' => MappingDriverChain::class, 'drivers' => [ 'Indicateur\Model' => 'orm_default_xml_driver', ], ], 'orm_default_xml_driver' => [ 'class' => XmlDriver::class, 'cache' => 'array', 'paths' => [ __DIR__ . '/../src/Indicateur/Model/Mapping', ], ], ], 'connection' => [ 'orm_default' => [ 'driver_class' => OCI8::class, ], ], ], 'navigation' => [ 'default' => [ Loading Loading @@ -78,166 +105,102 @@ return array( ], ], 'child_routes' => [ 'soutenance-depassee' => [ 'view' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/soutenance-depassee', 'route' => '/view/:indicateur', 'defaults' => [ 'action' => 'soutenance-depassee', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-soutenance-depassee', ], ], 'controller' => IndicateurController::class, 'action' => 'view', ], ], ], 'acteurs-sans-mail' => [ 'editer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/acteurs-sans-mail', 'route' => '/editer[/:indicateur]', 'defaults' => [ 'action' => 'acteurs-sans-mail', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-acteurs-sans-mail', ], ], ], ], 'controller' => IndicateurController::class, 'action' => 'editer-indicateur', ], 'theses-a-soutenir' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-a-soutenir', 'defaults' => [ 'action' => 'theses-a-soutenir', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'lister' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'route' => '/lister', 'defaults' => [ 'action' => 'export-theses-a-soutenir', ], ], 'controller' => IndicateurController::class, 'action' => 'lister-indicateur', ], ], ], 'theses-sans-pdc' => [ 'toggle' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-sans-pdc', 'route' => '/toggle/:indicateur', 'defaults' => [ 'action' => 'theses-sans-pdc', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-theses-sans-pdc', ], ], ], ], 'controller' => IndicateurController::class, 'action' => 'toggle-indicateur', ], 'theses-sans-depot' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-sans-depot', 'defaults' => [ 'action' => 'theses-sans-depot', ], ], 'child_routes' => [ 'export' => [ 'rafraichir' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'route' => '/rafraichir/:indicateur', 'defaults' => [ 'action' => 'export-theses-sans-depot', ], ], ], ], 'controller' => IndicateurController::class, 'action' => 'rafraichir-indicateur', ], 'doctorants-sans-mail' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/doctorants-sans-mail', 'defaults' => [ 'action' => 'doctorants-sans-mail', ], ], 'child_routes' => [ 'export' => [ 'effacer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'route' => '/effacer/:indicateur', 'defaults' => [ 'action' => 'export-doctorants-sans-mail', ], ], 'controller' => IndicateurController::class, 'action' => 'effacer-indicateur', ], ], ], 'theses-anciennes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-anciennes', 'route' => '/export/:indicateur', 'defaults' => [ 'action' => 'theses-anciennes', 'controller' => IndicateurController::class, 'action' => 'export', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-theses-anciennes', ], ], ], ], ], 'form_elements' => [ 'factories' => [ IndicateurForm::class => IndicateurFormFactory::class, ], ], 'hydrators' => [ 'invokables' => [ IndicateurHydrator::class => IndicateurHydrator::class, ], ], 'service_manager' => [ 'factories' => [], 'factories' => [ IndicateurService::class => IndicateurServiceFactory::class, ], ], 'controllers' => [ Loading @@ -245,6 +208,14 @@ return array( IndicateurController::class => IndicateurControllerFactory::class, ], ], 'view_helpers' => [ 'invokables' => [ 'completIndicateurThese' => CompletIndicateurTheseHelper::class, 'completIndicateurIndividu' => CompletIndicateurIndividuHelper::class, 'resumeIndicateurThese' => ResumeIndicateurTheseHelper::class, 'resumeIndicateurIndividu' => ResumeIndicateurIndividuHelper::class, ], ], 'view_manager' => [ 'template_path_stack' => [ __DIR__ . '/../view', Loading module/Indicateur/src/Indicateur/Controller/Factory/IndicateurControllerFactory.php +4 Changes for module/Indicateur/src/Indicateur/Controller/Factory/IndicateurControllerFactory.php: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Application\Service\Etablissement\EtablissementService; use Application\Service\Individu\IndividuService; use Application\Service\These\TheseService; use Indicateur\Controller\IndicateurController; use Indicateur\Service\IndicateurService; use Zend\Mvc\Controller\ControllerManager; class IndicateurControllerFactory Loading @@ -22,17 +23,20 @@ class IndicateurControllerFactory * @var TheseService $theseService * @var AnomalieService $anomalieService * @var EtablissementService $etablissementService * @var IndicateurService $indicateurService */ $individuService = $controllerManager->getServiceLocator()->get('IndividuService'); $theseService = $controllerManager->getServiceLocator()->get('TheseService'); $anomalieService = $controllerManager->getServiceLocator()->get(AnomalieService::class); $etablissementService = $controllerManager->getServiceLocator()->get('EtablissementService'); $indicateurService = $controllerManager->getServiceLocator()->get(IndicateurService::class); $controller = new IndicateurController(); $controller->setIndividuService($individuService); $controller->setTheseService($theseService); $controller->setAnomalieService($anomalieService); $controller->setEtablissementService($etablissementService); $controller->setIndicateurService($indicateurService); return $controller; } Loading module/Indicateur/src/Indicateur/Controller/IndicateurController.php +101 −294 File changed.Preview size limit exceeded, changes collapsed. Show changes module/Indicateur/src/Indicateur/Form/IndicateurForm.php +74 Changes for module/Indicateur/src/Indicateur/Form/IndicateurForm.php: 74 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Indicateur\Form; use Indicateur\Model\Indicateur; use Zend\Form\Element\Select; use Zend\Form\Element\Submit; use Zend\Form\Element\Text; use Zend\Form\Element\Textarea; use Zend\Form\Form; class IndicateurForm extends Form { public function init() { $this->add([ 'type' => Text::class, 'name' => 'libelle', 'options' => [ 'label' => "Libellé de l'indicateur :", ], ]); $this->add([ 'type' => Textarea::class, 'name' => 'description', 'options' => [ 'label' => "Description de l'indicateur :", ], ]); $this->add([ 'type' => Textarea::class, 'name' => 'requete', 'options' => [ 'label' => "Requète associé à l'indicateur :", ], ]); $this->add([ 'type' => Select::class, 'name' => 'displayAs', 'options' => [ 'label' => "Doit être affiché comme :", 'value_options' => [ Indicateur::THESE => 'Thèse', Indicateur::INDIVIDU => 'Individu', ], ], ]); $this->add([ 'type' => Select::class, 'name' => 'class', 'options' => [ 'label' => "Niveau d'affichage :", 'value_options' => [ 'default' => 'Défaut', 'info' => 'Informatif', 'warning' => 'Avertissement', 'danger' => 'Problème', 'success' => 'Succès', ], ], ]); $this ->add(( new Submit('submit')) ->setValue("Enregistrer") ->setAttribute('class', 'btn btn-primary') ); } } No newline at end of file Loading
data/SQL/indicateur.sql +6 Changes for data/SQL/indicateur.sql: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ UPDATE OTH.CATEGORIE_PRIVILEGE SET CODE = 'indicateur', LIBELLE = 'Indicateur', UPDATE OTH.PRIVILEGE SET CATEGORIE_ID = 50, CODE = 'consultation', LIBELLE = 'Consultation des indicateurs', ORDRE = 10 WHERE ID = 270; UPDATE OTH.PRIVILEGE SET CATEGORIE_ID = 50, CODE = 'exportation', LIBELLE = 'Exportation des indicateurs', ORDRE = 20 WHERE ID = 271; UPDATE OTH.PRIVILEGE SET CATEGORIE_ID = 50, CODE = 'rafraichissement', LIBELLE = 'Rafraîchissement des indicateurs', ORDRE = 30 WHERE ID = 272; INSERT INTO OTH.PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES (273, 50, 'edition', 'Édition des indicateurs', 40); UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 302 AND PRIVILEGE_ID = 270; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 306 AND PRIVILEGE_ID = 270; Loading Loading @@ -50,3 +51,8 @@ UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 313 AND PRIVILEGE_ID = 272; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 314 AND PRIVILEGE_ID = 272; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 315 AND PRIVILEGE_ID = 272; UPDATE OTH.ROLE_PRIVILEGE SET WHERE ROLE_ID = 320 AND PRIVILEGE_ID = 272; create sequence INDICATEUR_ID_seq; select INDICATEUR_ID_SEQ.nextval() from dual; INSERT INTO ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) VALUE(302,273); No newline at end of file
module/Indicateur/config/module.config.php +90 −119 Changes for module/Indicateur/config/module.config.php: 90 added lines, 119 removed lines. Original line number Diff line number Diff line <?php use Application\Provider\Privilege\IndicateurPrivileges; use Indicateur\Provider\Privilege\IndicateurPrivileges; use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain; use Doctrine\DBAL\Driver\OCI8\Driver as OCI8; use Doctrine\ORM\Mapping\Driver\XmlDriver; use Indicateur\Controller\Factory\IndicateurControllerFactory; use Indicateur\Controller\IndicateurController; use Indicateur\Form\IndicateurForm; use Indicateur\Form\IndicateurFormFactory; use Indicateur\Form\IndicateurHydrator; use Indicateur\Service\Factory\IndicateurServiceFactory; use Indicateur\Service\IndicateurService; use Indicateur\View\Helper\CompletIndicateurIndividuHelper; use Indicateur\View\Helper\CompletIndicateurTheseHelper; use Indicateur\View\Helper\ResumeIndicateurIndividuHelper; use Indicateur\View\Helper\ResumeIndicateurTheseHelper; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return array( Loading @@ -13,13 +26,12 @@ return array( 'controller' => IndicateurController::class, 'action' => [ 'index', 'soutenance-depassee', 'acteurs-sans-mail', 'doctorants-sans-mail', 'theses-anciennes', 'theses-a-soutenir', 'theses-sans-pdc', 'theses-sans-depot', 'view', 'toggle-indicateur', 'lister-indicateur', 'editer-indicateur', 'effacer-indicateur', 'rafraichir-indicateur', ], 'privileges' => [ IndicateurPrivileges::INDICATEUR_CONSULTATION, Loading @@ -29,13 +41,7 @@ return array( [ 'controller' => IndicateurController::class, 'action' => [ 'export-soutenance-depassee', 'export-acteurs-sans-mail', 'export-doctorants-sans-mail', 'export-theses-anciennes', 'export-theses-a-soutenir', 'export-theses-sans-pdc', 'export-theses-sans-depot', 'export', ], 'privileges' => [ IndicateurPrivileges::INDICATEUR_EXPORTATION, Loading @@ -44,7 +50,28 @@ return array( ], ], ], 'doctrine' => [], 'doctrine' => [ 'driver' => [ 'orm_default' => [ 'class' => MappingDriverChain::class, 'drivers' => [ 'Indicateur\Model' => 'orm_default_xml_driver', ], ], 'orm_default_xml_driver' => [ 'class' => XmlDriver::class, 'cache' => 'array', 'paths' => [ __DIR__ . '/../src/Indicateur/Model/Mapping', ], ], ], 'connection' => [ 'orm_default' => [ 'driver_class' => OCI8::class, ], ], ], 'navigation' => [ 'default' => [ Loading Loading @@ -78,166 +105,102 @@ return array( ], ], 'child_routes' => [ 'soutenance-depassee' => [ 'view' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/soutenance-depassee', 'route' => '/view/:indicateur', 'defaults' => [ 'action' => 'soutenance-depassee', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-soutenance-depassee', ], ], 'controller' => IndicateurController::class, 'action' => 'view', ], ], ], 'acteurs-sans-mail' => [ 'editer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/acteurs-sans-mail', 'route' => '/editer[/:indicateur]', 'defaults' => [ 'action' => 'acteurs-sans-mail', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-acteurs-sans-mail', ], ], ], ], 'controller' => IndicateurController::class, 'action' => 'editer-indicateur', ], 'theses-a-soutenir' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-a-soutenir', 'defaults' => [ 'action' => 'theses-a-soutenir', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'lister' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'route' => '/lister', 'defaults' => [ 'action' => 'export-theses-a-soutenir', ], ], 'controller' => IndicateurController::class, 'action' => 'lister-indicateur', ], ], ], 'theses-sans-pdc' => [ 'toggle' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-sans-pdc', 'route' => '/toggle/:indicateur', 'defaults' => [ 'action' => 'theses-sans-pdc', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-theses-sans-pdc', ], ], ], ], 'controller' => IndicateurController::class, 'action' => 'toggle-indicateur', ], 'theses-sans-depot' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-sans-depot', 'defaults' => [ 'action' => 'theses-sans-depot', ], ], 'child_routes' => [ 'export' => [ 'rafraichir' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'route' => '/rafraichir/:indicateur', 'defaults' => [ 'action' => 'export-theses-sans-depot', ], ], ], ], 'controller' => IndicateurController::class, 'action' => 'rafraichir-indicateur', ], 'doctorants-sans-mail' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/doctorants-sans-mail', 'defaults' => [ 'action' => 'doctorants-sans-mail', ], ], 'child_routes' => [ 'export' => [ 'effacer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'route' => '/effacer/:indicateur', 'defaults' => [ 'action' => 'export-doctorants-sans-mail', ], ], 'controller' => IndicateurController::class, 'action' => 'effacer-indicateur', ], ], ], 'theses-anciennes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/theses-anciennes', 'route' => '/export/:indicateur', 'defaults' => [ 'action' => 'theses-anciennes', 'controller' => IndicateurController::class, 'action' => 'export', ], ], 'child_routes' => [ 'export' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/export', 'defaults' => [ 'action' => 'export-theses-anciennes', ], ], ], ], ], 'form_elements' => [ 'factories' => [ IndicateurForm::class => IndicateurFormFactory::class, ], ], 'hydrators' => [ 'invokables' => [ IndicateurHydrator::class => IndicateurHydrator::class, ], ], 'service_manager' => [ 'factories' => [], 'factories' => [ IndicateurService::class => IndicateurServiceFactory::class, ], ], 'controllers' => [ Loading @@ -245,6 +208,14 @@ return array( IndicateurController::class => IndicateurControllerFactory::class, ], ], 'view_helpers' => [ 'invokables' => [ 'completIndicateurThese' => CompletIndicateurTheseHelper::class, 'completIndicateurIndividu' => CompletIndicateurIndividuHelper::class, 'resumeIndicateurThese' => ResumeIndicateurTheseHelper::class, 'resumeIndicateurIndividu' => ResumeIndicateurIndividuHelper::class, ], ], 'view_manager' => [ 'template_path_stack' => [ __DIR__ . '/../view', Loading
module/Indicateur/src/Indicateur/Controller/Factory/IndicateurControllerFactory.php +4 Changes for module/Indicateur/src/Indicateur/Controller/Factory/IndicateurControllerFactory.php: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Application\Service\Etablissement\EtablissementService; use Application\Service\Individu\IndividuService; use Application\Service\These\TheseService; use Indicateur\Controller\IndicateurController; use Indicateur\Service\IndicateurService; use Zend\Mvc\Controller\ControllerManager; class IndicateurControllerFactory Loading @@ -22,17 +23,20 @@ class IndicateurControllerFactory * @var TheseService $theseService * @var AnomalieService $anomalieService * @var EtablissementService $etablissementService * @var IndicateurService $indicateurService */ $individuService = $controllerManager->getServiceLocator()->get('IndividuService'); $theseService = $controllerManager->getServiceLocator()->get('TheseService'); $anomalieService = $controllerManager->getServiceLocator()->get(AnomalieService::class); $etablissementService = $controllerManager->getServiceLocator()->get('EtablissementService'); $indicateurService = $controllerManager->getServiceLocator()->get(IndicateurService::class); $controller = new IndicateurController(); $controller->setIndividuService($individuService); $controller->setTheseService($theseService); $controller->setAnomalieService($anomalieService); $controller->setEtablissementService($etablissementService); $controller->setIndicateurService($indicateurService); return $controller; } Loading
module/Indicateur/src/Indicateur/Controller/IndicateurController.php +101 −294 File changed.Preview size limit exceeded, changes collapsed. Show changes
module/Indicateur/src/Indicateur/Form/IndicateurForm.php +74 Changes for module/Indicateur/src/Indicateur/Form/IndicateurForm.php: 74 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Indicateur\Form; use Indicateur\Model\Indicateur; use Zend\Form\Element\Select; use Zend\Form\Element\Submit; use Zend\Form\Element\Text; use Zend\Form\Element\Textarea; use Zend\Form\Form; class IndicateurForm extends Form { public function init() { $this->add([ 'type' => Text::class, 'name' => 'libelle', 'options' => [ 'label' => "Libellé de l'indicateur :", ], ]); $this->add([ 'type' => Textarea::class, 'name' => 'description', 'options' => [ 'label' => "Description de l'indicateur :", ], ]); $this->add([ 'type' => Textarea::class, 'name' => 'requete', 'options' => [ 'label' => "Requète associé à l'indicateur :", ], ]); $this->add([ 'type' => Select::class, 'name' => 'displayAs', 'options' => [ 'label' => "Doit être affiché comme :", 'value_options' => [ Indicateur::THESE => 'Thèse', Indicateur::INDIVIDU => 'Individu', ], ], ]); $this->add([ 'type' => Select::class, 'name' => 'class', 'options' => [ 'label' => "Niveau d'affichage :", 'value_options' => [ 'default' => 'Défaut', 'info' => 'Informatif', 'warning' => 'Avertissement', 'danger' => 'Problème', 'success' => 'Succès', ], ], ]); $this ->add(( new Submit('submit')) ->setValue("Enregistrer") ->setAttribute('class', 'btn btn-primary') ); } } No newline at end of file