Loading module/Application/src/Application/Entity/Db/EcoleDoctorale.php +1 −87 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 1 added line, 87 removed lines. Original line number Diff line number Diff line Loading @@ -14,20 +14,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * EcoleDoctorale */ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var string */ protected $libelle; /** * @var string */ protected $sigle; /** * @var integer Loading @@ -39,11 +30,6 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface */ protected $sourceCode; /** * @var string */ protected $cheminLogo; /** * @var Collection */ Loading @@ -57,60 +43,6 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface $this->ecoleDoctoraleIndividus = new ArrayCollection(); } /** * @return string */ public function __toString() { return $this->getLibelle(); } /** * Set libelleCourt * * @param string $libelle * @return self */ public function setLibelle($libelle) { $this->libelle = $libelle; return $this; } /** * Get libelleCourt * * @return string */ public function getLibelle() { return $this->libelle; } /** * Set libelleLong * * @param string $sigle * @return self */ public function setSigle($sigle) { $this->sigle = $sigle; return $this; } /** * Get libelleLong * * @return string */ public function getSigle() { return $this->sigle; } /** * Get id * Loading Loading @@ -184,22 +116,4 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } /** * @return string */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } } No newline at end of file module/Application/src/Application/Entity/Db/Etablissement.php +1 −45 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 1 added line, 45 removed lines. Original line number Diff line number Diff line Loading @@ -7,17 +7,15 @@ use UnicaenApp\Util; /** * Etablissement */ class Etablissement class Etablissement extends Structure { const CODE_COMUE = 'COMUE'; protected $id; protected $code; protected $libelle; protected $theses; protected $doctorants; protected $roles; protected $cheminLogo; /** * @return mixed Loading Loading @@ -51,22 +49,6 @@ class Etablissement $this->code = $code; } /** * @return mixed */ public function getLibelle() { return $this->libelle; } /** * @param mixed $libelle */ public function setLibelle($libelle) { $this->libelle = $libelle; } /** * @return mixed */ Loading Loading @@ -115,32 +97,6 @@ class Etablissement $this->roles = $roles; } /** * @return mixed */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param mixed $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } /** * @return string */ public function __toString() { return $this->getLibelle(); } public function getLogoContent() { if ($this->cheminLogo === null) { Loading module/Application/src/Application/Entity/Db/Structure.php +113 Changes for module/Application/src/Application/Entity/Db/Structure.php: 113 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Entity\Db; use UnicaenApp\Entity\HistoriqueAwareInterface; use UnicaenApp\Entity\HistoriqueAwareTrait; use UnicaenApp\Util; use UnicaenImport\Entity\Db\Interfaces\SourceAwareInterface; use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * Structure */ class Structure implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var string id * @var string sigle * @var string libelle * @var string cheminLogo */ private $id; protected $sigle; protected $libelle; protected $cheminLogo; /** * @return string */ public function getId() { return $this->id; } /** * @param string $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getSigle() { return $this->sigle; } /** * @param string $sigle */ public function setSigle($sigle) { $this->sigle = $sigle; } /** * @return string */ public function getLibelle() { return $this->libelle; } /** * @param string $libelle */ public function setLibelle($libelle) { $this->libelle = $libelle; } /** * @return string */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } public function __toString() { return $this->getLibelle(); } public function getLogoContent() { if ($this->cheminLogo === null) { $image = Util::createImageWithText("Aucun logo pour la structure|[".$this->getId()." - ".$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/UniteRecherche.php +1 −95 Changes for module/Application/src/Application/Entity/Db/UniteRecherche.php: 1 added line, 95 removed lines. Original line number Diff line number Diff line Loading @@ -15,20 +15,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * UniteRecherche */ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface class UniteRecherche extends Structure implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var string */ protected $libelle; /** * @var string */ protected $sigle; /** * @var string Loading @@ -50,11 +41,6 @@ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface */ protected $sourceCode; /** * @var string */ protected $cheminLogo; /** * @var Collection */ Loading @@ -68,68 +54,6 @@ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface $this->uniteRechercheIndividus = new ArrayCollection(); } public function __toString() { return $this->getLibelle(); } /** * Set libelleCourt * * @param string $libelle * @return UniteRecherche */ public function setLibelle($libelle) { $this->libelle = $libelle; return $this; } /** * Get libelleCourt * * @return string */ public function getLibelle() { return $this->libelle; } /** * Set libelleLong * * @param string $sigle * @return UniteRecherche */ public function setSigle($sigle) { $this->sigle = $sigle; return $this; } /** * Get libelleLong * * @return string */ public function getSigle() { return $this->sigle; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set sourceCode * Loading Loading @@ -231,22 +155,4 @@ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } /** * @return string */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } } No newline at end of file ressources/Logos/ED/181-SIMEM.png −2.15 KiB Loading image diff... Loading
module/Application/src/Application/Entity/Db/EcoleDoctorale.php +1 −87 Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 1 added line, 87 removed lines. Original line number Diff line number Diff line Loading @@ -14,20 +14,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * EcoleDoctorale */ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface class EcoleDoctorale extends Structure implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var string */ protected $libelle; /** * @var string */ protected $sigle; /** * @var integer Loading @@ -39,11 +30,6 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface */ protected $sourceCode; /** * @var string */ protected $cheminLogo; /** * @var Collection */ Loading @@ -57,60 +43,6 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface $this->ecoleDoctoraleIndividus = new ArrayCollection(); } /** * @return string */ public function __toString() { return $this->getLibelle(); } /** * Set libelleCourt * * @param string $libelle * @return self */ public function setLibelle($libelle) { $this->libelle = $libelle; return $this; } /** * Get libelleCourt * * @return string */ public function getLibelle() { return $this->libelle; } /** * Set libelleLong * * @param string $sigle * @return self */ public function setSigle($sigle) { $this->sigle = $sigle; return $this; } /** * Get libelleLong * * @return string */ public function getSigle() { return $this->sigle; } /** * Get id * Loading Loading @@ -184,22 +116,4 @@ class EcoleDoctorale implements HistoriqueAwareInterface, SourceAwareInterface return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } /** * @return string */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } } No newline at end of file
module/Application/src/Application/Entity/Db/Etablissement.php +1 −45 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 1 added line, 45 removed lines. Original line number Diff line number Diff line Loading @@ -7,17 +7,15 @@ use UnicaenApp\Util; /** * Etablissement */ class Etablissement class Etablissement extends Structure { const CODE_COMUE = 'COMUE'; protected $id; protected $code; protected $libelle; protected $theses; protected $doctorants; protected $roles; protected $cheminLogo; /** * @return mixed Loading Loading @@ -51,22 +49,6 @@ class Etablissement $this->code = $code; } /** * @return mixed */ public function getLibelle() { return $this->libelle; } /** * @param mixed $libelle */ public function setLibelle($libelle) { $this->libelle = $libelle; } /** * @return mixed */ Loading Loading @@ -115,32 +97,6 @@ class Etablissement $this->roles = $roles; } /** * @return mixed */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param mixed $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } /** * @return string */ public function __toString() { return $this->getLibelle(); } public function getLogoContent() { if ($this->cheminLogo === null) { Loading
module/Application/src/Application/Entity/Db/Structure.php +113 Changes for module/Application/src/Application/Entity/Db/Structure.php: 113 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Entity\Db; use UnicaenApp\Entity\HistoriqueAwareInterface; use UnicaenApp\Entity\HistoriqueAwareTrait; use UnicaenApp\Util; use UnicaenImport\Entity\Db\Interfaces\SourceAwareInterface; use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * Structure */ class Structure implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var string id * @var string sigle * @var string libelle * @var string cheminLogo */ private $id; protected $sigle; protected $libelle; protected $cheminLogo; /** * @return string */ public function getId() { return $this->id; } /** * @param string $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getSigle() { return $this->sigle; } /** * @param string $sigle */ public function setSigle($sigle) { $this->sigle = $sigle; } /** * @return string */ public function getLibelle() { return $this->libelle; } /** * @param string $libelle */ public function setLibelle($libelle) { $this->libelle = $libelle; } /** * @return string */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } public function __toString() { return $this->getLibelle(); } public function getLogoContent() { if ($this->cheminLogo === null) { $image = Util::createImageWithText("Aucun logo pour la structure|[".$this->getId()." - ".$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/UniteRecherche.php +1 −95 Changes for module/Application/src/Application/Entity/Db/UniteRecherche.php: 1 added line, 95 removed lines. Original line number Diff line number Diff line Loading @@ -15,20 +15,11 @@ use UnicaenImport\Entity\Db\Traits\SourceAwareTrait; /** * UniteRecherche */ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface class UniteRecherche extends Structure implements HistoriqueAwareInterface, SourceAwareInterface { use HistoriqueAwareTrait; use SourceAwareTrait; /** * @var string */ protected $libelle; /** * @var string */ protected $sigle; /** * @var string Loading @@ -50,11 +41,6 @@ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface */ protected $sourceCode; /** * @var string */ protected $cheminLogo; /** * @var Collection */ Loading @@ -68,68 +54,6 @@ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface $this->uniteRechercheIndividus = new ArrayCollection(); } public function __toString() { return $this->getLibelle(); } /** * Set libelleCourt * * @param string $libelle * @return UniteRecherche */ public function setLibelle($libelle) { $this->libelle = $libelle; return $this; } /** * Get libelleCourt * * @return string */ public function getLibelle() { return $this->libelle; } /** * Set libelleLong * * @param string $sigle * @return UniteRecherche */ public function setSigle($sigle) { $this->sigle = $sigle; return $this; } /** * Get libelleLong * * @return string */ public function getSigle() { return $this->sigle; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set sourceCode * Loading Loading @@ -231,22 +155,4 @@ class UniteRecherche implements HistoriqueAwareInterface, SourceAwareInterface return file_get_contents(APPLICATION_DIR . $this->cheminLogo); } /** * @return string */ public function getCheminLogo() { return $this->cheminLogo; } /** * @param string $cheminLogo */ public function setCheminLogo($cheminLogo) { $this->cheminLogo = $cheminLogo; } } No newline at end of file