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

Class: WebController

Source Location: /controller/WebController.class.php

Class Overview

MojaviObject
   |
   --Controller
      |
      --WebController

WebController provides web specific methods to Controller such as, url redirection.


Author(s):

  • Sean Kerr (skerr@mojavi.org)

Version:

  • $Id: WebController.class.php 765 2005-02-01 02:10:41Z seank $

Copyright:

Methods


Child classes:

FrontWebController
FrontWebController allows you to centralize your entry point in your web application, but at the same time allow for any module and action combination to be requested.
PageWebController
PageWebController allows you to dispatch a request by specifying a module and action name in the dispatch() method.

Inherited Variables

Inherited Methods

Class: Controller

Controller::actionExists()
Indicates whether or not a module has a specific action.
Controller::forward()
Forward the request to another action.
Controller::getAction()
Retrieve an Action implementation instance.
Controller::getActionStack()
Retrieve the action stack.
Controller::getContext()
Retrieve the current application context.
Controller::getGlobalModel()
Retrieve a global Model implementation instance.
Controller::getInstance()
Retrieve the singleton instance of this class.
Controller::getModel()
Retrieve a Model implementation instance.
Controller::getRenderMode()
Retrieve the presentation rendering mode.
Controller::getView()
Retrieve a View implementation instance.
Controller::initialize()
Initialize this controller.
Controller::modelExists()
Indicates whether or not a module has a specific model.
Controller::moduleExists()
Indicates whether or not a module exists.
Controller::newInstance()
Retrieve a new Controller implementation instance.
Controller::setRenderMode()
Set the presentation rendering mode.
Controller::shutdown()
Execute the shutdown procedure.
Controller::viewExists()
Indicates whether or not a module has a specific view.

Class: MojaviObject

MojaviObject::toString()
Retrieve a string representation of this object.

Class Details

[line 24]
WebController provides web specific methods to Controller such as, url redirection.



Tags:

abstract:  
version:  $Id: WebController.class.php 765 2005-02-01 02:10:41Z seank $
since:  3.0.0
copyright:  (c) Sean Kerr, http://www.mojavi.org
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]


Class Methods


method genURL [line 49]

string genURL( [string $url = null], [array $parameters = array()])

Generate a formatted Mojavi URL.



Tags:

return:  A URL to a Mojavi resource.
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $url   An existing URL for basing the parameters.
array   $parameters   An associative array of URL parameters.

[ Top ]

method getContentType [line 105]

string getContentType( )

Retrieve the requested content type.



Tags:

return:  A content type.
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]

method initialize [line 122]

void initialize( )

Initialize this controller.



Tags:

access:  protected
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Overrides Controller::initialize() (Initialize this controller.)

[ Top ]

method redirect [line 149]

void redirect( string $url, [int $delay = 0])

Redirect the request to another URL.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $url   An existing URL.
int   $delay   A delay in seconds before redirecting. This only works on browsers that do not support the PHP header.

[ Top ]

method setContentType [line 184]

void setContentType( string $type)

Set the content type for this request.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $type   A content type.

[ Top ]


Documentation generated on Tue, 21 Feb 2006 01:45:32 +0900 by phpDocumentor 1.3.0RC5