2017-09-15 14:36:37 +03:00
|
|
|
<?php
|
2016-07-09 12:03:34 +03:00
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
2020-03-11 12:10:59 +03:00
|
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
2016-07-09 12:03:34 +03:00
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.2.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2019-06-08 17:27:04 +03:00
|
|
|
namespace EA\Engine\Types;
|
2016-07-09 12:03:34 +03:00
|
|
|
|
2016-11-09 21:56:24 +03:00
|
|
|
class Email extends NonEmptyText {
|
2017-09-15 14:36:37 +03:00
|
|
|
protected function _validate($value)
|
|
|
|
{
|
2016-07-09 12:03:34 +03:00
|
|
|
return parent::_validate($value) && filter_var($value, FILTER_VALIDATE_EMAIL);
|
|
|
|
}
|
|
|
|
}
|