Class Controller

Description

Implements interfaces:

Controller handles HTTP requests, selects and executes appropriate resource. Afterwards sends out output generated by the View to the browser, and the execution halts: application waits for another request.

Implemented as a frontal controller: it is the only point of entry to the application. It is an abstract class for sub-classing. An application Controller should extend the framework Controller and call the parent::process() to handle requests.

Located in /diy-framework/controller/Controller.class.php (line 13)


	
			
Variable Summary
mixed $resource
mixed $view
Method Summary
static void output (Response $response)
void process (Request $request, Response $response, ResourceMapping $mapping)
Variables
mixed $resource = null (line 15)
  • access: protected
mixed $view = null (line 16)
  • access: protected
Methods
static method output (line 60)

Sets HTTP response headers and writes out the buffer.

  • access: protected
static void output (Response $response)
  • Response $response: Response to write out and to send to the client
process (line 75)

Processes the HTTP Request. Finds an appropriate Resource, passes the control to it, and displays the resulting View.

  • access: protected
void process (Request $request, Response $response, ResourceMapping $mapping)

Documentation generated on Tue, 25 Sep 2007 11:17:19 +0200 by phpDocumentor 1.3.2