LimeSurvey API - Master branch

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

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
bool

matchesExistingRoute()

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

protected matchesExistingRoute(string $alias) : bool
Parameters
$alias : string
Return values
bool

matchesReservedPath()

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

protected matchesReservedPath(string $alias) : bool
Parameters
$alias : string
Return values
bool

validateAttribute()

protected validateAttribute(mixed $object, mixed $attribute) : mixed
Parameters
$object : mixed
$attribute : mixed

        
On this page

Search results