.

LetterParameterizedRouteHandler Class Reference

Handle a single, lowercase letter (sl-type). More...

Inheritance diagram for LetterParameterizedRouteHandler:
IParameterizedRouteHandler

List of all members.

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 a single, lowercase letter (sl-type).

Use like this: /route/{letter:sl}

Author:
Gerd Riesselmann

Definition at line 10 of file letter.handler.php.


Member Function Documentation

LetterParameterizedRouteHandler::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 letter.handler.php.

00016                                        {
00017                 return "sl";
00018         }
LetterParameterizedRouteHandler::get_validate_regex ( params  ) 

Return regex to validate path.

Implements IParameterizedRouteHandler.

Definition at line 23 of file letter.handler.php.

00023                                                     {
00024                 return '[a-z]';
00025         }
LetterParameterizedRouteHandler::preprocess_build_url ( value  ) 

Preprocess a value before URL is build.

Implements IParameterizedRouteHandler.

Definition at line 30 of file letter.handler.php.

00030                                                      {
00031                 return String::to_lower($value);
00032         }

The documentation for this class was generated from the following file:
  • contributions/widgets.alphalist/controller/base/routes/parameterizedroutehandlers/letter.handler.php