Commit fe708347 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction PEC Siham

parent 9b77d4b7
Loading
Loading
Loading
Loading
+57 −38
Original line number Diff line number Diff line
@@ -27,12 +27,14 @@ class SihamConnecteur implements ConnecteurRhInterface
    public Siham $siham;



    public function __construct(Siham $siham)
    {
        $this->siham = $siham;
    }



    public function rechercherIntervenantRh($nomUsuel = '', $prenom = '', $insee = ''): array
    {
        $params = [
@@ -63,6 +65,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?IntervenantRh
    {
        $agent  = null;
@@ -122,6 +125,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererDonneesAdministrativesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array
    {
        try {
@@ -156,6 +160,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererAffectationEnCoursIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array
    {
        $affectations           = [];
@@ -182,6 +187,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererContratEnCoursIntervenantRh(Intervenant $intervenant): ?array
    {
        $contrats               = [];
@@ -207,6 +213,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function synchroniserDonneesPersonnellesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): bool
    {
        try {
@@ -324,6 +331,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function trouverCodeRhByInsee(\Application\Entity\Db\Intervenant $intervenant): ?string
    {
        $intervenantDossier = $this->getServiceDossier()->getByIntervenant($intervenant);
@@ -346,6 +354,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function prendreEnChargeIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string
    {
        try {
@@ -368,7 +377,7 @@ class SihamConnecteur implements ConnecteurRhInterface
            ];
            /*CONTRAT*/
            $contrat[] =
                ['dateDebutContrat'  => Util::$dateEffet,
                ['dateDebutContrat'  => $dateEffet,
                 'dateFinContrat'    => $dateFin,
                 'natureContrat'     => 'CO',
                 'typeContrat'       => 'TC01',
@@ -541,6 +550,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function renouvellerIntervenantRH(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string
    {
        try {
@@ -640,6 +650,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function cloreDossier(Intervenant $intervenant): ?bool
    {

@@ -669,6 +680,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererListeUO(): ?array
    {
        /*On récupére les UO avec le type paramétré*/
@@ -693,42 +705,49 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererListePositions(): ?array
    {
        return $this->siham->recupererListePositions();
    }



    public function recupererListeEmplois(): ?array
    {
        return $this->siham->recupererListeEmplois();
    }



    public function recupererListeStatuts(): ?array
    {
        return $this->siham->recupererListeStatuts();
    }



    public function recupererListeModalites(): ?array
    {
        return $this->siham->recupererListeModalites();
    }



    public function recupererListeContrats(): ?array
    {
        return $this->siham->recupererListeContrats();
    }



    public function getConnecteurName(): string
    {
        return 'siham';
    }



    public function recupererFieldsetConnecteur(): Fieldset
    {
        $fieldset = new SihamFieldset('connecteurForm', []);
@@ -737,6 +756,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public static function cleanDatas($str, $strict = false, $encoding = 'UTF-8')
    {
        $from = 'ÀÁÂÃÄÅÇÐÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜŸÑàáâãäåçðèéêëìíîïòóôõöøùúûüÿñ()…,<> /?€%!":’\'+.';
@@ -758,7 +778,6 @@ class SihamConnecteur implements ConnecteurRhInterface
        }

        return $rstr;

    }

}
 No newline at end of file