.

NumletterParameterizedRouteHandler Class Reference

Handle a single lowercase letter or 0-9 as numeric type. More...

Inheritance diagram for NumletterParameterizedRouteHandler:
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 or 0-9 as numeric type.

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

Author:
Gerd Riesselmann

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


Member Function Documentation

NumletterParameterizedRouteHandler::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 numletter.handler.php.

00016                                        {
00017                 return "nl";
00018         }
NumletterParameterizedRouteHandler::get_validate_regex ( params  ) 

Return regex to validate path.

Implements IParameterizedRouteHandler.

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

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

Preprocess a value before URL is build.

Implements IParameterizedRouteHandler.

Definition at line 30 of file numletter.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/numletter.handler.php