Commit 2d1f50a6 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correctif de notices

parent cf4ec84f
Loading
Loading
Loading
Loading
+491 −0
Original line number Diff line number Diff line
<?php

namespace Application\Entity\Db;

use DateTime;

class AgentStatut {
    /** @var integer */
    private $id;
    /** @var string */
    private $sourceName;
    /** @var string */
    private $sourceId;
    /** @var string */
    private $idOrigine;
    /** @var Agent */
    private $agent;
    /** @var Structure */
    private $structure;
    /** @var DateTime */
    private $debut;
    /** @var DateTime */
    private $fin;

    /** @var boolean */
    private $titulaire;
    /** @var boolean */
    private $cdi;
    /** @var boolean */
    private $cdd;
    /** @var boolean */
    private $vacataire;
    /** @var boolean */
    private $enseignant;
    /** @var boolean */
    private $administratif;
    /** @var boolean */
    private $chercheur;
    /** @var boolean */
    private $etudiant;
    /** @var boolean */
    private $auditeurLibre;
    /** @var boolean */
    private $doctorant;
    /** @var boolean */
    private $detacheIn;
    /** @var boolean */
    private $detacheOut
    /** @var boolean */;
    private $dispo;
    /** @var boolean */
    private $heberge;
    /** @var boolean */
    private $emerite;
    /** @var boolean */
    private $retraite;

    /**
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param int $id
     * @return AgentStatut
     */
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * @return string
     */
    public function getSourceName()
    {
        return $this->sourceName;
    }

    /**
     * @param string $sourceName
     * @return AgentStatut
     */
    public function setSourceName($sourceName)
    {
        $this->sourceName = $sourceName;
        return $this;
    }

    /**
     * @return string
     */
    public function getSourceId()
    {
        return $this->sourceId;
    }

    /**
     * @param string $sourceId
     * @return AgentStatut
     */
    public function setSourceId($sourceId)
    {
        $this->sourceId = $sourceId;
        return $this;
    }

    /**
     * @return string
     */
    public function getIdOrigine()
    {
        return $this->idOrigine;
    }

    /**
     * @param string $idOrigine
     * @return AgentStatut
     */
    public function setIdOrigine($idOrigine)
    {
        $this->idOrigine = $idOrigine;
        return $this;
    }

    /**
     * @return Agent
     */
    public function getAgent()
    {
        return $this->agent;
    }

    /**
     * @param Agent $agent
     * @return AgentStatut
     */
    public function setAgent($agent)
    {
        $this->agent = $agent;
        return $this;
    }

    /**
     * @return Structure
     */
    public function getStructure()
    {
        return $this->structure;
    }

    /**
     * @param Structure $structure
     * @return AgentStatut
     */
    public function setStructure($structure)
    {
        $this->structure = $structure;
        return $this;
    }

    /**
     * @return DateTime
     */
    public function getDebut()
    {
        return $this->debut;
    }

    /**
     * @param DateTime $debut
     * @return AgentStatut
     */
    public function setDebut($debut)
    {
        $this->debut = $debut;
        return $this;
    }

    /**
     * @return DateTime
     */
    public function getFin()
    {
        return $this->fin;
    }

    /**
     * @param DateTime $fin
     * @return AgentStatut
     */
    public function setFin($fin)
    {
        $this->fin = $fin;
        return $this;
    }

    /**
     * @return bool
     */
    public function isTitulaire()
    {
        return $this->titulaire;
    }

    /**
     * @param bool $titulaire
     * @return AgentStatut
     */
    public function setTitulaire($titulaire)
    {
        $this->titulaire = $titulaire;
        return $this;
    }

    /**
     * @return bool
     */
    public function isCdi()
    {
        return $this->cdi;
    }

    /**
     * @param bool $cdi
     * @return AgentStatut
     */
    public function setCdi($cdi)
    {
        $this->cdi = $cdi;
        return $this;
    }

