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/Entity/Db/EcoleDoctorale.php +12 −11 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 12 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -119,6 +119,18 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface $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 */ Loading Loading @@ -183,15 +195,4 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface 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 module/Application/src/Application/Entity/Db/Etablissement.php +22 −11 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 22 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -22,11 +22,20 @@ class Etablissement */ protected $structure; /** * Etablissement constructor. */ public function __construct() { $this->structure = new Structure(); } /** * Etablissement prettyPrint * @return string */ public function __toString() { public function __toString() { return $this->structure->getLibelle(); } Loading Loading @@ -86,6 +95,18 @@ class Etablissement $this->getStructure()->setCheminLogo($cheminLogo); } /** * @return string */ public function getLogoContent() { if ($this->getCheminLogo() === null) { $image = Util::createImageWithText("Aucun logo pour l'Etab|" . $this->getCode() . "|" . $this->getLibelle(), 200, 200); return $image; } return file_get_contents(APPLICATION_DIR . $this->getCheminLogo()) ?: null; } /** * @param Structure $structure * @return self Loading Loading @@ -153,14 +174,4 @@ class Etablissement $this->roles = $roles; } public function getLogoContent() { if ($this->cheminLogo === null) { $image = Util::createImageWithText("Aucun logo pour l'Etab|" . $this->getCode() . "|" . $this->getLibelle(), 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/Entity/Db/EcoleDoctorale.php +12 −11 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 12 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -119,6 +119,18 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface $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 */ Loading Loading @@ -183,15 +195,4 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface 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
module/Application/src/Application/Entity/Db/Etablissement.php +22 −11 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 22 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -22,11 +22,20 @@ class Etablissement */ protected $structure; /** * Etablissement constructor. */ public function __construct() { $this->structure = new Structure(); } /** * Etablissement prettyPrint * @return string */ public function __toString() { public function __toString() { return $this->structure->getLibelle(); } Loading Loading @@ -86,6 +95,18 @@ class Etablissement $this->getStructure()->setCheminLogo($cheminLogo); } /** * @return string */ public function getLogoContent() { if ($this->getCheminLogo() === null) { $image = Util::createImageWithText("Aucun logo pour l'Etab|" . $this->getCode() . "|" . $this->getLibelle(), 200, 200); return $image; } return file_get_contents(APPLICATION_DIR . $this->getCheminLogo()) ?: null; } /** * @param Structure $structure * @return self Loading Loading @@ -153,14 +174,4 @@ class Etablissement $this->roles = $roles; } public function getLogoContent() { if ($this->cheminLogo === null) { $image = Util::createImageWithText("Aucun logo pour l'Etab|" . $this->getCode() . "|" . $this->getLibelle(), 200, 200); return $image; } return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } } No newline at end of file