Maslosoft Mangan API
Class UniqueValidator
UniqueValidator validates that the attribute value is unique in the corresponding database table.
- Maslosoft\Mangan\Validators\BuiltIn\UniqueValidator implements Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface uses Maslosoft\Mangan\Validators\Traits\AllowEmpty, Maslosoft\Mangan\Validators\Traits\SkipOnError, Maslosoft\Mangan\Validators\Traits\Messages, Maslosoft\Mangan\Validators\Traits\OnScenario, Maslosoft\Mangan\Validators\Traits\Safe
 
Package: system\validators
Author: Florian Fackler florian.fackler@mintao.com
Version: $Id$
Since: 1.0
Located at Validators/BuiltIn/UniqueValidator.php
Methods summary
				 public 
				
				
				
			 | 
			
Methods inherited from Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface
Methods used from Maslosoft\Mangan\Validators\Traits\Messages
Constants summary
Constants inherited from Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface
Properties summary
				public  
				string
			 | 
			
					$className
				 the document class name that should be used to look for the attribute value being validated. Defaults to null, meaning using the class of the object currently being validated.  | 
			|
				public  
				string
			 | 
			
					$attributeName
				 the ActiveRecord class attribute name that should be used to look for the attribute value being validated. Defaults to null, meaning using the name of the attribute being validated.  | 
			|
				public  
				array
			 | 
			
					$criteria
				 additional query criteria. This will be combined with the condition
that checks if the attribute value exists in the corresponding table column.
This array will be used to instantiate a   | 
			
				 
					#
					 
			[]
				 | 
		
				public  
				string
			 | 
			
					$msgTaken
				 | 
			
				 
					#
					 
			''
				 |