    /**
     * @return bool
     */
    public function isCdd()
    {
        return $this->cdd;
    }

    /**
     * @param bool $cdd
     * @return AgentStatut
     */
    public function setCdd($cdd)
    {
        $this->cdd = $cdd;
        return $this;
    }

    /**
     * @return bool
     */
    public function isVacataire()
    {
        return $this->vacataire;
    }

    /**
     * @param bool $vacataire
     * @return AgentStatut
     */
    public function setVacataire($vacataire)
    {
        $this->vacataire = $vacataire;
        return $this;
    }

    /**
     * @return bool
     */
    public function isEnseignant()
    {
        return $this->enseignant;
    }

    /**
     * @param bool $enseignant
     * @return AgentStatut
     */
    public function setEnseignant($enseignant)
    {
        $this->enseignant = $enseignant;
        return $this;
    }

    /**
     * @return bool
     */
    public function isAdministratif()
    {
        return $this->administratif;
    }

    /**
     * @param bool $administratif
     * @return AgentStatut
     */
    public function setAdministratif($administratif)
    {
        $this->administratif = $administratif;
        return $this;
    }

    /**
     * @return bool
     */
    public function isChercheur()
    {
        return $this->chercheur;
    }

    /**
     * @param bool $chercheur
     * @return AgentStatut
     */
    public function setChercheur($chercheur)
    {
        $this->chercheur = $chercheur;
        return $this;
    }

    /**
     * @return bool
     */
    public function isEtudiant()
    {
        return $this->etudiant;
    }

    /**
     * @param bool $etudiant
     * @return AgentStatut
     */
    public function setEtudiant($etudiant)
    {
        $this->etudiant = $etudiant;
        return $this;
    }

    /**
     * @return bool
     */
    public function isAuditeurLibre()
    {
        return $this->auditeurLibre;
    }

    /**
     * @param bool $auditeurLibre
     * @return AgentStatut
     */
    public function setAuditeurLibre($auditeurLibre)
    {
        $this->auditeurLibre = $auditeurLibre;
        return $this;
    }

    /**
     * @return bool
     */
    public function isDoctorant()
    {
        return $this->doctorant;
    }

    /**
     * @param bool $doctorant
     * @return AgentStatut
     */
    public function setDoctorant($doctorant)
    {
        $this->doctorant = $doctorant;
        return $this;
    }

    /**
     * @return bool
     */
    public function isDetacheIn()
    {
        return $this->detacheIn;
    }

    /**
     * @param bool $detacheIn
     * @return AgentStatut
     */
    public function setDetacheIn($detacheIn)
    {
        $this->detacheIn = $detacheIn;
        return $this;
    }

    /**
     * @return bool
     */
    public function isDetacheOut()
    {
        return $this->detacheOut;
    }

    /**
     * @param bool $detacheOut
     * @return AgentStatut
     */
    public function setDetacheOut($detacheOut)
    {
        $this->detacheOut = $detacheOut;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getDispo()
    {
        return $this->dispo;
    }

    /**
     * @param mixed $dispo
     * @return AgentStatut
     */
    public function setDispo($dispo)
    {
        $this->dispo = $dispo;
        return $this;
    }

    /**
     * @return bool
     */
    public function isHeberge()
    {
        return $this->heberge;
    }

    /**
     * @param bool $heberge
     * @return AgentStatut
     */
    public function setHeberge($heberge)
    {
        $this->heberge = $heberge;
        return $this;
    }

    /**
     * @return bool
     */
    public function isEmerite()
    {
        return $this->emerite;
    }

    /**
     * @param bool $emerite
     * @return AgentStatut
     */
    public function setEmerite($emerite)
    {
        $this->emerite = $emerite;
        return $this;
    }

    /**
     * @return bool
     */
    public function isRetraite()
    {
        return $this->retraite;
    }

    /**
     * @param bool $retraite
     * @return AgentStatut
     */
    public function setRetraite($retraite)
    {
        $this->retraite = $retraite;
        return $this;
    }

    
}
 No newline at end of file
+46 −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="Application\Entity\Db\Agent" table="agent">

