/** * {@inheritDoc} */ public function getTitreCivilite() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTitreCivilite', array()); return parent::getTitreCivilite(); }
/** * Permet de créer un span réutilisable dans le formulaire du client * @param InterlocuteurClient $interlocuteur [description] * @param [type] $uniqId [description] * @return string Un span avec les informations de l'interlocuteur */ public function creationSpanInterlocuteur(InterlocuteurClient $interlocuteur, $uniqId) { // Récupération du traducteur $translator = $this->getServiceLocator()->get('Translator'); $spanInterlocuteur = '<span class="entite interlocuteur">'; if ($interlocuteur->getAccepteInfos() == true) { $spanInterlocuteur .= '<small class="label label-success">' . $translator->translate('Reçoit infos') . '</small> '; } if ($interlocuteur->getEnvoiVersOutlook() == true) { $spanInterlocuteur .= '<small class="label label-warning">' . $translator->translate('Outlook') . '</small> '; } $spanInterlocuteur .= $interlocuteur->getTitreCivilite() . ' ' . $interlocuteur->getPrenom() . ' ' . $interlocuteur->getNom(); if (!empty($interlocuteur->getRefFonction())) { $spanInterlocuteur .= ' - ' . $interlocuteur->getRefFonction()->getIntituleFonction(); } $spanInterlocuteur .= '<input type="hidden" value="' . $uniqId . '"/> <i class="fa fa-times pull-right" title="' . $translator->translate('Supprimer') . '"></i> </span>'; return $spanInterlocuteur; }