106,7 → 106,7 |
} |
|
protected function construireTxtTruckSansMajuscule($chaine_a_analyser) { |
return $this->construireTxtTruck($chaine_a_analyser, false); |
return $this->construireTxtTruck($chaine_a_analyser, false, true); |
} |
|
protected function construireTxtTruckSansPointFinal($chaine_a_analyser) { |
114,6 → 114,12 |
} |
|
protected function construireTxtTruck($chaine_a_analyser, $majuscule = true, $point_final = true) { |
$termes = $this->traiterTxtTruck($chaine_a_analyser); |
$chaine_a_retourner = $this->formaterTableauDeTxt($termes, $majuscule, $point_final); |
return $chaine_a_retourner; |
} |
|
protected function traiterTxtTruck($chaine_a_analyser) { |
$termes = array(); |
if ((!is_null($chaine_a_analyser)) && (trim($chaine_a_analyser) != '')) { |
$valeurs = explode(self::SEPARATEUR_VALEURS, $chaine_a_analyser); |
128,9 → 134,7 |
} |
} |
} |
|
$chaine_a_retourner = $this->formaterTableauDeTxt($termes, $majuscule, $point_final); |
return $chaine_a_retourner; |
return $termes; |
} |
|
protected function getTxtTruckParPosition($chaine_a_analyser, $position = 1) { |
263,6 → 267,18 |
return $date; |
} |
|
protected function formaterCourriels($courriels) { |
$fmt_courriels = array(); |
$courriels = (is_array($courriels)) ? $courriels : array($courriels); |
foreach ($courriels as $cle => $courriel) { |
$courriel = preg_replace('/@/', ' [arrobase] ', $courriel); |
$courriel = preg_replace('/[.]([^.]+)$/', " [point] $1", $courriel); |
$fmt_courriels[] = $this->getVue('courriel', array('courriel' => $courriel)); |
} |
$fmt_courriels = implode(', ', $fmt_courriels); |
return $fmt_courriels; |
} |
|
protected function nettoyerPointFinal($mot) { |
$mot = preg_replace('/[.]$/', '', $mot); |
return $mot; |