.

EnumParameterizedRouteHandler Class Reference
[Controller]

Handle enum (the "e" type). More...

Inheritance diagram for EnumParameterizedRouteHandler:
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 enum (the "e" type).

Author:
Gerd Riesselmann

Definition at line 8 of file enum.handler.php.


Member Function Documentation

EnumParameterizedRouteHandler::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 14 of file enum.handler.php.

00014                                        {
00015                 return "e";
00016         }
EnumParameterizedRouteHandler::get_validate_regex ( params  ) 

Return regex to validate path.

Implements IParameterizedRouteHandler.

Definition at line 21 of file enum.handler.php.

00021                                                     {
00022                 return str_replace(',', '|', preg_quote($params));
00023         }
EnumParameterizedRouteHandler::preprocess_build_url ( value  ) 

Preprocess a value before URL is build.

Implements IParameterizedRouteHandler.

Definition at line 28 of file enum.handler.php.

00028                                                      {
00029                 return $value;
00030         }

The documentation for this class was generated from the following file: