RouteTypes
Default types for router - integer, string, command, list if ids
Tags
Table of Contents
- $types : array<string, string>
- Supported types of URL parameters
- addType() : void
- Method adds custom type
- initDefaultTypes() : void
- Init types
Properties
$types
Supported types of URL parameters
protected
array<string, string>
$types
= []
Methods
addType()
Method adds custom type
public
addType(string $typeName, string $className) : void
Parameters
- $typeName : string
-
type name
- $className : string
-
name of the class wich represents custom type
Return values
void —initDefaultTypes()
Init types
private
initDefaultTypes() : void