.

StringParameterizedRouteHandler Class Reference
[Controller]

Handle string (the "s" type). More...

Inheritance diagram for StringParameterizedRouteHandler:
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 string (the "s" type).

Author:
Gerd Riesselmann

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


Member Function Documentation

StringParameterizedRouteHandler::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 string.handler.php.

00014                                        {
00015                 return "s";
00016         }
StringParameterizedRouteHandler::get_validate_regex ( params  ) 

Return regex to validate path.

Implements IParameterizedRouteHandler.

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

00021                                                     {
00022                 if ($params === false) {
00023                         return '.*?';
00024                 }
00025                 else {
00026                         return '.{' . preg_quote($params) . '}';
00027                 }
00028         }
StringParameterizedRouteHandler::preprocess_build_url ( value  ) 

Preprocess a value before URL is build.

Implements IParameterizedRouteHandler.

Definition at line 33 of file string.handler.php.

00033                                                      {
00034                 return $value;
00035         }

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