lucee.Componentcontentbox.models.validators.UniqueSiteFieldValidator
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- Validates if the field has a unique value by site in the database, this only applies to ORM objects
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
name
|
true
|
false
|
|
any
|
ormService
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
string
|
getName()
Get the name of the validator. |
string
|
getOrmService()
|
any
|
setName(any name)
|
any
|
setOrmService(any ormService)
|
boolean
|
validate(any validationResult, any target, string field, [any targetValue], [any validationData])
Will check if an incoming value validates. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Get the name of the validator
name
ormService
Will check if an incoming value validates
validationResult
- The result object of the validationtarget
- The target object to validate onfield
- The field on the target object to validate ontargetValue
- The target value to validatevalidationData
- The validation data the validator was created with