.

IntParameterizedRouteHandler Class Reference
[Controller]

Handle int (the "i" type). More...

Inheritance diagram for IntParameterizedRouteHandler:
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 int (the "i" type).

Author:
Gerd Riesselmann

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


Member Function Documentation

IntParameterizedRouteHandler::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 int.handler.php.

00014                                        {
00015                 return "i";
00016         }
IntParameterizedRouteHandler::get_validate_regex ( params  ) 

Return regex to validate path.

Implements IParameterizedRouteHandler.

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

00021                                                     {
00022                 return '[+-]?[0-9][0-9]*';
00023         }
IntParameterizedRouteHandler::preprocess_build_url ( value  ) 

Preprocess a value before URL is build.

Implements IParameterizedRouteHandler.

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

00028                                                      {
00029                 return $value;
00030         }

The documentation for this class was generated from the following file:
  • gyro/core/controller/base/routes/parameterizedroutehandlers/int.handler.php