        <id name="id" type="integer" column="id">
            <generator strategy="IDENTITY"/>
        </id>

        <field name="nom"               type="string" length="256"      column="nom_usuel"                nullable="false"/>
        <field name="prenom"            type="string" length="256"      column="prenom"                   nullable="false"/>
        <field name="dateDebut"         type="datetime"                 column="date_debut"               nullable="true"/>
        <field name="dateFin"           type="datetime"                 column="date_fin"                 nullable="true"/>
        <field name="quotite"           type="integer"                  column="quotite"                  nullable="true"/>
        <field name="numeroPoste"       type="string" length="256"      column="numero_poste"             nullable="true"/>
        <field name="missionsComplementaires"       type="string" length="2048"      column="missions_complementaires"             nullable="true"/>

        <many-to-one target-entity="Application\Entity\Db\AgentStatus" field="status">
            <join-column name="status" referenced-column-name="id" />
        </many-to-one>
        <many-to-one target-entity="Application\Entity\Db\Correspondance" field="correspondance">
            <join-column name="correspondance" referenced-column-name="id" />
        </many-to-one>
        <many-to-one target-entity="Application\Entity\Db\Corps" field="corps">
            <join-column name="corps" referenced-column-name="id" />
        </many-to-one>
        <many-to-one target-entity="Application\Entity\Db\Grade" field="grade">
            <join-column name="grade" referenced-column-name="id" />
        </many-to-one>

        <many-to-many field="fichiers" target-entity="Fichier\Entity\Db\Fichier" inversed-by="fichier" fetch="LAZY">
            <join-table name="agent_fichier">
                <join-columns>
                    <join-column name="agent" referenced-column-name="id"/>
                </join-columns>
                <inverse-join-columns>
                    <join-column name="fichier" referenced-column-name="id"/>
                </inverse-join-columns>
            </join-table>
        </many-to-many>

        <many-to-one target-entity="Utilisateur\Entity\Db\User" field="utilisateur">
            <join-column name="utilisateur" referenced-column-name="id" />
        </many-to-one>

    </entity>
</doctrine-mapping>
+2 −2
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ $principal = $fiche->getFicheTypeExternePrincipale();

$fichesMetiers = $fiche->getFichesMetiers();
$fichesMetiers = array_filter($fichesMetiers, function (FicheTypeExterne $a) { return !$a->getPrincipale(); });
usort($fiche->getFichesMetiers(), function (FicheTypeExterne $a, FicheTypeExterne $b) { return ($a->getQuotite() > $b->getQuotite()); });
usort($fichesMetiers, function (FicheTypeExterne $a, FicheTypeExterne $b) { return ($a->getQuotite() > $b->getQuotite()); });
?>


@@ -127,7 +127,7 @@ usort($fiche->getFichesMetiers(), function (FicheTypeExterne $a, FicheTypeExtern
    <div class="panel-heading">
        <div class="row">
            <div class="col-md-8">
            <h2>Fiche composée de <?php echo count($fiche->getFichesMetiers()); ?> fiche(s) type(s).</h2>
            <h2>Fiche composée de <?php echo count($fichesMetiers); ?> fiche(s) type(s).</h2>
            <ul>
                <?php if ($principal) : ?>
                    <li> <strong> <?php echo $principal->getFicheType()->getMetier() ?> à <?php echo $principal->getQuotite(); ?>%</strong></li>
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@
<!--        </div>-->

<div id="contenu-principal" class="container">
    <?php if (($menuSecondaire = $this->navigation()->menuSecondaire('navigation')->render())): ?>
    <?php if (($menuSecondaire = $this->navigation()->menuSecondaire('navigation')->setMaxDepth(3)->render())): ?>
        <div class="row">
            <div id="sidebar" class="col-xs-6 col-md-2" role="navigation">
                <?php echo $menuSecondaire; ?>