TaniPHP
[ class tree: TaniPHP ] [ index: TaniPHP ] [ all elements ]

Class: Dispatcher

Source Location: /dispatcher.php

Class Overview


Dispatcher class that handles requests


Author(s):

  • Dumitru Postoronca

Variables

Methods



Class Details

[line 25]
Dispatcher class that handles requests

Dispatcher class that handles requests




Tags:

author:  Dumitru Postoronca


[ Top ]


Class Variables

$defaultAction =

[line 40]

Default Action to use when none is specified in the URL

Default Action to use when none is specified in the URL



Type:   string


[ Top ]

$defaultController =

[line 33]

Default Controller to use when none is specified in the URL

Default Controller to use when none is specified in the URL



Type:   string


[ Top ]



Class Methods


constructor Dispatcher [line 47]

Dispatcher Dispatcher( )

Constructor class

Constructor class Loads the configuration data




[ Top ]

method dispatch [line 81]

void dispatch( [mixed $controller = ""], [mixed $action = ""])

Dispatches a request

Dispatches a request




[ Top ]

method forward [line 103]

void forward( mixed $controller, mixed $action)

Forwards the request to another controller/action

Forwards the request to another controller/action




[ Top ]

method getInstance [line 65]

object The getInstance( )

(Singleton) Returns the Dispatcher instance

(Singleton) Returns the Dispatcher instance




Tags:

return:  dispatcher instance
staticvar:  $dispatcher $dispatcher: Holds the dispatcher object
static:  


[ Top ]


Documentation generated on Fri, 16 Dec 2005 13:16:35 +0200 by phpDocumentor 1.3.0RC4