Class Controller

Description

class Controller

This class serves as a single entry point for handling all requests in the system. The front controller is responsible for delegating processes to various handlers while minimizing the coupling among these components by implementing flexible request handling mechanisms, and managing the choice of the next view to present to the end user.

Located in /controller.class.php (line 22)

Exception
   |
   --PException
      |
      --Controller
Direct descendents
Class Description
Client class Client
Variable Summary
mixed $Controller
Method Summary
void Dispatch (Request $Request, viewName $viewName)
void ProcessRequest (Request $Request)
Variables
mixed $Controller (line 24)
  • static:
  • access: private
Methods
Dispatch (line 79)

function Dispatch

This method is responsible for view management and navigation. The dispatcher provides a dynamic dispatching mechanism to manager the choice of the next view to present to the end user.

  • access: private
void Dispatch (Request $Request, viewName $viewName)
  • Request $Request: Request object
  • viewName $viewName: View name for the class-based view
GetInstance (line 35)

function GetInstance

This method instantiates a new object from this class; more specifically, it's a singleton instance.

  • return: object instance
  • static:
  • access: public
Controller GetInstance ()

Redefined in descendants as:
ProcessRequest (line 54)

function ProcessRequest

This method initiates a session to preserve specific information across subsequent requests; adds or strips slashes from the HTTP GET or HTTP POST information; executes customized operations; and transfers the modified Request object to the Dispatch method along with the name of the view to present to the end user.

  • access: protected
void ProcessRequest (Request $Request)

Inherited Methods

Inherited From PException

PException::Display()

Documentation generated on Thu, 9 Sep 2004 09:03:33 -0400 by phpDocumentor 1.3.0RC3