Loading module/Application/src/Application/Entity/Db/MacroContent/FichePosteMacroTrait.php +30 −1 Changes for module/Application/src/Application/Entity/Db/MacroContent/FichePosteMacroTrait.php: 30 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use Application\Entity\Db\Competence; use Application\Entity\Db\FichePoste; use Application\Entity\Db\ParcoursDeFormation; use Formation\Entity\Db\Formation; use Metier\Entity\Db\Reference; trait FichePosteMacroTrait { Loading @@ -22,6 +23,23 @@ trait FichePosteMacroTrait { return $texte; } /** * @return string */ public function toStringLibelleComplementaire() : string { $texte = ""; /** @var FichePoste $ficheposte */ $ficheposte = $this; if ($ficheposte->getLibelle() !== null AND trim($ficheposte->getLibelle()) !== '') { $texte .= "<br/>" . trim($ficheposte->getLibelle()); } return $texte; } /** * @return string */ Loading Loading @@ -257,7 +275,18 @@ trait FichePosteMacroTrait { $texte = ""; foreach ($ficheposte->getFichesMetiers() as $ficheTypeExterne) { $ficheMetier = $ficheTypeExterne->getFicheType(); $texte .= "<h3>" . $ficheMetier->getMetier()->getLibelleGenre($ficheposte->getAgent()) . "</h3>"; $texte .= "<h3>"; $texte .= $ficheMetier->getMetier()->getLibelleGenre($ficheposte->getAgent()); $references = $ficheMetier->getMetier()->getReferences(); if ($references !== null AND !empty($references)) { $texte .= "<br/><small>"; /** @var Reference $reference */ foreach ($references as $reference) { $texte .= " <a href='".$reference->getUrl()."'>".$reference->getReferentiel()->getLibelleCourt() . "-" . $reference->getCode()."</a>"; } $texte.="</small>"; } $texte .= "</h3>"; $ids = explode(";",$ficheTypeExterne->getActivites()); foreach ($ids as $id) { Loading Loading
module/Application/src/Application/Entity/Db/MacroContent/FichePosteMacroTrait.php +30 −1 Changes for module/Application/src/Application/Entity/Db/MacroContent/FichePosteMacroTrait.php: 30 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use Application\Entity\Db\Competence; use Application\Entity\Db\FichePoste; use Application\Entity\Db\ParcoursDeFormation; use Formation\Entity\Db\Formation; use Metier\Entity\Db\Reference; trait FichePosteMacroTrait { Loading @@ -22,6 +23,23 @@ trait FichePosteMacroTrait { return $texte; } /** * @return string */ public function toStringLibelleComplementaire() : string { $texte = ""; /** @var FichePoste $ficheposte */ $ficheposte = $this; if ($ficheposte->getLibelle() !== null AND trim($ficheposte->getLibelle()) !== '') { $texte .= "<br/>" . trim($ficheposte->getLibelle()); } return $texte; } /** * @return string */ Loading Loading @@ -257,7 +275,18 @@ trait FichePosteMacroTrait { $texte = ""; foreach ($ficheposte->getFichesMetiers() as $ficheTypeExterne) { $ficheMetier = $ficheTypeExterne->getFicheType(); $texte .= "<h3>" . $ficheMetier->getMetier()->getLibelleGenre($ficheposte->getAgent()) . "</h3>"; $texte .= "<h3>"; $texte .= $ficheMetier->getMetier()->getLibelleGenre($ficheposte->getAgent()); $references = $ficheMetier->getMetier()->getReferences(); if ($references !== null AND !empty($references)) { $texte .= "<br/><small>"; /** @var Reference $reference */ foreach ($references as $reference) { $texte .= " <a href='".$reference->getUrl()."'>".$reference->getReferentiel()->getLibelleCourt() . "-" . $reference->getCode()."</a>"; } $texte.="</small>"; } $texte .= "</h3>"; $ids = explode(";",$ficheTypeExterne->getActivites()); foreach ($ids as $id) { Loading