Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 231 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 231 Rev 281
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: aControleur.php 231 2014-07-17 12:23:56Z mathias $
12
 * @version		SVN: $Id: aControleur.php 281 2023-05-03 17:28:51Z delphine $
13
 */
13
 */
14
abstract class aControleur extends Controleur {
14
abstract class aControleur 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 271... Line 271...
271
	protected function formaterCourriels($courriels) {
271
	protected function formaterCourriels($courriels) {
272
		$fmt_courriels = '';
272
		$fmt_courriels = '';
273
		if (!empty($courriels)) {
273
		if (!empty($courriels)) {
274
			$courriels = (is_array($courriels)) ? $courriels : array($courriels);
274
			$courriels = (is_array($courriels)) ? $courriels : array($courriels);
275
			foreach ($courriels as $cle => $courriel) {
275
			foreach ($courriels as $cle => $courriel) {
-
 
276
			    $fmt = array();
276
				$courriel = preg_replace('/@/', ' [arrobase] ', $courriel);
277
				$courriel = preg_replace('/@/', ' [arrobase] ', $courriel);
277
				$courriel = preg_replace('/[.]([^.]+)$/', " [point] $1", $courriel);
278
				$courriel = preg_replace('/[.]([^.]+)$/', " [point] $1", $courriel);
278
				$fmt_courriels[] = $this->getVue('courriel', array('courriel' => $courriel));
279
				$fmt[] = $this->getVue('courriel', array('courriel' => $courriel));
279
			}
280
			}
280
			$fmt_courriels = implode(', ', $fmt_courriels);
281
			$fmt_courriels = implode(', ', $fmt);
281
		}
282
		}
282
		return $fmt_courriels;
283
		return $fmt_courriels;
283
	}
284
	}
Line 284... Line 285...
284
	
285