Class X2ModelUniqueIndexValidator
Miscellaneous additions to CValidator including option to have errors
reported in the form of exceptions. Certain bad inputs will not occur during
normal form submission and indicate either a programming error a malicious
request. In either of these cases it makes sense to throw an exception instead
of adding errors to the model.
-
CComponent
-
CValidator
-
X2Validator
-
X2ModelUniqueIndexValidator
Methods summary
protected
|
#
validateValue( CModel $object, mixed $value, mixed $attribute )
A nicer-to-use version of CValidator's validateAttribute ()
A nicer-to-use version of CValidator's validateAttribute ()
|
Methods inherited from CValidator
addError(),
applyTo(),
clientValidateAttribute(),
createValidator(),
isEmpty(),
validate()
|
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
Properties inherited from CValidator
$attributes,
$builtInValidators,
$enableClientValidation,
$except,
$message,
$on,
$safe,
$skipOnError
|