Loading src/Octopus/Entity/Db/Individu.php +24 −1 Original line number Diff line number Diff line Loading @@ -5,8 +5,9 @@ namespace Octopus\Entity\Db; // TODO prendre les overwrites, normalisés, phonétiques use DateTime; use Doctrine\Common\Collections\ArrayCollection; use UnicaenUtilisateur\Service\RechercheIndividu\SearchIndividuResultInterface; class Individu { class Individu implements SearchIndividuResultInterface { /** @var integer */ private $cIndividuChaine; /** @var Source */ Loading Loading @@ -232,5 +233,27 @@ class Individu { return $texte; } /** Fonction de l'interface SearchIndividuResultInterface */ public function getId() { return $this->getCIndividuChaine(); } /** TODO changer lorsque le compte sera lié dans octopus */ public function getUsername() { return $this->getCIndividuChaine(); } public function getDisplayname() { return $this->__toString(); } /** TODO changer lorsque le compte sera lié dans octopus */ public function getEmail() { return "ne-pas-repondre@unicaen.fr"; } } No newline at end of file src/Octopus/Entity/Db/IndividuInscription.php 0 → 100644 +94 −0 Original line number Diff line number Diff line <?php namespace Octopus\Entity\Db; class IndividuInscription { /** @var Individu */ private $individu; /** @var OffreDeFormationEtape */ private $etape; /** @var OffreDeFormationDiplome */ private $diplome; /** @var string */ private $annee; /** @var string */ private $etatInscription; /** @var string */ private $regimeSISE; /** @var string */ private $obtenu; /** @var string */ private $aDistance; /** * @return Individu */ public function getIndividu() { return $this->individu; } /** * @return OffreDeFormationEtape */ public function getEtape() { return $this->etape; } /** * @return OffreDeFormationDiplome */ public function getDiplome() { return $this->diplome; } /** * @return string */ public function getAnnee() { return $this->annee; } /** * @return string */ public function getEtatInscription() { return $this->etatInscription; } /** * @return string */ public function getRegimeSISE() { return $this->regimeSISE; } /** * @return boolean|null */ public function isObtenu() { if ($this->obtenu === 'O') return true; if ($this->obtenu === 'N') return false; return null; } /** * @return boolean|null */ public function isADistance() { if ($this->aDistance === 'O') return true; if ($this->aDistance === 'N') return false; return null; } } No newline at end of file src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.IndividuInscription.dcm.xml 0 → 100755 +24 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Octopus\Entity\Db\IndividuInscription" table="INDIVIDU_INSCRIPTION"> <many-to-one target-entity="Octopus\Entity\Db\Individu" field="individu"> <join-column name="INDIVIDU_ID" referenced-column-name="C_INDIVIDU_CHAINE" /> </many-to-one> <many-to-one target-entity="Octopus\Entity\Db\OffreDeFormationEtape" field="etape"> <join-column name="ETAPE_ID" referenced-column-name="ETAPE_ID" /> </many-to-one> <many-to-one target-entity="Octopus\Entity\Db\OffreDeFormationDiplome" field="diplome"> <join-column name="DIPLOME_ID" referenced-column-name="DIPLOME_ID" /> </many-to-one> <field name="anne" column="ANNEE_UNIV" type="string" length="4" nullable="true" /> <field name="etatInscription" column="ETAT_INSCRIPTION" type="string" length="4" nullable="true" /> <field name="regimeSISE" column="REGIME_SISE" type="string" length="2" nullable="true" /> <field name="obtenu" column="T_OBTENU" type="string" length="1" nullable="true" /> <field name="aDistance" column="T_A_DISTANCE" type="string" length="1" nullable="true" /> </entity> </doctrine-mapping> No newline at end of file src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.OffreDeFormationDiplome.dcm.xml 0 → 100755 +19 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Octopus\Entity\Db\OffreDeFormationDiplome" table="ODF_DIPLOME"> <id name="id" type="integer" column="DIPLOME_ID"> <generator strategy="IDENTITY"/> </id> <field name="supprime" column="T_SUPPRIME" type="string" length="1" nullable="true" /> <field name="libelleCourt" column="LIB_COURT" type="string" length="60" nullable="true" /> <field name="libelleLong" column="LIB_LONG" type="string" length="200" nullable="true" /> <field name="typeDiplomeSISE" column="TYPE_DIPLOME_SISE" type="string" length="2" nullable="true" /> <field name="codeDiplomeSISE" column="CODE_DIPLOME_SISE" type="string" length="20" nullable="true" /> <field name="secteurDiscplineSISE" column="SECTEUR_DISC_SISE" type="string" length="65" nullable="true" /> <field name="anneDebut" column="ANNEE_DEB" type="string" length="4" nullable="true" /> <field name="anneFin" column="ANNEE_FIN" type="string" length="4" nullable="true" /> </entity> </doctrine-mapping> No newline at end of file src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.OffreDeFormationEtape.dcm.xml 0 → 100755 +22 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Octopus\Entity\Db\OffreDeFormationEtape" table="ODF_ETAPE"> <id name="id" type="integer" column="ETAPE_ID"> <generator strategy="IDENTITY"/> </id> <many-to-one target-entity="Octopus\Entity\Db\Structure" field="structure"> <join-column name="STRUCTURE_ID" referenced-column-name="ID" /> </many-to-one> <field name="supprime" column="T_SUPPRIME" type="string" length="1" nullable="true" /> <field name="libelleCourt" column="LIB_COURT" type="string" length="60" nullable="true" /> <field name="libelleLong" column="LIB_LONG" type="string" length="200" nullable="true" /> <field name="anneDebut" column="ANNEE_DEB" type="string" length="4" nullable="true" /> <field name="anneFin" column="ANNEE_FIN" type="string" length="4" nullable="true" /> <field name="diplomante" column="T_DIPLOMANTE" type="string" length="1" nullable="true" /> <field name="aDistance" column="T_A_DISTANCE" type="string" length="1" nullable="true" /> </entity> </doctrine-mapping> No newline at end of file Loading
src/Octopus/Entity/Db/Individu.php +24 −1 Original line number Diff line number Diff line Loading @@ -5,8 +5,9 @@ namespace Octopus\Entity\Db; // TODO prendre les overwrites, normalisés, phonétiques use DateTime; use Doctrine\Common\Collections\ArrayCollection; use UnicaenUtilisateur\Service\RechercheIndividu\SearchIndividuResultInterface; class Individu { class Individu implements SearchIndividuResultInterface { /** @var integer */ private $cIndividuChaine; /** @var Source */ Loading Loading @@ -232,5 +233,27 @@ class Individu { return $texte; } /** Fonction de l'interface SearchIndividuResultInterface */ public function getId() { return $this->getCIndividuChaine(); } /** TODO changer lorsque le compte sera lié dans octopus */ public function getUsername() { return $this->getCIndividuChaine(); } public function getDisplayname() { return $this->__toString(); } /** TODO changer lorsque le compte sera lié dans octopus */ public function getEmail() { return "ne-pas-repondre@unicaen.fr"; } } No newline at end of file
src/Octopus/Entity/Db/IndividuInscription.php 0 → 100644 +94 −0 Original line number Diff line number Diff line <?php namespace Octopus\Entity\Db; class IndividuInscription { /** @var Individu */ private $individu; /** @var OffreDeFormationEtape */ private $etape; /** @var OffreDeFormationDiplome */ private $diplome; /** @var string */ private $annee; /** @var string */ private $etatInscription; /** @var string */ private $regimeSISE; /** @var string */ private $obtenu; /** @var string */ private $aDistance; /** * @return Individu */ public function getIndividu() { return $this->individu; } /** * @return OffreDeFormationEtape */ public function getEtape() { return $this->etape; } /** * @return OffreDeFormationDiplome */ public function getDiplome() { return $this->diplome; } /** * @return string */ public function getAnnee() { return $this->annee; } /** * @return string */ public function getEtatInscription() { return $this->etatInscription; } /** * @return string */ public function getRegimeSISE() { return $this->regimeSISE; } /** * @return boolean|null */ public function isObtenu() { if ($this->obtenu === 'O') return true; if ($this->obtenu === 'N') return false; return null; } /** * @return boolean|null */ public function isADistance() { if ($this->aDistance === 'O') return true; if ($this->aDistance === 'N') return false; return null; } } No newline at end of file
src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.IndividuInscription.dcm.xml 0 → 100755 +24 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Octopus\Entity\Db\IndividuInscription" table="INDIVIDU_INSCRIPTION"> <many-to-one target-entity="Octopus\Entity\Db\Individu" field="individu"> <join-column name="INDIVIDU_ID" referenced-column-name="C_INDIVIDU_CHAINE" /> </many-to-one> <many-to-one target-entity="Octopus\Entity\Db\OffreDeFormationEtape" field="etape"> <join-column name="ETAPE_ID" referenced-column-name="ETAPE_ID" /> </many-to-one> <many-to-one target-entity="Octopus\Entity\Db\OffreDeFormationDiplome" field="diplome"> <join-column name="DIPLOME_ID" referenced-column-name="DIPLOME_ID" /> </many-to-one> <field name="anne" column="ANNEE_UNIV" type="string" length="4" nullable="true" /> <field name="etatInscription" column="ETAT_INSCRIPTION" type="string" length="4" nullable="true" /> <field name="regimeSISE" column="REGIME_SISE" type="string" length="2" nullable="true" /> <field name="obtenu" column="T_OBTENU" type="string" length="1" nullable="true" /> <field name="aDistance" column="T_A_DISTANCE" type="string" length="1" nullable="true" /> </entity> </doctrine-mapping> No newline at end of file
src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.OffreDeFormationDiplome.dcm.xml 0 → 100755 +19 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Octopus\Entity\Db\OffreDeFormationDiplome" table="ODF_DIPLOME"> <id name="id" type="integer" column="DIPLOME_ID"> <generator strategy="IDENTITY"/> </id> <field name="supprime" column="T_SUPPRIME" type="string" length="1" nullable="true" /> <field name="libelleCourt" column="LIB_COURT" type="string" length="60" nullable="true" /> <field name="libelleLong" column="LIB_LONG" type="string" length="200" nullable="true" /> <field name="typeDiplomeSISE" column="TYPE_DIPLOME_SISE" type="string" length="2" nullable="true" /> <field name="codeDiplomeSISE" column="CODE_DIPLOME_SISE" type="string" length="20" nullable="true" /> <field name="secteurDiscplineSISE" column="SECTEUR_DISC_SISE" type="string" length="65" nullable="true" /> <field name="anneDebut" column="ANNEE_DEB" type="string" length="4" nullable="true" /> <field name="anneFin" column="ANNEE_FIN" type="string" length="4" nullable="true" /> </entity> </doctrine-mapping> No newline at end of file
src/Octopus/Entity/Db/Mapping/Octopus.Entity.Db.OffreDeFormationEtape.dcm.xml 0 → 100755 +22 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="Octopus\Entity\Db\OffreDeFormationEtape" table="ODF_ETAPE"> <id name="id" type="integer" column="ETAPE_ID"> <generator strategy="IDENTITY"/> </id> <many-to-one target-entity="Octopus\Entity\Db\Structure" field="structure"> <join-column name="STRUCTURE_ID" referenced-column-name="ID" /> </many-to-one> <field name="supprime" column="T_SUPPRIME" type="string" length="1" nullable="true" /> <field name="libelleCourt" column="LIB_COURT" type="string" length="60" nullable="true" /> <field name="libelleLong" column="LIB_LONG" type="string" length="200" nullable="true" /> <field name="anneDebut" column="ANNEE_DEB" type="string" length="4" nullable="true" /> <field name="anneFin" column="ANNEE_FIN" type="string" length="4" nullable="true" /> <field name="diplomante" column="T_DIPLOMANTE" type="string" length="1" nullable="true" /> <field name="aDistance" column="T_A_DISTANCE" type="string" length="1" nullable="true" /> </entity> </doctrine-mapping> No newline at end of file