LSYii_ShortUrlValidator
extends CValidator
in package
Validator class for Short URLs (Survey Aliases).
Compares the alias against basic route rules and existing controllers, trying to avoid collisions.
Table of Contents
Properties
- $urlManager : mixed
Methods
- __construct() : mixed
- matchesExistingController() : bool
- Checks whether a specified route matches a controller
- matchesExistingRoute() : bool
- Checks whether a specified alias matches any of the configured routes.
- matchesReservedPath() : bool
- Checks whether a specified alias matches any of the reserved words/paths.
- validateAttribute() : mixed
Properties
$urlManager
protected
mixed
$urlManager
= \null
Methods
__construct()
public
__construct([mixed $urlManager = null ]) : mixed
Parameters
- $urlManager : mixed = null
matchesExistingController()
Checks whether a specified route matches a controller
protected
matchesExistingController(string $route[, CModule|null $owner = null ]) : bool
Parameters
- $route : string
- $owner : CModule|null = null
Return values
boolmatchesExistingRoute()
Checks whether a specified alias matches any of the configured routes.
protected
matchesExistingRoute(string $alias) : bool
Parameters
- $alias : string
Return values
boolmatchesReservedPath()
Checks whether a specified alias matches any of the reserved words/paths.
protected
matchesReservedPath(string $alias) : bool
Parameters
- $alias : string
Return values
boolvalidateAttribute()
protected
validateAttribute(mixed $object, mixed $attribute) : mixed
Parameters
- $object : mixed
- $attribute : mixed