Loading module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php +57 −38 Original line number Diff line number Diff line Loading @@ -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 = [ Loading Loading @@ -63,6 +65,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?IntervenantRh { $agent = null; Loading Loading @@ -122,6 +125,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererDonneesAdministrativesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array { try { Loading Loading @@ -156,6 +160,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererAffectationEnCoursIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array { $affectations = []; Loading @@ -182,6 +187,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererContratEnCoursIntervenantRh(Intervenant $intervenant): ?array { $contrats = []; Loading @@ -207,6 +213,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function synchroniserDonneesPersonnellesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): bool { try { Loading Loading @@ -324,6 +331,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function trouverCodeRhByInsee(\Application\Entity\Db\Intervenant $intervenant): ?string { $intervenantDossier = $this->getServiceDossier()->getByIntervenant($intervenant); Loading @@ -346,6 +354,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function prendreEnChargeIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading @@ -368,7 +377,7 @@ class SihamConnecteur implements ConnecteurRhInterface ]; /*CONTRAT*/ $contrat[] = ['dateDebutContrat' => Util::$dateEffet, ['dateDebutContrat' => $dateEffet, 'dateFinContrat' => $dateFin, 'natureContrat' => 'CO', 'typeContrat' => 'TC01', Loading Loading @@ -541,6 +550,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function renouvellerIntervenantRH(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading Loading @@ -640,6 +650,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function cloreDossier(Intervenant $intervenant): ?bool { Loading Loading @@ -669,6 +680,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererListeUO(): ?array { /*On récupére les UO avec le type paramétré*/ Loading @@ -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', []); Loading @@ -737,6 +756,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public static function cleanDatas($str, $strict = false, $encoding = 'UTF-8') { $from = 'ÀÁÂÃÄÅÇÐÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜŸÑàáâãäåçðèéêëìíîïòóôõöøùúûüÿñ()…,<> /?€%!":’\'+.'; Loading @@ -758,7 +778,6 @@ class SihamConnecteur implements ConnecteurRhInterface } return $rstr; } } No newline at end of file Loading
module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php +57 −38 Original line number Diff line number Diff line Loading @@ -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 = [ Loading Loading @@ -63,6 +65,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?IntervenantRh { $agent = null; Loading Loading @@ -122,6 +125,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererDonneesAdministrativesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array { try { Loading Loading @@ -156,6 +160,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererAffectationEnCoursIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array { $affectations = []; Loading @@ -182,6 +187,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererContratEnCoursIntervenantRh(Intervenant $intervenant): ?array { $contrats = []; Loading @@ -207,6 +213,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function synchroniserDonneesPersonnellesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): bool { try { Loading Loading @@ -324,6 +331,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function trouverCodeRhByInsee(\Application\Entity\Db\Intervenant $intervenant): ?string { $intervenantDossier = $this->getServiceDossier()->getByIntervenant($intervenant); Loading @@ -346,6 +354,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function prendreEnChargeIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading @@ -368,7 +377,7 @@ class SihamConnecteur implements ConnecteurRhInterface ]; /*CONTRAT*/ $contrat[] = ['dateDebutContrat' => Util::$dateEffet, ['dateDebutContrat' => $dateEffet, 'dateFinContrat' => $dateFin, 'natureContrat' => 'CO', 'typeContrat' => 'TC01', Loading Loading @@ -541,6 +550,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function renouvellerIntervenantRH(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading Loading @@ -640,6 +650,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function cloreDossier(Intervenant $intervenant): ?bool { Loading Loading @@ -669,6 +680,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererListeUO(): ?array { /*On récupére les UO avec le type paramétré*/ Loading @@ -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', []); Loading @@ -737,6 +756,7 @@ class SihamConnecteur implements ConnecteurRhInterface } public static function cleanDatas($str, $strict = false, $encoding = 'UTF-8') { $from = 'ÀÁÂÃÄÅÇÐÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜŸÑàáâãäåçðèéêëìíîïòóôõöøùúûüÿñ()…,<> /?€%!":’\'+.'; Loading @@ -758,7 +778,6 @@ class SihamConnecteur implements ConnecteurRhInterface } return $rstr; } } No newline at end of file