Class IdentificationColumnValidator
IdentificationColumnValidator is automatically applied by FullModel to any column that 'identifies' the Model in a human-readable way. There are certain rules that need to be applied, since the column can appear in the URL. There should not be a / inside it and there should not be a . (dot) as last character.
Child classes must implement the IdentificationColumnValidator::validateAttribute()
method.
- CComponent
-
CValidator
-
IdentificationColumnValidator
Located at phundament/gii-template-collection/components/identificationColumnValidator.php
Methods summary
protected
|
#
validateAttribute( CModel $object, string $attribute )
Validates a single attribute. This method should be overridden by child classes. |
public
string
|
#
clientValidateAttribute( CModel $object, string $attribute )
Returns the JavaScript needed for performing client-side validation. Do not
override this method if the validator does not support client-side validation.
Two predefined JavaScript variables can be used:
|
Methods inherited from CValidator
addError()
,
applyTo()
,
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()
Magic methods summary
Properties summary
Properties inherited from CValidator
$attributes
,
$builtInValidators
,
$enableClientValidation
,
$except
,
$message
,
$on
,
$safe
,
$skipOnError