UnidecodestringParameterizedRouteHandler Class Reference
[Unidecode]
Handle ansi unidecoded string (the "spu" type). More...
Inheritance diagram for
UnidecodestringParameterizedRouteHandler:
Public Member Functions |
|
get_type_key () | |
Returns the key that is used to identify
this handler in route declaration, e.g. |
|
get_validate_regex ($params) | |
Return regex to validate path. |
|
preprocess_build_url ($value) | |
Preprocess a value before URL is build.
|
Detailed Description
Handle ansi unidecoded string (the "spu" type).
- Since:
- 0.5.1
Definition at line 10 of file unidecodestring.handler.php.
Member Function Documentation
UnidecodestringParameterizedRouteHandler::get_type_key | ( | ) |
Returns the key that is used to identify this handler in route declaration, e.g.
"s" or "ui>"
- Returns:
- string
Implements IParameterizedRouteHandler.
Definition at line 16 of file unidecodestring.handler.php.
UnidecodestringParameterizedRouteHandler::get_validate_regex | ( | $ | params | ) |
Return regex to validate path.
Implements IParameterizedRouteHandler.
Definition at line 23 of file unidecodestring.handler.php.
UnidecodestringParameterizedRouteHandler::preprocess_build_url | ( | $ | value | ) |
Preprocess a value before URL is build.
Implements IParameterizedRouteHandler.
Definition at line 35 of file unidecodestring.handler.php.
00035 { 00036 return String::plain_ascii(ConverterFactory::encode($value, CONVERTER_UNIDECODE), '-', true); 00037 }
The documentation for this class was generated from the following file:
- contributions/text.unidecode/controller/base/routes/parameterizedroutehandlers/unidecodestring.handler.php