.

ConsoleRouter Class Reference
[Console]

Router for route invoked in Console. More...

Inheritance diagram for ConsoleRouter:
RouterBase IEventSink

List of all members.

Public Member Functions

  __construct ($path, $class_instantiater)

Protected Member Functions

  get_path ()
  Returns the current path, preprocessed.

Protected Attributes

  $path

Detailed Description

Router for route invoked in Console.

Author:
Gerd Riesselmann

Definition at line 8 of file consolerouter.cls.php.


Constructor & Destructor Documentation

ConsoleRouter::__construct ( path,
class_instantiater  
)

Definition at line 11 of file consolerouter.cls.php.

00011                                                                 {
00012                 $this->path = $path;
00013                 parent::__construct($class_instantiater);
00014         }

Member Function Documentation

ConsoleRouter::get_path (  )  [protected]

Returns the current path, preprocessed.

If index page is invoked, '.' is returned

Returns:
string The current path, e.g. path/to/page

Reimplemented from RouterBase.

Definition at line 24 of file consolerouter.cls.php.

00024                                       {
00025                 $path = $this->path; 
00026                 if (empty($path) || $path == '/') {
00027                         $path = '.';
00028                 }
00029                 return $path;           
00030         }

Member Data Documentation

ConsoleRouter::$path [protected]

Definition at line 9 of file consolerouter.cls.php.


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