LSYii_ShortUrlValidator

Extends\CValidator

Validator class for Short URLs (Survey Aliases).

Compares the alias against basic route rules and existing controllers, trying to avoid collisions.

package

Default

Methods

__construct

__construct( $urlManager = null)

Arguments

$urlManager

Checks whether a specified route matches a controller

matchesExistingController(string $route,\CModule|null $owner = null): boolean

Arguments

$route

string

$owner

\CModule|null

Response

boolean

Checks whether a specified alias matches any of the configured routes.

matchesExistingRoute(string $alias): boolean

Arguments

$alias

string

Response

boolean

Checks whether a specified alias matches any of the reserved words/paths.

matchesReservedPath(string $alias): boolean

Arguments

$alias

string

Response

boolean

validateAttribute

validateAttribute( $object, $attribute)

Arguments

$object

$attribute

Properties

urlManager

urlManager :

Type(s)