PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
vendor
/
swiftmailer
/
swiftmailer
/
lib
/
classes
/
Swift
<?php /* * This file is part of SwiftMailer. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Utility Class allowing users to simply check expressions again Swift Grammar. * * @author Xavier De Cock <xdecock@gmail.com> */ class Swift_Validate { /** * Grammar Object. * * @var Swift_Mime_Grammar */ private static $grammar = null; /** * Checks if an e-mail address matches the current grammars. * * @param string $email * * @return bool */ public static function email($email) { if (self::$grammar === null) { self::$grammar = Swift_DependencyContainer::getInstance() ->lookup('mime.grammar'); } return (bool) preg_match( '/^'.self::$grammar->getDefinition('addr-spec').'$/D', $email ); } }
[-] CharacterReaderFactory.php
[edit]
[-] Attachment.php
[edit]
[-] Mailer.php
[edit]
[+]
Signers
[-] DependencyContainer.php
[edit]
[-] IoException.php
[edit]
[-] Encoding.php
[edit]
[-] NullTransport.php
[edit]
[-] MemorySpool.php
[edit]
[+]
StreamFilters
[-] SignedMessage.php
[edit]
[-] MailTransport.php
[edit]
[-] Image.php
[edit]
[-] ConfigurableSpool.php
[edit]
[-] LoadBalancedTransport.php
[edit]
[-] StreamFilter.php
[edit]
[+]
ByteStream
[-] SmtpTransport.php
[edit]
[-] KeyCache.php
[edit]
[-] TransportException.php
[edit]
[-] SpoolTransport.php
[edit]
[+]
Plugins
[+]
CharacterStream
[-] ReplacementFilterFactory.php
[edit]
[-] Transport.php
[edit]
[-] MimePart.php
[edit]
[-] Filterable.php
[edit]
[-] Message.php
[edit]
[-] OutputByteStream.php
[edit]
[-] EmbeddedFile.php
[edit]
[-] FileSpool.php
[edit]
[+]
Mailer
[+]
..
[+]
CharacterReader
[-] DependencyException.php
[edit]
[-] FileStream.php
[edit]
[-] SendmailTransport.php
[edit]
[+]
Mime
[-] SwiftException.php
[edit]
[+]
CharacterReaderFactory
[-] Preferences.php
[edit]
[+]
Encoder
[-] FailoverTransport.php
[edit]
[+]
KeyCache
[-] Validate.php
[edit]
[-] InputByteStream.php
[edit]
[-] RfcComplianceException.php
[edit]
[+]
Events
[-] Spool.php
[edit]
[+]
Transport
[-] CharacterStream.php
[edit]
[-] Signer.php
[edit]
[-] CharacterReader.php
[edit]
[-] Encoder.php
[edit]