Class CUrlValidator
CUrlValidator validates that the attribute value is a valid http or https URL.
- CComponent
 - 
			
			CValidator
			
			
			
		 - 
			
CUrlValidator			
			
			
		 
Direct known subclasses
X2UrlValidatorCopyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/validators/CUrlValidator.php
			 protected 
			
			
			
		 | 
		
		#
		 validateAttribute( 
		Validates the attribute of the object. If there is any error, the error message is added to the object.  | 
	
			 public 
			mixed
			
			
		 | 
		
		#
		 validateValue( string $value )
		Validates a static value to see if it is a valid URL. Note that this method
does not respect   | 
	
			 public 
			string
			
			
		 | 
		
		#
		 clientValidateAttribute( 
		Returns the JavaScript needed for performing client-side validation.  | 
	
			addError(), 
			applyTo(), 
			createValidator(), 
			isEmpty(), 
			validate()
		 | 
	
			public  
			string
		 | 
		$pattern | '/^{schemes}:\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)/i' | 
		
			#
			 the regular expression used to validate the attribute value. Since version
1.1.7 the pattern may contain a {schemes} token that will be replaced by a
regular expression which represents the   | 
	
			public  
			array
		 | 
		$validSchemes | array('http','https') | 
		
			#
			 list of URI schemes which should be considered valid. By default, http and https are considered to be valid schemes.  | 
	
			public  
			string
		 | 
		$defaultScheme |  | 
		
			#
			 the default URI scheme. If the input doesn't contain the scheme part, the default scheme will be prepended to it (thus changing the input). Defaults to null, meaning a URL must contain the scheme part.  | 
	
			public  
			boolean
		 | 
		$allowEmpty | true | 
		
			#
			 whether the attribute value can be null or empty. Defaults to true, meaning that if the attribute is empty, it is considered valid.  | 
	
			public  
			boolean
		 | 
		$validateIDN | false | 
		
			#
			 whether validation process should care about IDN (internationalized domain names). Default value is false which means that validation of URLs containing IDN will always fail.  | 
	
			$attributes, 
			$builtInValidators, 
			$enableClientValidation, 
			$except, 
			$message, 
			$on, 
			$safe, 
			$skipOnError
		 |