[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
ojs
/
248
/
lib
/
pkp
/
classes
/
validation
/
[
Home
]
File: ValidatorEmail.inc.php
<?php /** * @file classes/validation/ValidatorEmail.inc.php * * Copyright (c) 2013-2019 Simon Fraser University * Copyright (c) 2000-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class ValidatorEmail * @ingroup validation * @see Validator * * @brief Validation check for email addresses. */ import('lib.pkp.classes.validation.ValidatorRegExp'); class ValidatorEmail extends ValidatorRegExp { /** * Constructor. */ function ValidatorEmail() { parent::ValidatorRegExp(ValidatorEmail::getRegexp()); } // // Public static methods // /** * Return the regex for an email check. This can be called * statically. * @return string */ function getRegexp() { return '/^' . PCRE_EMAIL_ADDRESS . '$/i'; } } ?>