TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
classes
Swift
Validate.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of SwiftMailer.
5
*
6
* For the full copyright and license information, please view the LICENSE
7
* file that was distributed with this source code.
8
*/
9
15
class
Swift_Validate
16
{
22
private
static
$grammar
= null;
23
31
public
static
function
email
($email)
32
{
33
if
(self::$grammar === null) {
34
self::$grammar =
Swift_DependencyContainer::getInstance
()
35
->lookup(
'mime.grammar'
);
36
}
37
38
return
(
bool
) preg_match(
39
'/^'
.self::$grammar->getDefinition(
'addr-spec'
).
'$/D'
,
40
$email
41
);
42
}
43
}
Generated on Wed Nov 11 2015 01:52:07 for TYPO3 by
1.8.3