223,6 → 223,18 |
public static function formaterChaineVersClasseCss($chaine) { |
return trim(str_replace(' ','_',$chaine)); |
} |
|
public static function tronquerChaineSansCouperMot($chaine, $longueur = 120) { |
$retour = ""; |
if (strlen ($chaine) < $longueur) { |
$retour = $chaine; |
} elseif (preg_match ("/(.{1,$longueur})\s./ms", $chaine, $match)) { |
$retour = $match [1] . "..."; |
} else { |
$retour = substr ($chaine, 0, $longueur) . "..."; |
} |
return $retour; |
} |
|
protected function chargerPiedDePage() { |
$donnees['appli'] = Application::getInfo(); |