Skip to content
Snippets Groups Projects
Commit 66891e2c authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Initial commit

parents
Branches
Tags 0.1
No related merge requests found
Showing
with 1260 additions and 0 deletions
.idea
\ No newline at end of file
<?php
namespace Octopus;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Zend\Config\Factory as ConfigFactory;
class Module
{
public function onBootstrap(MvcEvent $e)
{
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
}
public function getConfig()
{
$paths = array_merge(
[__DIR__ . '/config/module.config.php']
);
return ConfigFactory::fromFiles($paths);
}
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
),
);
}
}
{
"name": "unicaen/octopus",
"description": "Module de recupération des entités provenant octopus",
"repositories": [
{
"type": "composer",
"url": "https://gest.unicaen.fr/packagist"
}
],
"require": {
"unicaen/app": "^1.3",
"zf-commons/zfc-user-doctrine-orm": ">=0.1",
"bjyoungblood/bjy-authorize": ">=1.4"
},
"require-dev": {
"phpunit/PHPUnit": ">=3.7"
},
"autoload": {
"psr-0": {
"UnicaenOctopus": "src/"
},
"classmap": [
"./Module.php"
]
}
}
\ No newline at end of file
<?php
namespace Octopus;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\ORM\Mapping\Driver\XmlDriver;
use Octopus\Controller\OctopusController;
use Octopus\Controller\OctopusControllerFactory;
use Octopus\Service\Geographie\GeographieService;
use Octopus\Service\Geographie\GeographieServiceFactory;
use Octopus\Service\Immobilier\ImmobilierService;
use Octopus\Service\Immobilier\ImmobilierServiceFactory;
use Octopus\Service\Individu\IndividuService;
use Octopus\Service\Individu\IndividuServiceFactory;
use Octopus\Service\Structure\StructureService;
use Octopus\Service\Structure\StructureServiceFactory;
use UnicaenAuth\Guard\PrivilegeController;
use Zend\Mvc\Router\Http\Literal;
return [
'bjyauthorize' => [
'guards' => [
PrivilegeController::class => [
[
'controller' => OctopusController::class,
'action' => [
'index',
],
'roles' => [],
]
],
],
],
'doctrine' => [
'driver' => [
'orm_octopus' => [
'class' => MappingDriverChain::class,
'drivers' => [
'Octopus\Entity\Db' => 'orm_octopus_xml_driver',
],
],
'orm_octopus_xml_driver' => [
'class' => XmlDriver::class,
'cache' => 'apc',
'paths' => [
__DIR__ . '/../src/Octopus/Entity/Db/Mapping',
],
],
],
'cache' => [
'apc' => [
'namespace' => 'PREECOG__' . __NAMESPACE__,
],
],
],
'router' => [
'routes' => [
'octopus' => [
'type' => Literal::class,
'may_terminate' => true,
'options' => [
'route' => '/octopus',
'defaults' => [
'controller' => OctopusController::class,
'action' => 'index',
],
],
],
],
],
'service_manager' => [
'factories' => [
StructureService::class => StructureServiceFactory::class,
ImmobilierService::class => ImmobilierServiceFactory::class,
IndividuService::class => IndividuServiceFactory::class,
GeographieService::class => GeographieServiceFactory::class,
],
],
'controllers' => [
'factories' => [
OctopusController::class => OctopusControllerFactory::class,
]
],
'view_manager' => [
'template_path_stack' => [
__DIR__ . '/../view',
],
],
];
<?php
namespace Octopus\Controller;
use Octopus\Service\Geographie\GeographieServiceAwareTrait;
use Octopus\Service\Immobilier\ImmobilierServiceAwareTrait;
use Octopus\Service\Individu\IndividuServiceAwareTrait;
use Octopus\Service\Structure\StructureServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class OctopusController extends AbstractActionController {
use GeographieServiceAwareTrait;
use ImmobilierServiceAwareTrait;
use IndividuServiceAwareTrait;
use StructureServiceAwareTrait;
public function indexAction() {
$structureTypes = $this->getStructureService()->getStructuresTypes('libelle');
$structures = $this->getStructureService()->getStructures('libelleCourt');
$locals = $this->getImmobiliserService()->getImmobilierLocals('libelle');
$niveaux = $this->getImmobiliserService()->getImmobilierNiveaux('libelle');
$batiments = $this->getImmobiliserService()->getImmobilierBatiments('libelle');
$sites = $this->getImmobiliserService()->getImmobilierSites('libelle');
$individus = $this->getIndividuService()->getIndividus();
$pays = $this->getGeographieService()->getPays('libelleCourt');
return new ViewModel([
'structureTypes' => $structureTypes,
'structures' => $structures,
'locals' => $locals,
'niveaux' => $niveaux,
'batiments' => $batiments,
'sites' => $sites,
'individus' => $individus,
'pays' => $pays,
]);
}
}
\ No newline at end of file
<?php
namespace Octopus\Controller;
use Octopus\Service\Geographie\GeographieService;
use Octopus\Service\Immobilier\ImmobilierService;
use Octopus\Service\Individu\IndividuService;
use Octopus\Service\Structure\StructureService;
use Zend\Mvc\Controller\ControllerManager;
class OctopusControllerFactory {
public function __invoke(ControllerManager $manager)
{
/**
* @var StructureService $structureService
* @var ImmobilierService $immobilierService
* @var IndividuService $individuService
* @var GeographieService $geographieService
*/
$structureService = $manager->getServiceLocator()->get(StructureService::class);
$immobilierService = $manager->getServiceLocator()->get(ImmobilierService::class);
$individuService = $manager->getServiceLocator()->get(IndividuService::class);
$geographieService = $manager->getServiceLocator()->get(GeographieService::class);
/** @var OctopusController $controller */
$controller = new OctopusController();
$controller->setStructureService($structureService);
$controller->setImmobiliserService($immobilierService);
$controller->setIndividuService($individuService);
$controller->setGeographieService($geographieService);
return $controller;
}
}
\ No newline at end of file
<?php
namespace Octopus\Entity\Db;
use UnicaenApp\Entity\HistoriqueAwareTrait;
class ImmobilierBatiment {
use HistoriqueAwareTrait;
/** @var integer */
private $id;
/** @var string */
private $code;
/** @var string */
private $numero;
/** @var string */
private $nom;
/** @var string */
private $libelle;
/** @var string */
private $libelleCourt;
/** @var string */
private $clefSequoia;
/** @var integer */
private $clefGestimmo;
/** @var ImmobilierSite */
private $site;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @return string
*/
public function getNumero()
{
return $this->numero;
}
/**
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* @return string
*/
public function getLibelle()
{
return $this->libelle;
}
/**
* @return string
*/
public function getLibelleCourt()
{
return $this->libelleCourt;
}
/**
* @return string
*/
public function getClefSequoia()
{
return $this->clefSequoia;
}
/**
* @return int
*/
public function getClefGestimmo()
{
return $this->clefGestimmo;
}
/**
* @return ImmobilierSite
*/
public function getSite()
{
return $this->site;
}
}
\ No newline at end of file
<?php
namespace Octopus\Entity\Db;
use UnicaenApp\Entity\HistoriqueAwareTrait;
class ImmobilierLocal {
use HistoriqueAwareTrait;
/** @var integer */
private $id;
/** @var string */
private $nom;
/** @var string */
private $libelle;
/** @var string */
private $libelleCourantFaible;
/** @var string */
private $clefSequoia;
/** @var integer */
private $clefGestimmo;
/** @var integer */
private $affectation;
/** @var Structure */
private $structure;
/** @var ImmobilierNiveau */
private $niveau;
/** @var integer */
private $surface;
/** @var integer */
private $nbPlaces;
/** @var boolean */
private $accesHandi;
/** @var boolean */
private $videoProjecteur;
/** @var boolean */
private $tableauBlanc;
/** @var boolean */
private $posteInformatique;
/** @var boolean */
private $sonorisation;
/** @var boolean */
private $sonorisationExceptionnelle;
/** @var boolean */
private $occultation;
/** @var boolean */
private $accesPmr;
/** @var integer */
private $calendrier;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* @return string
*/
public function getLibelle()
{
return $this->libelle;
}
/**
* @return string
*/
public function getLibelleCourantFaible()
{
return $this->libelleCourantFaible;
}
/**
* @return string
*/
public function getClefSequoia()
{
return $this->clefSequoia;
}
/**
* @return int
*/
public function getClefGestimmo()
{
return $this->clefGestimmo;
}
/**
* @return int
*/
public function getAffectation()
{
return $this->affectation;
}
/**
* @return Structure
*/
public function getStructure()
{
return $this->structure;
}
/**
* @return ImmobilierNiveau
*/
public function getNiveau()
{
return $this->niveau;
}
/**
* @return int
*/
public function getSurface()
{
return $this->surface;
}
/**
* @return int
*/
public function getNbPlaces()
{
return $this->nbPlaces;
}
/**
* @return bool
*/
public function isAccesHandi()
{
return $this->accesHandi;
}
/**
* @return bool
*/
public function isVideoProjecteur()
{
return $this->videoProjecteur;
}
/**
* @return bool
*/
public function isTableauBlanc()
{
return $this->tableauBlanc;
}
/**
* @return bool
*/
public function isPosteInformatique()
{
return $this->posteInformatique;
}
/**
* @return bool
*/
public function isSonorisation()
{
return $this->sonorisation;
}
/**
* @return bool
*/
public function isSonorisationExceptionnelle()
{
return $this->sonorisationExceptionnelle;
}
/**
* @return bool
*/
public function isOccultation()
{
return $this->occultation;
}
/**
* @return bool
*/
public function isAccesPmr()
{
return $this->accesPmr;
}
/**
* @return int
*/
public function getCalendrier()
{
return $this->calendrier;
}
}
\ No newline at end of file
<?php
namespace Octopus\Entity\Db;
use UnicaenApp\Entity\HistoriqueAwareTrait;
class ImmobilierNiveau {
use HistoriqueAwareTrait;
/** @var integer */
private $id;
/** @var string */
private $code;
/** @var string */
private $nom;
/** @var string */
private $libelle;
/** @var string */
private $clefSequoia;
/** @var integer */
private $clefGestimmo;
/** @var ImmobilierBatiment */
private $batiment;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* @return string
*/
public function getLibelle()
{
return $this->libelle;
}
/**
* @return string
*/
public function getClefSequoia()
{
return $this->clefSequoia;
}
/**
* @return int
*/
public function getClefGestimmo()
{
return $this->clefGestimmo;
}
/**
* @return ImmobilierBatiment
*/
public function getBatiment()
{
return $this->batiment;
}
}
\ No newline at end of file
<?php
namespace Octopus\Entity\Db;
use UnicaenApp\Entity\HistoriqueAwareTrait;
class ImmobilierSite {
use HistoriqueAwareTrait;
/** @var integer */
private $id;
/** @var string */
private $code;
/** @var string */
private $nom;
/** @var string */
private $libelle;
/** @var string */
private $libelleCourt;
/** @var string */
private $clefSequoia;
/** @var integer */
private $clefGestimmo;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* @return string
*/
public function getLibelle()
{
return $this->libelle;
}
/**
* @return string
*/
public function getLibelleCourt()
{
return $this->libelleCourt;
}
/**
* @return string
*/
public function getClefSequoia()
{
return $this->clefSequoia;
}
/**
* @return int
*/
public function getClefGestimmo()
{
return $this->clefGestimmo;
}
}
\ No newline at end of file
<?php
namespace Octopus\Entity\Db;
// TODO prendre les overwrites, normalisés, phonétiques
use DateTime;
class Individu {
/** @var integer */
private $cIndividuChaine;
/** @var string */
private $cSource;
/** @var integer */
private $cEtu;
/** @var integer */
private $cIne;
/** @var string */
private $sexe;
/** @var string */
private $prenom;
/** @var string */
private $prenom2;
/** @var string */
private $prenom3;
/** @var string */
private $nomFamille;
/** @var string */
private $nomUsage;
/** @var string */
private $dateNaissance;
/** @var string */
private $villeNaissance;
/** @var string */
private $cCommuneNaissance;
/** @var string */
private $cDeptNaissance;
/** @var string */
private $cPaysNaissance;
/** @var string */
private $cPaysNationalite;
/** @var string */
private $telPersonnelle;
/** @var string */
private $emailPersonnelle;
/** @var DateTime */
private $dateModification;
/**
* @return int
*/
public function getCIndividuChaine()
{
return $this->cIndividuChaine;
}
/**
* @return string
*/
public function getCSource()
{
return $this->cSource;
}
/**
* @return int
*/
public function getCEtu()
{
return $this->cEtu;
}
/**
* @return int
*/
public function getCIne()
{
return $this->cIne;
}
/**
* @return string
*/
public function getSexe()
{
return $this->sexe;
}
/**
* @return string
*/
public function getPrenom()
{
return $this->prenom;
}
/**
* @return string
*/
public function getPrenom2()
{
return $this->prenom2;
}
/**
* @return string
*/
public function getPrenom3()
{
return $this->prenom3;
}
/**
* @return string
*/
public function getNomFamille()
{
return $this->nomFamille;
}
/**
* @return string
*/
public function getNomUsage()
{
return $this->nomUsage;
}
/**
* @return string
*/
public function getDateNaissance()
{
return $this->dateNaissance;
}
/**
* @return string
*/
public function getVilleNaissance()
{
return $this->villeNaissance;
}
/**
* @return string
*/
public function getCCommuneNaissance()
{
return $this->cCommuneNaissance;
}
/**
* @return string
*/
public function getCDeptNaissance()
{
return $this->cDeptNaissance;
}
/**
* @return string
*/
public function getCPaysNaissance()
{
return $this->cPaysNaissance;
}
/**
* @return string
*/
public function getCPaysNationalite()
{
return $this->cPaysNationalite;
}
/**
* @return string
*/
public function getTelPersonnelle()
{
return $this->telPersonnelle;
}
/**
* @return string
*/
public function getEmailPersonnelle()
{
return $this->emailPersonnelle;
}
/**
* @return DateTime
*/
public function getDateModification()
{
return $this->dateModification;
}
}
\ No newline at end of file
<?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\ImmobilierBatiment" table="IMMOBILIER_BATIMENT">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="code" type="string" length="8" column="CODE" nullable="false"/>
<field name="numero" type="string" length="10" column="NUMERO" nullable="false"/>
<field name="nom" type="string" length="255" column="NOM" nullable="false"/>
<field name="libelle" type="string" length="255" column="LIBELLE" nullable="false"/>
<field name="clefSequoia" type="string" length="36" column="CLE_SEQUOIA" nullable="false"/>
<field name="clefGestimmo" type="integer" column="CLE_GESTIMMO" nullable="false"/>
<many-to-one target-entity="Octopus\Entity\Db\ImmobilierSite" field="site">
<join-column name="SITE_ID" referenced-column-name="ID" />
</many-to-one>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\ImmobilierLocal" table="IMMOBILIER_LOCAL">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="nom" type="string" length="255" column="NOM" nullable="false"/>
<field name="libelle" type="string" length="255" column="LIBELLE" nullable="false"/>
<field name="libelleCourantFaible" type="string" length="255" column="LIBELLE_COURANT_FAIBLE" nullable="false"/>
<field name="clefSequoia" type="string" length="36" column="CLE_SEQUOIA" nullable="false"/>
<field name="clefGestimmo" type="integer" column="CLE_GESTIMMO" nullable="false"/>
<field name="affectation" type="integer" column="AFFECTATION_ID" nullable="false"/>
<many-to-one target-entity="Octopus\Entity\Db\ImmobilierNiveau" field="niveau">
<join-column name="NIVEAU_ID" referenced-column-name="ID" />
</many-to-one>
<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="surface" type="integer" column="SURFACE" nullable="false"/>
<field name="nbPlaces" type="integer" column="NB_PLACES" nullable="false"/>
<field name="accesHandi" type="boolean" column="ACCES_HANDI" nullable="false"/>
<field name="videoProjecteur" type="boolean" column="VIDEO_PROJECTEUR" nullable="false"/>
<field name="tableauBlanc" type="boolean" column="TABLEAU_BLANC" nullable="false"/>
<field name="posteInformatique" type="boolean" column="POSTE_INFORMATIQUE" nullable="false"/>
<field name="sonorisation" type="boolean" column="SONORISATION" nullable="false"/>
<field name="sonorisationExceptionnelle" type="boolean" column="SONORISATION_EXCEPTIONNELLE" nullable="false"/>
<field name="occultation" type="boolean" column="OCCULTATION" nullable="false"/>
<field name="accesPmr" type="boolean" column="ACCES_PMR" nullable="false"/>
<field name="calendrier" type="integer" column="CALENDRIER_ID" nullable="false"/>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\ImmobilierNiveau" table="IMMOBILIER_NIVEAU">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="code" type="string" length="8" column="CODE" nullable="false"/>
<field name="nom" type="string" length="255" column="NOM" nullable="false"/>
<field name="libelle" type="string" length="255" column="LIBELLE" nullable="false"/>
<field name="clefSequoia" type="string" length="36" column="CLE_SEQUOIA" nullable="false"/>
<field name="clefGestimmo" type="integer" column="CLE_GESTIMMO" nullable="false"/>
<many-to-one target-entity="Octopus\Entity\Db\ImmobilierBatiment" field="batiment">
<join-column name="BATIMENT_ID" referenced-column-name="ID" />
</many-to-one>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\ImmobilierSite" table="IMMOBILIER_SITE">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="code" type="string" length="8" column="CODE" nullable="false"/>
<field name="nom" type="string" length="255" column="NOM" nullable="false"/>
<field name="libelle" type="string" length="255" column="LIBELLE" nullable="false"/>
<field name="libelleCourt" type="string" length="255" column="LIBELLE_COURT" nullable="false"/>
<field name="clefSequoia" type="string" length="36" column="CLE_SEQUOIA" nullable="false"/>
<field name="clefGestimmo" type="integer" column="CLE_GESTIMMO" nullable="false"/>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\Individu" table="INDIVIDU">
<id name="cIndividuChaine" type="integer" column="C_INDIVIDU_CHAINE">
<generator strategy="IDENTITY"/>
</id>
<field name="cSource" type="string" length="10" column="C_SOURCE" nullable="false"/>
<field name="cEtu" type="integer" column="C_ETU" nullable="false"/>
<field name="cIne" type="string" length="11" column="C_INE" nullable="false"/>
<field name="sexe" type="string" length="1" column="SEXE" nullable="false"/>
<field name="prenom" type="string" length="64" column="PRENOM" nullable="false"/>
<field name="prenom2" type="string" length="64" column="PRENOM2" nullable="false"/>
<field name="prenom3" type="string" length="64" column="PRENOM3" nullable="false"/>
<field name="nomFamille" type="string" length="64" column="NOM_FAMILLE" nullable="false"/>
<field name="nomUsage" type="string" length="64" column="NOM_USAGE" nullable="false"/>
<field name="dateNaissance" type="string" length="64" column="D_NAISSANCE" nullable="false"/>
<field name="villeNaissance" type="string" length="64" column="VILLE_DE_NAISSANCE" nullable="false"/>
<field name="cCommuneNaissance" type="string" length="5" column="C_COMMUNE_NAISSANCE" nullable="false"/>
<field name="cDeptNaissance" type="string" length="3" column="C_DEPT_NAISSANCE" nullable="false"/>
<field name="cPaysNaissance" type="string" length="3" column="C_PAYS_NAISSANCE" nullable="false"/>
<field name="cPaysNationalite" type="string" length="3" column="C_PAYS_NATIONALITE" nullable="false"/>
<field name="telPersonnelle" type="string" length="20" column="TEL_PERSO" nullable="false"/>
<field name="emailPersonnelle" type="string" length="255" column="EMAIL_PERSO" nullable="false"/>
<field name="dateModification" type="date" column="D_MODIF" nullable="false"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\Pays" table="PAYS">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="codePays" type="string" length="3" column="CODE_PAYS" nullable="false"/>
<field name="paysRattachement" type="integer" column="PAYS_RATTACHEMENT_ID" nullable="false"/>
<field name="libelleCourt" type="string" length="255" column="LIBELLE_COURT" nullable="false"/>
<field name="libelleLong" type="string" length="255" column="LIBELLE_LONG" nullable="false"/>
<field name="codeIso2" type="string" length="2" column="CODE_ISO2" nullable="false"/>
<field name="codeIso3" type="string" length="3" column="CODE_ISO3" nullable="false"/>
<field name="codeIsoNum" type="string" length="3" column="CODE_ISO_NUM" nullable="false"/>
<!--<field name="dateOuverture" type="date" column="DATE_OUVERTURE" nullable="false"/>-->
<!--<field name="dateFermeture" type="date" column="DATE_FERMETURE" nullable="false"/>-->
<field name="dateOuverture" type="string" length="255" column="DATE_OUVERTURE" nullable="false"/>
<field name="dateFermeture" type="string" length="255" column="DATE_FERMETURE" nullable="false"/>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\Structure" table="STRUCTURE">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="code" type="string" length="10" column="CODE" nullable="false"/>
<field name="sigle" type="string" length="30" column="SIGLE" nullable="true"/>
<field name="libelleCourt" type="string" length="50" column="LIBELLE_COURT" nullable="false"/>
<field name="libelleLong" type="string" length="1024" column="LIBELLE_LONG" nullable="false"/>
<field name="adresse" type="string" length="1024" column="ADRESSE" nullable="true"/>
<field name="telephone" type="string" length="20" column="TELEPHONE" nullable="true"/>
<field name="fax" type="string" length="20" column="FAX" nullable="true"/>
<many-to-one target-entity="Octopus\Entity\Db\StructureType" field="type">
<join-column name="TYPE_ID" referenced-column-name="ID" />
</many-to-one>
<field name="codeUai" type="string" length="8" column="CODE_UAI" nullable="true"/>
<field name="logoContent" type="string" length="4096" column="LOGO" nullable="true"/>
<field name="dateOuverture" type="datetime" column="DATE_OUVERTURE" nullable="true"/>
<field name="dateFermeture" type="datetime" column="DATE_FERMETURE" nullable="true"/>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
<field name="typeSupann" type="string" length="4" column="TYPE_SUPANN" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?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\StructureType" table="STRUCTURE_TYPE">
<id name="id" type="integer" column="ID">
<generator strategy="IDENTITY"/>
</id>
<field name="code" type="string" length="10" column="CODE" nullable="false"/>
<field name="libelle" type="string" length="255" column="LIBELLE" nullable="false"/>
<field name="description" type="string" length="1024" column="DESCRIPTION" nullable="true"/>
</entity>
</doctrine-mapping>
\ No newline at end of file
<?php
namespace Octopus\Entity\Db;
use DateTime;
use UnicaenApp\Entity\HistoriqueAwareTrait;
class Pays {
use HistoriqueAwareTrait;
/** @var integer */
private $id;
/** @var string */
private $codePays;
/** @var integer */
private $paysRattachement;
/** @var string */
private $libelleCourt;
/** @var string */
private $libelleLong;
/** @var string */
private $codeIso2;
/** @var string */
private $codeIso3;
/** @var string */
private $codeIsoNum;
/** @var DateTime */
private $dateOuverture;
/** @var DateTime */
private $dateFermeture;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getCodePays()
{
return $this->codePays;
}
/**
* @return int
*/
public function getPaysRattachement()
{
return $this->paysRattachement;
}
/**
* @return string
*/
public function getLibelleCourt()
{
return $this->libelleCourt;
}
/**
* @return string
*/
public function getLibelleLong()
{
return $this->libelleLong;
}
/**
* @return string
*/
public function getCodeIso2()
{
return $this->codeIso2;
}
/**
* @return string
*/
public function getCodeIso3()
{
return $this->codeIso3;
}
/**
* @return string
*/
public function getCodeIsoNum()
{
return $this->codeIsoNum;
}
/**
* @return DateTime
*/
public function getDateOuverture()
{
return $this->dateOuverture;
}
/**
* @return DateTime
*/
public function getDateFermeture()
{
return $this->dateFermeture;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment