.

NotFoundRoute Class Reference
[Controller]

A route to handle the case of no dispatch token beeing found. More...

Inheritance diagram for NotFoundRoute:
RouteBase IRoute IDispatcher IUrlBuilder

List of all members.

Public Member Functions

  __construct ($path)
  Constructor.
  identify ()
  Return a string that identifies this Route - e.g for debug purposes.
  invoke ($page_data)
  Invokes assigned controller.

Detailed Description

A route to handle the case of no dispatch token beeing found.

Author:
Gerd Riesselmann

Definition at line 10 of file notfoundroute.cls.php.


Constructor & Destructor Documentation

NotFoundRoute::__construct ( path  ) 

Constructor.

Definition at line 14 of file notfoundroute.cls.php.

00014                                            {
00015                 parent::__construct(
00016                         $path, 
00017                         null, 
00018                         '', 
00019                         new NotFoundRenderDecorator()
00020                 );
00021         }

Member Function Documentation

NotFoundRoute::identify (  ) 

Return a string that identifies this Route - e.g for debug purposes.

Reimplemented from RouteBase.

Definition at line 26 of file notfoundroute.cls.php.

00026                                    {
00027                 return '404-Not-Found';         
00028         }
NotFoundRoute::invoke ( page_data  ) 

Invokes assigned controller.

Parameters:
object  Page data object
Returns:
mixed Either error code or nothing

Reimplemented from RouteBase.

Definition at line 37 of file notfoundroute.cls.php.

00037                                            {
00038                 $page_data->status_code = CONTROLLER_NOT_FOUND;
00039                 $page_data->head->title = tr('Page not found', 'core');         
00040         }

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