Loading module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Poste.dcm.xml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ <field name="numeroPoste" type="string" length="128" column="numero_poste" nullable="true"/> <field name="localisation" type="string" length="128" column="localisation" nullable="true"/> <field name="lien" type="string" length="256" column="lien" nullable="true"/> <many-to-one target-entity="Application\Entity\Db\Agent" field="rattachementHierarchique"> <join-column name="rattachement_hierarchique" referenced-column-name="id" /> Loading module/Application/src/Application/Entity/Db/Poste.php +18 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ class Poste { private $rattachementHierarchique; /** @var Domaine */ private $domaine; /** @var string */ private $lien; /** * @return int Loading Loading @@ -135,5 +137,21 @@ class Poste { return $this; } /** * @return string */ public function getLien() { return $this->lien; } /** * @param string $lien * @return Poste */ public function setLien($lien) { $this->lien = $lien; return $this; } } No newline at end of file module/Application/src/Application/Form/Poste/PosteForm.php +11 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,17 @@ class PosteForm extends Form { 'id' => 'domaine', ], ]); // liens exterieur vers fiche de poste $this->add([ 'type' => Text::class, 'name' => 'lien', 'options' => [ 'label' => "Lien externe ver la fiche de poste :", ], 'attributes' => [ 'id' => 'lien', ], ]); // button $this->add([ Loading module/Application/src/Application/Form/Poste/PosteHydrator.php +2 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ class PosteHydrator implements HydratorInterface { 'correspondance' => ($object->getCorrespondance())?$object->getCorrespondance()->getId():null, 'rattachement' => ($object->getRattachementHierarchique())?$object->getRattachementHierarchique()->getId():null, 'domaine' => ($object->getDomaine())?$object->getDomaine()->getId():null, 'lien' => $object->getLien(), ]; return $data; } Loading @@ -48,6 +49,7 @@ class PosteHydrator implements HydratorInterface { $object->setCorrespondance($correspondance); $object->setRattachementHierarchique($rattachement); $object->setDomaine($domaine); $object->setLien($data['lien']); return $object; } Loading module/Application/src/Application/View/Helper/PosteViewHelper.php +4 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,10 @@ class PosteViewHelper extends AbstractHelper $texte .= '<dd class="siham">'.$poste->getCorrespondance().'</dd>'; $texte .= '<dt> Domaine UNICAEN </dt>'; $texte .= '<dd class="gpeec">'.(($poste->getDomaine())?$poste->getDomaine()->getLibelle():"---").'</dd>'; if ($poste->getLien()) { $texte .= '<dt> Lien externe </dt>'; $texte .= '<dd class="gpeec"><a href="'.$poste->getLien().'">'.$poste->getLien().'</a></dd>'; } $texte .= '</dl>'; return $texte; Loading Loading
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Poste.dcm.xml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ <field name="numeroPoste" type="string" length="128" column="numero_poste" nullable="true"/> <field name="localisation" type="string" length="128" column="localisation" nullable="true"/> <field name="lien" type="string" length="256" column="lien" nullable="true"/> <many-to-one target-entity="Application\Entity\Db\Agent" field="rattachementHierarchique"> <join-column name="rattachement_hierarchique" referenced-column-name="id" /> Loading
module/Application/src/Application/Entity/Db/Poste.php +18 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ class Poste { private $rattachementHierarchique; /** @var Domaine */ private $domaine; /** @var string */ private $lien; /** * @return int Loading Loading @@ -135,5 +137,21 @@ class Poste { return $this; } /** * @return string */ public function getLien() { return $this->lien; } /** * @param string $lien * @return Poste */ public function setLien($lien) { $this->lien = $lien; return $this; } } No newline at end of file
module/Application/src/Application/Form/Poste/PosteForm.php +11 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,17 @@ class PosteForm extends Form { 'id' => 'domaine', ], ]); // liens exterieur vers fiche de poste $this->add([ 'type' => Text::class, 'name' => 'lien', 'options' => [ 'label' => "Lien externe ver la fiche de poste :", ], 'attributes' => [ 'id' => 'lien', ], ]); // button $this->add([ Loading
module/Application/src/Application/Form/Poste/PosteHydrator.php +2 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ class PosteHydrator implements HydratorInterface { 'correspondance' => ($object->getCorrespondance())?$object->getCorrespondance()->getId():null, 'rattachement' => ($object->getRattachementHierarchique())?$object->getRattachementHierarchique()->getId():null, 'domaine' => ($object->getDomaine())?$object->getDomaine()->getId():null, 'lien' => $object->getLien(), ]; return $data; } Loading @@ -48,6 +49,7 @@ class PosteHydrator implements HydratorInterface { $object->setCorrespondance($correspondance); $object->setRattachementHierarchique($rattachement); $object->setDomaine($domaine); $object->setLien($data['lien']); return $object; } Loading
module/Application/src/Application/View/Helper/PosteViewHelper.php +4 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,10 @@ class PosteViewHelper extends AbstractHelper $texte .= '<dd class="siham">'.$poste->getCorrespondance().'</dd>'; $texte .= '<dt> Domaine UNICAEN </dt>'; $texte .= '<dd class="gpeec">'.(($poste->getDomaine())?$poste->getDomaine()->getLibelle():"---").'</dd>'; if ($poste->getLien()) { $texte .= '<dt> Lien externe </dt>'; $texte .= '<dd class="gpeec"><a href="'.$poste->getLien().'">'.$poste->getLien().'</a></dd>'; } $texte .= '</dl>'; return $texte; Loading