Class X2UrlValidator
CUrlValidator validates that the attribute value is a valid http or https URL.
- CComponent
- CValidator
- CUrlValidator
- X2UrlValidator
Package: system\validators
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/components/validators/X2UrlValidator.php
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/components/validators/X2UrlValidator.php
protected
|
#
validateAttribute( CModel $object, string $attribute )
Permits use of "localhost" if debug mode is on |
clientValidateAttribute(),
validateValue()
|
addError(),
applyTo(),
createValidator(),
isEmpty(),
validate()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
string
|
$debugPattern | '/^{schemes}:\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+|localhost)/i' |
$allowEmpty,
$defaultScheme,
$pattern,
$validSchemes,
$validateIDN
|
$attributes,
$builtInValidators,
$enableClientValidation,
$except,
$message,
$on,
$safe,
$skipOnError
|