Loading module/Application/config/others/ecole-doctorale.config.php +6 Changes for module/Application/config/others/ecole-doctorale.config.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ use Application\Controller\Factory\EcoleDoctoraleControllerFactory; use Application\Form\Factory\EcoleDoctoraleFormFactory; use Application\Form\Factory\EcoleDoctoraleHydratorFactory; use Application\Provider\Privilege\EcoleDoctoralePrivileges; use Application\Service\EcoleDoctorale\EcoleDoctoraleService; use Application\View\Helper\EcoleDoctoraleHelper; Loading Loading @@ -163,6 +164,11 @@ return [ 'EcoleDoctoraleForm' => EcoleDoctoraleFormFactory::class, ], ], 'hydrators' => array( 'factories' => array( 'EcoleDoctoraleHydrator' => EcoleDoctoraleHydratorFactory::class, ) ), 'view_helpers' => [ 'invokables' => [ 'ed' => EcoleDoctoraleHelper::class, Loading module/Application/config/others/etablissement.config.php +6 Changes for module/Application/config/others/etablissement.config.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ use Application\Controller\Factory\EtablissementControllerFactory; use Application\Form\Factory\EtablissementFormFactory; use Application\Form\Factory\EtablissementHydratorFactory; use Application\Provider\Privilege\EcoleDoctoralePrivileges; use Application\Service\Etablissement\EtablissementService; use Application\View\Helper\EtablissementHelper; Loading Loading @@ -160,6 +161,11 @@ return [ 'EtablissementForm' => EtablissementFormFactory::class, ], ], 'hydrators' => array( 'factories' => array( 'EtablissementHydrator' => EtablissementHydratorFactory::class, ) ), 'view_helpers' => [ 'invokables' => [ 'etab' => EtablissementHelper::class, Loading module/Application/config/others/unite-recherche.config.php +6 −1 Changes for module/Application/config/others/unite-recherche.config.php: 6 added lines, 1 removed line. Original line number Diff line number Diff line <?php use Application\Controller\Factory\UniteRechercheControllerFactory; use Application\Controller\UniteRechercheController; use Application\Form\Factory\UniteRechercheFormFactory; use Application\Form\Factory\UniteRechercheHydratorFactory; use Application\Provider\Privilege\UniteRecherchePrivileges; use Application\Service\UniteRecherche\UniteRechercheService; use UnicaenAuth\Guard\PrivilegeController; Loading Loading @@ -163,4 +163,9 @@ return [ 'UniteRechercheForm' => UniteRechercheFormFactory::class, ], ], 'hydrators' => array( 'factories' => array( 'UniteRechercheHydrator' => UniteRechercheHydratorFactory::class, ) ), ]; module/Application/src/Application/Controller/TheseController.php −2 Changes for module/Application/src/Application/Controller/TheseController.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -152,8 +152,6 @@ class TheseController extends AbstractController implements $qb = $this->theseService->getRepository()->createQueryBuilder('t') ->addSelect('di')->leftJoin('th.individu', 'di') ->addSelect('ed')->leftJoin('t.ecoleDoctorale', 'ed') ->addSelect('ur')->leftJoin('t.uniteRecherche', 'ur') ->addSelect('a')->leftJoin('t.acteurs', 'a') ->addSelect('i')->leftJoin('a.individu', 'i') ->addSelect('r')->leftJoin('a.role', 'r') Loading module/Application/src/Application/Entity/Db/EcoleDoctorale.php +95 −16 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 95 added lines, 16 removed lines. Original line number Diff line number Diff line Loading @@ -14,12 +14,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * EcoleDoctorale */ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, SourceAwareInterface class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var integer */ Loading @@ -30,6 +29,11 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour */ protected $sourceCode; /** * @var Structure */ protected $structure; /** * @var Collection */ Loading @@ -41,12 +45,19 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour public function __construct() { $this->ecoleDoctoraleIndividus = new ArrayCollection(); $this->structure = new Structure(); } /** * Get id * * @return integer * EcoleDoctorale prettyPrint * @return string */ public function __toString() { return $this->structure->getLibelle(); } /** * @return int */ public function getId() { Loading Loading @@ -76,6 +87,85 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour return $this->sourceCode; } /** * @return string */ public function getLibelle() { return $this->getStructure()->getLibelle(); } /** * @param string $libelle */ public function setLibelle($libelle) { $this->getStructure()->setLibelle($libelle); } /** * @return string */ public function getCheminLogo() { return $this->getStructure()->getCheminLogo(); } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->getStructure()->setCheminLogo($cheminLogo); } /** * @return string */ public function getLogoContent() { if ($this->getCheminLogo() === null) { $image = Util::createImageWithText("Aucun logo pour l'ED|[".$this->getSourceCode()." - ".$this->getSigle()."]",200,200); return $image; } return file_get_contents(APPLICATION_DIR . $this->getCheminLogo()) ?: null; } /** * @return string */ public function getSigle() { return $this->getStructure()->getSigle(); } /** * @param string $sigle */ public function setSigle($sigle) { $this->getStructure()->setSigle($sigle); } /** * @param Structure $structure * @return self */ public function setStructure($structure) { $this->structure = $structure; return $this; } /** * @return Structure */ public function getStructure() { return $this->structure; } /** * @return Collection */ Loading Loading @@ -105,15 +195,4 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour return $this; } public function getLogoContent() { if ($this->cheminLogo === null) { $image = Util::createImageWithText("Aucun logo pour l'ED|[".$this->getSourceCode()." - ".$this->getSigle()."]",200,200); return $image; } return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } } No newline at end of file Loading
module/Application/config/others/ecole-doctorale.config.php +6 Changes for module/Application/config/others/ecole-doctorale.config.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ use Application\Controller\Factory\EcoleDoctoraleControllerFactory; use Application\Form\Factory\EcoleDoctoraleFormFactory; use Application\Form\Factory\EcoleDoctoraleHydratorFactory; use Application\Provider\Privilege\EcoleDoctoralePrivileges; use Application\Service\EcoleDoctorale\EcoleDoctoraleService; use Application\View\Helper\EcoleDoctoraleHelper; Loading Loading @@ -163,6 +164,11 @@ return [ 'EcoleDoctoraleForm' => EcoleDoctoraleFormFactory::class, ], ], 'hydrators' => array( 'factories' => array( 'EcoleDoctoraleHydrator' => EcoleDoctoraleHydratorFactory::class, ) ), 'view_helpers' => [ 'invokables' => [ 'ed' => EcoleDoctoraleHelper::class, Loading
module/Application/config/others/etablissement.config.php +6 Changes for module/Application/config/others/etablissement.config.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ use Application\Controller\Factory\EtablissementControllerFactory; use Application\Form\Factory\EtablissementFormFactory; use Application\Form\Factory\EtablissementHydratorFactory; use Application\Provider\Privilege\EcoleDoctoralePrivileges; use Application\Service\Etablissement\EtablissementService; use Application\View\Helper\EtablissementHelper; Loading Loading @@ -160,6 +161,11 @@ return [ 'EtablissementForm' => EtablissementFormFactory::class, ], ], 'hydrators' => array( 'factories' => array( 'EtablissementHydrator' => EtablissementHydratorFactory::class, ) ), 'view_helpers' => [ 'invokables' => [ 'etab' => EtablissementHelper::class, Loading
module/Application/config/others/unite-recherche.config.php +6 −1 Changes for module/Application/config/others/unite-recherche.config.php: 6 added lines, 1 removed line. Original line number Diff line number Diff line <?php use Application\Controller\Factory\UniteRechercheControllerFactory; use Application\Controller\UniteRechercheController; use Application\Form\Factory\UniteRechercheFormFactory; use Application\Form\Factory\UniteRechercheHydratorFactory; use Application\Provider\Privilege\UniteRecherchePrivileges; use Application\Service\UniteRecherche\UniteRechercheService; use UnicaenAuth\Guard\PrivilegeController; Loading Loading @@ -163,4 +163,9 @@ return [ 'UniteRechercheForm' => UniteRechercheFormFactory::class, ], ], 'hydrators' => array( 'factories' => array( 'UniteRechercheHydrator' => UniteRechercheHydratorFactory::class, ) ), ];
module/Application/src/Application/Controller/TheseController.php −2 Changes for module/Application/src/Application/Controller/TheseController.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -152,8 +152,6 @@ class TheseController extends AbstractController implements $qb = $this->theseService->getRepository()->createQueryBuilder('t') ->addSelect('di')->leftJoin('th.individu', 'di') ->addSelect('ed')->leftJoin('t.ecoleDoctorale', 'ed') ->addSelect('ur')->leftJoin('t.uniteRecherche', 'ur') ->addSelect('a')->leftJoin('t.acteurs', 'a') ->addSelect('i')->leftJoin('a.individu', 'i') ->addSelect('r')->leftJoin('a.role', 'r') Loading
module/Application/src/Application/Entity/Db/EcoleDoctorale.php +95 −16 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 95 added lines, 16 removed lines. Original line number Diff line number Diff line Loading @@ -14,12 +14,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * EcoleDoctorale */ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, SourceAwareInterface class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var integer */ Loading @@ -30,6 +29,11 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour */ protected $sourceCode; /** * @var Structure */ protected $structure; /** * @var Collection */ Loading @@ -41,12 +45,19 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour public function __construct() { $this->ecoleDoctoraleIndividus = new ArrayCollection(); $this->structure = new Structure(); } /** * Get id * * @return integer * EcoleDoctorale prettyPrint * @return string */ public function __toString() { return $this->structure->getLibelle(); } /** * @return int */ public function getId() { Loading Loading @@ -76,6 +87,85 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour return $this->sourceCode; } /** * @return string */ public function getLibelle() { return $this->getStructure()->getLibelle(); } /** * @param string $libelle */ public function setLibelle($libelle) { $this->getStructure()->setLibelle($libelle); } /** * @return string */ public function getCheminLogo() { return $this->getStructure()->getCheminLogo(); } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->getStructure()->setCheminLogo($cheminLogo); } /** * @return string */ public function getLogoContent() { if ($this->getCheminLogo() === null) { $image = Util::createImageWithText("Aucun logo pour l'ED|[".$this->getSourceCode()." - ".$this->getSigle()."]",200,200); return $image; } return file_get_contents(APPLICATION_DIR . $this->getCheminLogo()) ?: null; } /** * @return string */ public function getSigle() { return $this->getStructure()->getSigle(); } /** * @param string $sigle */ public function setSigle($sigle) { $this->getStructure()->setSigle($sigle); } /** * @param Structure $structure * @return self */ public function setStructure($structure) { $this->structure = $structure; return $this; } /** * @return Structure */ public function getStructure() { return $this->structure; } /** * @return Collection */ Loading Loading @@ -105,15 +195,4 @@ class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, Sour return $this; } public function getLogoContent() { if ($this->cheminLogo === null) { $image = Util::createImageWithText("Aucun logo pour l'ED|[".$this->getSourceCode()." - ".$this->getSigle()."]",200,200); return $image; } return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } } No newline at end of file