[ 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: ValidatorUrl.inc.php
<?php /** * @file classes/validation/ValidatorUrl.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 ValidatorUrl * @ingroup validation * @see Validator * * @brief Validation check for URLs. */ import('lib.pkp.classes.validation.ValidatorUri'); class ValidatorUrl extends ValidatorUri { /** * Constructor. */ function ValidatorUrl() { parent::ValidatorUri(ValidatorUrl::_getAllowedSchemes()); } // // Public static methods // /** * @see ValidatorUri::getRegexp() * @return string */ function getRegexp() { return parent::getRegexp(ValidatorUrl::_getAllowedSchemes()); } // // Private static methods // /** * Return allowed schemes (PHP4 workaround for * a private static field). * @return array */ function _getAllowedSchemes() { return array('http', 'https', 'ftp'); } } ?>