| Line 7... |
Line 7... |
| 7 |
* @package Collection
|
7 |
* @package Collection
|
| 8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 9 |
* @copyright 2010 Tela-Botanica
|
9 |
* @copyright 2010 Tela-Botanica
|
| 10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
| 11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
| 12 |
* @version SVN: $Id: ColControleur.php 93 2010-06-21 14:15:13Z jpm $
|
12 |
* @version SVN: $Id: ColControleur.php 97 2010-06-22 08:14:26Z jpm $
|
| 13 |
*/
|
13 |
*/
|
| 14 |
abstract class ColControleur extends Controleur {
|
14 |
abstract class ColControleur extends Controleur {
|
| Line 15... |
Line 15... |
| 15 |
|
15 |
|
| 16 |
const FMT_DATE = '%d/%m/%Y';// Supporte les formats de dates non valides (1989-00-00)
|
16 |
const FMT_DATE = '%d/%m/%Y';// Supporte les formats de dates non valides (1989-00-00)
|
| Line 266... |
Line 266... |
| 266 |
}
|
266 |
}
|
| 267 |
return $date;
|
267 |
return $date;
|
| 268 |
}
|
268 |
}
|
| Line 269... |
Line 269... |
| 269 |
|
269 |
|
| 270 |
protected function formaterCourriels($courriels) {
|
270 |
protected function formaterCourriels($courriels) {
|
| - |
|
271 |
$fmt_courriels = '';
|
| 271 |
$fmt_courriels = array();
|
272 |
if (!empty($courriels)) {
|
| 272 |
$courriels = (is_array($courriels)) ? $courriels : array($courriels);
|
273 |
$courriels = (is_array($courriels)) ? $courriels : array($courriels);
|
| 273 |
foreach ($courriels as $cle => $courriel) {
|
274 |
foreach ($courriels as $cle => $courriel) {
|
| 274 |
$courriel = preg_replace('/@/', ' [arrobase] ', $courriel);
|
275 |
$courriel = preg_replace('/@/', ' [arrobase] ', $courriel);
|
| 275 |
$courriel = preg_replace('/[.]([^.]+)$/', " [point] $1", $courriel);
|
276 |
$courriel = preg_replace('/[.]([^.]+)$/', " [point] $1", $courriel);
|
| - |
|
277 |
$fmt_courriels[] = $this->getVue('courriel', array('courriel' => $courriel));
|
| - |
|
278 |
}
|
| 276 |
$fmt_courriels[] = $this->getVue('courriel', array('courriel' => $courriel));
|
279 |
$fmt_courriels = implode(', ', $fmt_courriels);
|
| 277 |
}
|
- |
|
| 278 |
$fmt_courriels = implode(', ', $fmt_courriels);
|
280 |
}
|
| 279 |
return $fmt_courriels;
|
281 |
return $fmt_courriels;
|
| Line 280... |
Line 282... |
| 280 |
}
|
282 |
}
|
| 281 |
|
283 |
|