44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
'site_asso' => $string,
'monnaie' => $string,
'pays' => $string,
'champs_membres' => $object,
'email_envoi_automatique' => $string,
'categorie_membres' => $int,
'categorie_dons' => $int,
'categorie_cotisations' => $int,
'accueil_wiki' => $string,
'accueil_connexion' => $string,
|
<
<
|
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
'site_asso' => $string,
'monnaie' => $string,
'pays' => $string,
'champs_membres' => $object,
'categorie_membres' => $int,
'categorie_dons' => $int,
'categorie_cotisations' => $int,
'accueil_wiki' => $string,
'accueil_connexion' => $string,
|
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
{
$key = str_replace('accueil_', '', $key);
throw new UserException('Le nom de la page d\'accueil ' . $key . ' ne peut rester vide.');
}
break;
}
case 'email_asso':
case 'email_envoi_automatique':
{
if (!filter_var($value, FILTER_VALIDATE_EMAIL))
{
throw new UserException('Adresse e-mail invalide.');
}
break;
}
|
<
|
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
{
$key = str_replace('accueil_', '', $key);
throw new UserException('Le nom de la page d\'accueil ' . $key . ' ne peut rester vide.');
}
break;
}
case 'email_asso':
{
if (!filter_var($value, FILTER_VALIDATE_EMAIL))
{
throw new UserException('Adresse e-mail invalide.');
}
break;
}
|