.

AnsistringParameterizedRouteHandler Class Reference
[Controller]

Handle ansi string (the "sp" type). More...

Inheritance diagram for AnsistringParameterizedRouteHandler:
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 ansi string (the "sp" type).

Since:
0.5.1
Author:
Gerd Riesselmann

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


Member Function Documentation

AnsistringParameterizedRouteHandler::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 ansistring.handler.php.

00016                                        {
00017                 return "sp";
00018         }
AnsistringParameterizedRouteHandler::get_validate_regex ( params  ) 

Return regex to validate path.

Implements IParameterizedRouteHandler.

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

00023                                                     {
00024                 if ($params === false) {
00025                         return '[a-zA-Z0-9_-]*?';
00026                 }
00027                 else {
00028                         return '[a-zA-Z0-9_-]{' . preg_quote($params) . '}';
00029                 }
00030         }
AnsistringParameterizedRouteHandler::preprocess_build_url ( value  ) 

Preprocess a value before URL is build.

Implements IParameterizedRouteHandler.

Definition at line 35 of file ansistring.handler.php.

00035                                                      {
00036                 return String::plain_ascii($value, '-', true);
00037         }

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