Loading config/autoload/unicaen-app.global.php +1 −1 Changes for config/autoload/unicaen-app.global.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ $versionFile = dirname(dirname(__DIR__)) . '/VERSION'; if (file_exists($versionFile)) { $version = file_get_contents($versionFile); } else { $version = AppConfig::getEnv() . ' (pas de numéro)'; $version = AppConfig::getEnv() . '12345'; } return [ Loading data/ddl/sequence.php +1 −0 Changes for data/ddl/sequence.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ return [ 'STRUCTURE_ID_SEQ', 'SYNC_LOG_ID_SEQ', 'TAUX_HORAIRE_HETD_ID_SEQ', 'TAG_ID_SEQ', 'TBL_AGREMENT_ID_SEQ', 'TBL_CHARGENS_ID_SEQ', 'TBL_CHARGENS_SEUILS_DEF_ID_SEQ', Loading data/ddl/table/TAG.php 0 → 100644 +135 −0 Changes for data/ddl/table/TAG.php: 135 added lines, 0 removed lines. Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'TAG', 'temporary' => FALSE, 'logging' => TRUE, 'commentaire' => NULL, 'sequence' => 'TAG_SEQ', 'columns' => [ 'CODE' => [ 'name' => 'CODE', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 3, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 2, 'commentaire' => NULL, ], 'HISTO_CREATEUR_ID' => [ 'name' => 'HISTO_CREATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 6, 'commentaire' => NULL, ], 'HISTO_CREATION' => [ 'name' => 'HISTO_CREATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 5, 'commentaire' => NULL, ], 'HISTO_DESTRUCTEUR_ID' => [ 'name' => 'HISTO_DESTRUCTEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 10, 'commentaire' => NULL, ], 'HISTO_DESTRUCTION' => [ 'name' => 'HISTO_DESTRUCTION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 9, 'commentaire' => NULL, ], 'HISTO_MODIFICATEUR_ID' => [ 'name' => 'HISTO_MODIFICATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 8, 'commentaire' => NULL, ], 'HISTO_MODIFICATION' => [ 'name' => 'HISTO_MODIFICATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 7, 'commentaire' => NULL, ], 'ID' => [ 'name' => 'ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], 'LIBELLE_COURT' => [ 'name' => 'LIBELLE_COURT', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 50, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 3, 'commentaire' => NULL, ], 'LIBELLE_LONG' => [ 'name' => 'LIBELLE_LONG', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 200, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 4, 'commentaire' => NULL, ], ], ]; //@formatter:on data/privileges.php +9 −0 Changes for data/privileges.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -156,6 +156,15 @@ return [ 'administration-edition' => 'Administration - Édition', ], ], 'tag' => [ 'libelle' => 'Tag', 'privileges' => [ 'visualisation' => 'Visualisation', 'edition' => 'Édition', 'administration-visualisation' => 'Administration - Visualisation', 'administration-edition' => 'Administration - Édition', ], ], 'referentiel' => [ 'libelle' => 'Référentiel', Loading module/Application/config/tag.config.php 0 → 100644 +108 −0 Changes for module/Application/config/tag.config.php: 108 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application; use Application\Provider\Privilege\Privileges; use UnicaenAuth\Guard\PrivilegeController; return [ 'router' => [ 'routes' => [ 'tag' => [ 'type' => 'Literal', 'options' => [ 'route' => '/tags', 'defaults' => [ 'controller' => 'Application\Controller\Tag', 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'supprimer' => [ 'type' => 'Segment', 'options' => [ 'route' => '/supprimer/:tag', 'constraints' => [ 'tag' => '[0-9]*', ], 'defaults' => [ 'action' => 'supprimer', ], ], ], 'saisir' => [ 'type' => 'Segment', 'options' => [ 'route' => '/saisir/[:tag]', 'constraints' => [ 'tag' => '[0-9]*', ], 'defaults' => [ 'action' => 'saisir', ], ], ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'administration' => [ 'pages' => [ 'finances' => [ 'pages' => [ 'tag' => [ 'label' => 'Tags', 'route' => 'tag', 'resource' => PrivilegeController::getResourceId('Application\Controller\Tag', 'index'), 'order' => 50, 'color' => '#BBCF55', ], ], ], ], ], ], ], ], ], 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => 'Application\Controller\Tag', 'action' => ['index'], //TODO ajouter le privilege pour gestion des tags 'privileges' => Privileges::TAG_ADMINISTRATION_VISUALISATION, ], [ 'controller' => 'Application\Controller\Tag', 'action' => ['saisir', 'supprimer'], //TODO ajouter le privilege pour gestion des tags 'privileges' => Privileges::TAG_ADMINISTRATION_EDITION, ], ], ], ], 'controllers' => [ 'invokables' => [ 'Application\Controller\Tag' => Controller\TagController::class, ], ], 'service_manager' => [ 'invokables' => [ Service\TagService::class => Service\TagService::class, ], ], 'view_helpers' => [ ], 'form_elements' => [ 'invokables' => [ Form\Tag\TagSaisieForm::class => Form\Tag\TagSaisieForm::class, ], ], ]; Loading
config/autoload/unicaen-app.global.php +1 −1 Changes for config/autoload/unicaen-app.global.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ $versionFile = dirname(dirname(__DIR__)) . '/VERSION'; if (file_exists($versionFile)) { $version = file_get_contents($versionFile); } else { $version = AppConfig::getEnv() . ' (pas de numéro)'; $version = AppConfig::getEnv() . '12345'; } return [ Loading
data/ddl/sequence.php +1 −0 Changes for data/ddl/sequence.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ return [ 'STRUCTURE_ID_SEQ', 'SYNC_LOG_ID_SEQ', 'TAUX_HORAIRE_HETD_ID_SEQ', 'TAG_ID_SEQ', 'TBL_AGREMENT_ID_SEQ', 'TBL_CHARGENS_ID_SEQ', 'TBL_CHARGENS_SEUILS_DEF_ID_SEQ', Loading
data/ddl/table/TAG.php 0 → 100644 +135 −0 Changes for data/ddl/table/TAG.php: 135 added lines, 0 removed lines. Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'TAG', 'temporary' => FALSE, 'logging' => TRUE, 'commentaire' => NULL, 'sequence' => 'TAG_SEQ', 'columns' => [ 'CODE' => [ 'name' => 'CODE', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 3, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 2, 'commentaire' => NULL, ], 'HISTO_CREATEUR_ID' => [ 'name' => 'HISTO_CREATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 6, 'commentaire' => NULL, ], 'HISTO_CREATION' => [ 'name' => 'HISTO_CREATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 5, 'commentaire' => NULL, ], 'HISTO_DESTRUCTEUR_ID' => [ 'name' => 'HISTO_DESTRUCTEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 10, 'commentaire' => NULL, ], 'HISTO_DESTRUCTION' => [ 'name' => 'HISTO_DESTRUCTION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 9, 'commentaire' => NULL, ], 'HISTO_MODIFICATEUR_ID' => [ 'name' => 'HISTO_MODIFICATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 8, 'commentaire' => NULL, ], 'HISTO_MODIFICATION' => [ 'name' => 'HISTO_MODIFICATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 7, 'commentaire' => NULL, ], 'ID' => [ 'name' => 'ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], 'LIBELLE_COURT' => [ 'name' => 'LIBELLE_COURT', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 50, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 3, 'commentaire' => NULL, ], 'LIBELLE_LONG' => [ 'name' => 'LIBELLE_LONG', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 200, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 4, 'commentaire' => NULL, ], ], ]; //@formatter:on
data/privileges.php +9 −0 Changes for data/privileges.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -156,6 +156,15 @@ return [ 'administration-edition' => 'Administration - Édition', ], ], 'tag' => [ 'libelle' => 'Tag', 'privileges' => [ 'visualisation' => 'Visualisation', 'edition' => 'Édition', 'administration-visualisation' => 'Administration - Visualisation', 'administration-edition' => 'Administration - Édition', ], ], 'referentiel' => [ 'libelle' => 'Référentiel', Loading
module/Application/config/tag.config.php 0 → 100644 +108 −0 Changes for module/Application/config/tag.config.php: 108 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application; use Application\Provider\Privilege\Privileges; use UnicaenAuth\Guard\PrivilegeController; return [ 'router' => [ 'routes' => [ 'tag' => [ 'type' => 'Literal', 'options' => [ 'route' => '/tags', 'defaults' => [ 'controller' => 'Application\Controller\Tag', 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'supprimer' => [ 'type' => 'Segment', 'options' => [ 'route' => '/supprimer/:tag', 'constraints' => [ 'tag' => '[0-9]*', ], 'defaults' => [ 'action' => 'supprimer', ], ], ], 'saisir' => [ 'type' => 'Segment', 'options' => [ 'route' => '/saisir/[:tag]', 'constraints' => [ 'tag' => '[0-9]*', ], 'defaults' => [ 'action' => 'saisir', ], ], ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'administration' => [ 'pages' => [ 'finances' => [ 'pages' => [ 'tag' => [ 'label' => 'Tags', 'route' => 'tag', 'resource' => PrivilegeController::getResourceId('Application\Controller\Tag', 'index'), 'order' => 50, 'color' => '#BBCF55', ], ], ], ], ], ], ], ], ], 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => 'Application\Controller\Tag', 'action' => ['index'], //TODO ajouter le privilege pour gestion des tags 'privileges' => Privileges::TAG_ADMINISTRATION_VISUALISATION, ], [ 'controller' => 'Application\Controller\Tag', 'action' => ['saisir', 'supprimer'], //TODO ajouter le privilege pour gestion des tags 'privileges' => Privileges::TAG_ADMINISTRATION_EDITION, ], ], ], ], 'controllers' => [ 'invokables' => [ 'Application\Controller\Tag' => Controller\TagController::class, ], ], 'service_manager' => [ 'invokables' => [ Service\TagService::class => Service\TagService::class, ], ], 'view_helpers' => [ ], 'form_elements' => [ 'invokables' => [ Form\Tag\TagSaisieForm::class => Form\Tag\TagSaisieForm::class, ], ], ];