2017-09-15 14:36:37 +03:00
|
|
|
<?php
|
2016-07-09 11:05:33 +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 11:05:33 +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 11:05:33 +03:00
|
|
|
|
2020-05-12 21:49:15 +03:00
|
|
|
/**
|
|
|
|
* Class Url
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @package EA\Engine\Types
|
|
|
|
*/
|
2016-11-09 21:56:24 +03:00
|
|
|
class Url extends NonEmptyText {
|
2020-05-12 21:49:15 +03:00
|
|
|
/**
|
|
|
|
* @param mixed $value
|
|
|
|
* @return bool
|
|
|
|
*/
|
2020-11-16 12:54:59 +03:00
|
|
|
protected function validate($value)
|
2017-09-15 14:36:37 +03:00
|
|
|
{
|
2020-11-16 12:54:59 +03:00
|
|
|
return parent::validate($value) && filter_var($value, FILTER_VALIDATE_URL);
|
2016-07-09 12:03:34 +03:00
|
|
|
}
|
2016-07-09 11:05:33 +03:00
|
|
|
}
|