Loading module/Application/src/Service/ValidationService.php +2 −14 Changes for module/Application/src/Service/ValidationService.php: 2 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ use RuntimeException; use Service\Entity\Db\TypeVolumeHoraire; use Service\Service\TypeVolumeHoraireServiceAwareTrait; /** * Description of Validation * Loading @@ -33,7 +32,6 @@ class ValidationService extends AbstractEntityService use MiseEnPaiementServiceAwareTrait; use ContratServiceAwareTrait; /** * retourne la classe des entités * Loading @@ -46,7 +44,6 @@ class ValidationService extends AbstractEntityService } /** * Retourne l'alias d'entité courante * Loading @@ -58,7 +55,6 @@ class ValidationService extends AbstractEntityService } public function validerDossier (IntervenantDossier $intervenantDossier): Validation { $validation = $this->newEntity(); Loading @@ -75,7 +71,6 @@ class ValidationService extends AbstractEntityService } public function validerMission (Mission $mission): Validation { $validation = $this->newEntity(); Loading @@ -89,7 +84,6 @@ class ValidationService extends AbstractEntityService } public function validerVolumeHoraireMission (VolumeHoraireMission $volumeHoraireMission): Validation { if ($volumeHoraireMission->getTypeVolumeHoraire()->isPrevu()) { Loading @@ -109,7 +103,6 @@ class ValidationService extends AbstractEntityService } public function validerOffreEmploi (OffreEmploi $offreEmploi): Validation { $validation = $this->newEntity(); Loading @@ -122,7 +115,6 @@ class ValidationService extends AbstractEntityService } public function validerCandidature (Candidature $candidature): Validation { $validation = $this->newEntity(); Loading @@ -131,12 +123,13 @@ class ValidationService extends AbstractEntityService $this->save($validation); $candidature->setValidation($validation); $candidature->setMotif(null); $this->getEntityManager()->persist($candidature); $this->getEntityManager()->flush($candidature); return $validation; } /** * * @param Intervenant $intervenant Loading Loading @@ -166,7 +159,6 @@ class ValidationService extends AbstractEntityService } /** * Supprime (historise par défaut) le service spécifié. * Loading @@ -193,7 +185,6 @@ class ValidationService extends AbstractEntityService $entity->removeVolumeHoraireReferentiel($vh); } if (!$softDelete) { /** @var Contrat[] $contrats */ $contrats = $this->getEntityManager()->getRepository(Contrat::class)->findBy(['validation' => $entity]); Loading @@ -212,7 +203,6 @@ class ValidationService extends AbstractEntityService } /** * Retourne une nouvelle entité de la classe donnée * Loading @@ -229,7 +219,6 @@ class ValidationService extends AbstractEntityService } /** * Recherche par type * Loading @@ -255,7 +244,6 @@ class ValidationService extends AbstractEntityService } /** * @param TypeValidation $typeValidation * @param Intervenant $intervenant Loading module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php +1 −42 Changes for module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php: 1 added line, 42 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ namespace ExportRh\Connecteur\Siham; use Application\Entity\Db\Intervenant; use Application\Service\Traits\AdresseNumeroComplServiceAwareTrait; use Dossier\Service\Traits\DossierServiceAwareTrait; Loading @@ -16,7 +15,6 @@ use UnicaenSiham\Exception\SihamException; use UnicaenSiham\Service\Siham; use Laminas\Form\Fieldset; class SihamConnecteur implements ConnecteurRhInterface { use DossierServiceAwareTrait; Loading @@ -27,14 +25,12 @@ class SihamConnecteur implements ConnecteurRhInterface public Siham $siham; public function __construct (Siham $siham) { $this->siham = $siham; } public function rechercherIntervenantRh ($nomUsuel = '', $prenom = '', $insee = ''): array { $params = [ Loading @@ -60,12 +56,10 @@ class SihamConnecteur implements ConnecteurRhInterface } } return $listIntervenantRh; } public function recupererIntervenantRh (\Application\Entity\Db\Intervenant $intervenant): ?IntervenantRh { $agent = null; Loading @@ -90,7 +84,6 @@ class SihamConnecteur implements ConnecteurRhInterface } } if (!empty($agent)) { $intervenantRh = new IntervenantRH(); $intervenantRh->setNomUsuel($agent->getNomUsuel()); Loading @@ -117,7 +110,6 @@ class SihamConnecteur implements ConnecteurRhInterface $intervenantRh->setAdresseCommune($agent->getBureauDistributeurAdresse()); $intervenantRh->setAdresseDateDebut($agent->getDateDebutAdresse()); return $intervenantRh; } Loading @@ -125,7 +117,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererDonneesAdministrativesIntervenantRh (\Application\Entity\Db\Intervenant $intervenant): ?array { try { Loading @@ -147,7 +138,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'dateFinObservation' => $intervenant->getAnnee()->getDateFin()->format('Y-m-d'), ]; $donneesAdministratives = $this->siham->recupererDonneesAdministrativeAgent($params); return (array)$donneesAdministratives; Loading @@ -160,14 +150,12 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererAffectationEnCoursIntervenantRh (\Application\Entity\Db\Intervenant $intervenant): ?array { $typeAffectation = (isset($this->siham->getConfig()['type-affectation'])) ? $this->siham->getConfig()['type-affectation'] : ['FUN']; $affectations = []; $donneesAdministratives = $this->recupererDonneesAdministrativesIntervenantRh($intervenant); if (!empty($donneesAdministratives['listeAffectations']) || !empty($donneesAdministratives->listeAffectations)) { $listeAffectations = $donneesAdministratives['listeAffectations']; if (is_array($listeAffectations)) { Loading Loading @@ -198,17 +186,14 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererContratEnCoursIntervenantRh (Intervenant $intervenant): ?array { $contrats = []; $donneesAdministratives = $this->recupererDonneesAdministrativesIntervenantRh($intervenant); if (!empty($donneesAdministratives['listeContrats']) || !empty($donneesAdministratives->listeContrats)) { $listeContrats = (isset($donneesAdministratives['listeContrats']) && is_array($donneesAdministratives['listeContrats'])) ? $donneesAdministratives['listeContrats'] : [$donneesAdministratives['listeContrats']]; foreach ($listeContrats as $contrat) { $dateDebutContrat = new \DateTime($contrat->dateDebutContrat); Loading @@ -224,12 +209,10 @@ class SihamConnecteur implements ConnecteurRhInterface } public function synchroniserDonneesPersonnellesIntervenantRh (\Application\Entity\Db\Intervenant $intervenant, $datas): bool { try { $intervenantRh = $this->recupererIntervenantRh($intervenant); $dossierIntervenant = $this->getServiceDossier()->getByIntervenant($intervenant); Loading Loading @@ -306,7 +289,6 @@ class SihamConnecteur implements ConnecteurRhInterface ]; $this->siham->modifierAdressePrincipaleAgent($params); } Loading @@ -333,7 +315,6 @@ class SihamConnecteur implements ConnecteurRhInterface $this->siham->modifierCoordonnéesBancairesAgent($params); }*/ return true; } catch (SihamException $e) { Loading @@ -342,7 +323,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function trouverCodeRhByInsee (\Application\Entity\Db\Intervenant $intervenant): ?string { $intervenantDossier = $this->getServiceDossier()->getByIntervenant($intervenant); Loading @@ -356,7 +336,6 @@ class SihamConnecteur implements ConnecteurRhInterface $listeAgents = $this->siham->recupererListeAgents($params); $agent = current($listeAgents); if (!empty($agent)) { return $agent->getMatricule(); } Loading @@ -365,7 +344,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function prendreEnChargeIntervenantRh (\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading Loading @@ -461,7 +439,6 @@ class SihamConnecteur implements ConnecteurRhInterface $coordonneesBancaires[] = $coordonnees; } $coordonneesTelMail[] = ''; if ($datas['generiqueFieldset']['telPro'] && !empty($dossierIntervenant->getTelPro())) { $coordonneesTelMail[] = [ Loading Loading @@ -518,7 +495,6 @@ class SihamConnecteur implements ConnecteurRhInterface } } $params = [ 'categorieEntree' => 'ACTIVE', 'civilite' => ($dossierIntervenant->getCivilite() == 'M.') ? '1' : '2', Loading Loading @@ -549,19 +525,16 @@ class SihamConnecteur implements ConnecteurRhInterface 'UO' => $datas['connecteurForm']['affectation'], ]; $matricule = $this->siham->priseEnChargeAgent($params); return $matricule; } catch (SihamException $e) { throw new \Exception($e->getMessage()); } } public function renouvellerIntervenantRH (\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading Loading @@ -589,7 +562,6 @@ class SihamConnecteur implements ConnecteurRhInterface $matricule = $this->siham->getCodeAdministration() . str_pad($matricule, 9, '0', STR_PAD_LEFT); }/*/ /*POSITION ADMINISTRATIVE*/ $position[] = ['dateEffetPosition' => $dateEffet, Loading @@ -599,7 +571,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'temoinValidite' => 1, ]; /*STATUT*/ $statut[] = ['dateEffetStatut' => $dateEffet, Loading Loading @@ -632,7 +603,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'typeLienJuridique' => 'TL01', ]; $params = [ 'categorieEntree' => 'ACTIVE', 'dateRenouvellement' => $dateEffet, Loading @@ -648,7 +618,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'UO' => $datas['connecteurForm']['affectation'], ]; $matricule = $this->siham->renouvellementAgent($params); //Mise à jour des données personnelles de l'agent Loading @@ -661,12 +630,11 @@ class SihamConnecteur implements ConnecteurRhInterface } public function cloreDossier (Intervenant $intervenant): ?bool { try { $anneeUniversitaire = $this->getServiceExportRh()->getAnneeUniversitaireEnCours(); $anneeUniversitaire = $intervenant->getAnnee(); $dateSortie = $anneeUniversitaire->getDateFin()->format('Y-m-d'); $matricule = ''; Loading @@ -691,7 +659,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererListeUO (): ?array { /*On récupére les UO avec le type paramétré*/ Loading @@ -716,49 +683,42 @@ 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 @@ -767,7 +727,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public static function cleanDatas ($str, $strict = false, $encoding = 'UTF-8') { $from = 'ÀÁÂÃÄÅÇÐÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜŸÑàáâãäåçðèéêëìíîïòóôõöøùúûüÿñ()…,<> /?€%!":’\'+.'; Loading module/Mission/src/Entity/Db/Candidature.php +2 −15 Changes for module/Mission/src/Entity/Db/Candidature.php: 2 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ namespace Mission\Entity\Db; use Application\Entity\Db\Intervenant; use Application\Entity\Db\Traits\StructureAwareTrait; use Application\Entity\Db\Validation; Loading Loading @@ -35,14 +34,12 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface protected ?string $motif = null; public function getResourceId () { return 'Candidature'; } /** * Retourne la représentation littérale de cet objet. * Loading @@ -54,14 +51,12 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } public function getId (): ?int { return $this->id; } /** * @return Intervenant */ Loading @@ -71,7 +66,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param Intervenant $intervenant */ Loading @@ -83,7 +77,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @return OffreEmploi */ Loading @@ -93,7 +86,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param OffreEmploi $offre */ Loading @@ -105,11 +97,10 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } public function isValide (): bool { if ($validation = $this->getValidation()) { $validation = $this->getValidation(); if ($validation) { if ($validation->estNonHistorise()) return true; } Loading @@ -117,7 +108,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @return ?Validation */ Loading @@ -127,7 +117,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param ?Validation $validation */ Loading @@ -139,7 +128,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @return string|null */ Loading @@ -149,7 +137,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param string|null $motif */ Loading Loading
module/Application/src/Service/ValidationService.php +2 −14 Changes for module/Application/src/Service/ValidationService.php: 2 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ use RuntimeException; use Service\Entity\Db\TypeVolumeHoraire; use Service\Service\TypeVolumeHoraireServiceAwareTrait; /** * Description of Validation * Loading @@ -33,7 +32,6 @@ class ValidationService extends AbstractEntityService use MiseEnPaiementServiceAwareTrait; use ContratServiceAwareTrait; /** * retourne la classe des entités * Loading @@ -46,7 +44,6 @@ class ValidationService extends AbstractEntityService } /** * Retourne l'alias d'entité courante * Loading @@ -58,7 +55,6 @@ class ValidationService extends AbstractEntityService } public function validerDossier (IntervenantDossier $intervenantDossier): Validation { $validation = $this->newEntity(); Loading @@ -75,7 +71,6 @@ class ValidationService extends AbstractEntityService } public function validerMission (Mission $mission): Validation { $validation = $this->newEntity(); Loading @@ -89,7 +84,6 @@ class ValidationService extends AbstractEntityService } public function validerVolumeHoraireMission (VolumeHoraireMission $volumeHoraireMission): Validation { if ($volumeHoraireMission->getTypeVolumeHoraire()->isPrevu()) { Loading @@ -109,7 +103,6 @@ class ValidationService extends AbstractEntityService } public function validerOffreEmploi (OffreEmploi $offreEmploi): Validation { $validation = $this->newEntity(); Loading @@ -122,7 +115,6 @@ class ValidationService extends AbstractEntityService } public function validerCandidature (Candidature $candidature): Validation { $validation = $this->newEntity(); Loading @@ -131,12 +123,13 @@ class ValidationService extends AbstractEntityService $this->save($validation); $candidature->setValidation($validation); $candidature->setMotif(null); $this->getEntityManager()->persist($candidature); $this->getEntityManager()->flush($candidature); return $validation; } /** * * @param Intervenant $intervenant Loading Loading @@ -166,7 +159,6 @@ class ValidationService extends AbstractEntityService } /** * Supprime (historise par défaut) le service spécifié. * Loading @@ -193,7 +185,6 @@ class ValidationService extends AbstractEntityService $entity->removeVolumeHoraireReferentiel($vh); } if (!$softDelete) { /** @var Contrat[] $contrats */ $contrats = $this->getEntityManager()->getRepository(Contrat::class)->findBy(['validation' => $entity]); Loading @@ -212,7 +203,6 @@ class ValidationService extends AbstractEntityService } /** * Retourne une nouvelle entité de la classe donnée * Loading @@ -229,7 +219,6 @@ class ValidationService extends AbstractEntityService } /** * Recherche par type * Loading @@ -255,7 +244,6 @@ class ValidationService extends AbstractEntityService } /** * @param TypeValidation $typeValidation * @param Intervenant $intervenant Loading
module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php +1 −42 Changes for module/ExportRh/src/Connecteur/Siham/SihamConnecteur.php: 1 added line, 42 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ namespace ExportRh\Connecteur\Siham; use Application\Entity\Db\Intervenant; use Application\Service\Traits\AdresseNumeroComplServiceAwareTrait; use Dossier\Service\Traits\DossierServiceAwareTrait; Loading @@ -16,7 +15,6 @@ use UnicaenSiham\Exception\SihamException; use UnicaenSiham\Service\Siham; use Laminas\Form\Fieldset; class SihamConnecteur implements ConnecteurRhInterface { use DossierServiceAwareTrait; Loading @@ -27,14 +25,12 @@ class SihamConnecteur implements ConnecteurRhInterface public Siham $siham; public function __construct (Siham $siham) { $this->siham = $siham; } public function rechercherIntervenantRh ($nomUsuel = '', $prenom = '', $insee = ''): array { $params = [ Loading @@ -60,12 +56,10 @@ class SihamConnecteur implements ConnecteurRhInterface } } return $listIntervenantRh; } public function recupererIntervenantRh (\Application\Entity\Db\Intervenant $intervenant): ?IntervenantRh { $agent = null; Loading @@ -90,7 +84,6 @@ class SihamConnecteur implements ConnecteurRhInterface } } if (!empty($agent)) { $intervenantRh = new IntervenantRH(); $intervenantRh->setNomUsuel($agent->getNomUsuel()); Loading @@ -117,7 +110,6 @@ class SihamConnecteur implements ConnecteurRhInterface $intervenantRh->setAdresseCommune($agent->getBureauDistributeurAdresse()); $intervenantRh->setAdresseDateDebut($agent->getDateDebutAdresse()); return $intervenantRh; } Loading @@ -125,7 +117,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererDonneesAdministrativesIntervenantRh (\Application\Entity\Db\Intervenant $intervenant): ?array { try { Loading @@ -147,7 +138,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'dateFinObservation' => $intervenant->getAnnee()->getDateFin()->format('Y-m-d'), ]; $donneesAdministratives = $this->siham->recupererDonneesAdministrativeAgent($params); return (array)$donneesAdministratives; Loading @@ -160,14 +150,12 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererAffectationEnCoursIntervenantRh (\Application\Entity\Db\Intervenant $intervenant): ?array { $typeAffectation = (isset($this->siham->getConfig()['type-affectation'])) ? $this->siham->getConfig()['type-affectation'] : ['FUN']; $affectations = []; $donneesAdministratives = $this->recupererDonneesAdministrativesIntervenantRh($intervenant); if (!empty($donneesAdministratives['listeAffectations']) || !empty($donneesAdministratives->listeAffectations)) { $listeAffectations = $donneesAdministratives['listeAffectations']; if (is_array($listeAffectations)) { Loading Loading @@ -198,17 +186,14 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererContratEnCoursIntervenantRh (Intervenant $intervenant): ?array { $contrats = []; $donneesAdministratives = $this->recupererDonneesAdministrativesIntervenantRh($intervenant); if (!empty($donneesAdministratives['listeContrats']) || !empty($donneesAdministratives->listeContrats)) { $listeContrats = (isset($donneesAdministratives['listeContrats']) && is_array($donneesAdministratives['listeContrats'])) ? $donneesAdministratives['listeContrats'] : [$donneesAdministratives['listeContrats']]; foreach ($listeContrats as $contrat) { $dateDebutContrat = new \DateTime($contrat->dateDebutContrat); Loading @@ -224,12 +209,10 @@ class SihamConnecteur implements ConnecteurRhInterface } public function synchroniserDonneesPersonnellesIntervenantRh (\Application\Entity\Db\Intervenant $intervenant, $datas): bool { try { $intervenantRh = $this->recupererIntervenantRh($intervenant); $dossierIntervenant = $this->getServiceDossier()->getByIntervenant($intervenant); Loading Loading @@ -306,7 +289,6 @@ class SihamConnecteur implements ConnecteurRhInterface ]; $this->siham->modifierAdressePrincipaleAgent($params); } Loading @@ -333,7 +315,6 @@ class SihamConnecteur implements ConnecteurRhInterface $this->siham->modifierCoordonnéesBancairesAgent($params); }*/ return true; } catch (SihamException $e) { Loading @@ -342,7 +323,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function trouverCodeRhByInsee (\Application\Entity\Db\Intervenant $intervenant): ?string { $intervenantDossier = $this->getServiceDossier()->getByIntervenant($intervenant); Loading @@ -356,7 +336,6 @@ class SihamConnecteur implements ConnecteurRhInterface $listeAgents = $this->siham->recupererListeAgents($params); $agent = current($listeAgents); if (!empty($agent)) { return $agent->getMatricule(); } Loading @@ -365,7 +344,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function prendreEnChargeIntervenantRh (\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading Loading @@ -461,7 +439,6 @@ class SihamConnecteur implements ConnecteurRhInterface $coordonneesBancaires[] = $coordonnees; } $coordonneesTelMail[] = ''; if ($datas['generiqueFieldset']['telPro'] && !empty($dossierIntervenant->getTelPro())) { $coordonneesTelMail[] = [ Loading Loading @@ -518,7 +495,6 @@ class SihamConnecteur implements ConnecteurRhInterface } } $params = [ 'categorieEntree' => 'ACTIVE', 'civilite' => ($dossierIntervenant->getCivilite() == 'M.') ? '1' : '2', Loading Loading @@ -549,19 +525,16 @@ class SihamConnecteur implements ConnecteurRhInterface 'UO' => $datas['connecteurForm']['affectation'], ]; $matricule = $this->siham->priseEnChargeAgent($params); return $matricule; } catch (SihamException $e) { throw new \Exception($e->getMessage()); } } public function renouvellerIntervenantRH (\Application\Entity\Db\Intervenant $intervenant, $datas): ?string { try { Loading Loading @@ -589,7 +562,6 @@ class SihamConnecteur implements ConnecteurRhInterface $matricule = $this->siham->getCodeAdministration() . str_pad($matricule, 9, '0', STR_PAD_LEFT); }/*/ /*POSITION ADMINISTRATIVE*/ $position[] = ['dateEffetPosition' => $dateEffet, Loading @@ -599,7 +571,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'temoinValidite' => 1, ]; /*STATUT*/ $statut[] = ['dateEffetStatut' => $dateEffet, Loading Loading @@ -632,7 +603,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'typeLienJuridique' => 'TL01', ]; $params = [ 'categorieEntree' => 'ACTIVE', 'dateRenouvellement' => $dateEffet, Loading @@ -648,7 +618,6 @@ class SihamConnecteur implements ConnecteurRhInterface 'UO' => $datas['connecteurForm']['affectation'], ]; $matricule = $this->siham->renouvellementAgent($params); //Mise à jour des données personnelles de l'agent Loading @@ -661,12 +630,11 @@ class SihamConnecteur implements ConnecteurRhInterface } public function cloreDossier (Intervenant $intervenant): ?bool { try { $anneeUniversitaire = $this->getServiceExportRh()->getAnneeUniversitaireEnCours(); $anneeUniversitaire = $intervenant->getAnnee(); $dateSortie = $anneeUniversitaire->getDateFin()->format('Y-m-d'); $matricule = ''; Loading @@ -691,7 +659,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public function recupererListeUO (): ?array { /*On récupére les UO avec le type paramétré*/ Loading @@ -716,49 +683,42 @@ 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 @@ -767,7 +727,6 @@ class SihamConnecteur implements ConnecteurRhInterface } public static function cleanDatas ($str, $strict = false, $encoding = 'UTF-8') { $from = 'ÀÁÂÃÄÅÇÐÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜŸÑàáâãäåçðèéêëìíîïòóôõöøùúûüÿñ()…,<> /?€%!":’\'+.'; Loading
module/Mission/src/Entity/Db/Candidature.php +2 −15 Changes for module/Mission/src/Entity/Db/Candidature.php: 2 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ namespace Mission\Entity\Db; use Application\Entity\Db\Intervenant; use Application\Entity\Db\Traits\StructureAwareTrait; use Application\Entity\Db\Validation; Loading Loading @@ -35,14 +34,12 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface protected ?string $motif = null; public function getResourceId () { return 'Candidature'; } /** * Retourne la représentation littérale de cet objet. * Loading @@ -54,14 +51,12 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } public function getId (): ?int { return $this->id; } /** * @return Intervenant */ Loading @@ -71,7 +66,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param Intervenant $intervenant */ Loading @@ -83,7 +77,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @return OffreEmploi */ Loading @@ -93,7 +86,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param OffreEmploi $offre */ Loading @@ -105,11 +97,10 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } public function isValide (): bool { if ($validation = $this->getValidation()) { $validation = $this->getValidation(); if ($validation) { if ($validation->estNonHistorise()) return true; } Loading @@ -117,7 +108,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @return ?Validation */ Loading @@ -127,7 +117,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param ?Validation $validation */ Loading @@ -139,7 +128,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @return string|null */ Loading @@ -149,7 +137,6 @@ class Candidature implements HistoriqueAwareInterface, ResourceInterface } /** * @param string|null $motif */ Loading