\myMVC_HttpResponse

Manager for the responses (next page)

Summary

Methods
Properties
Constants
__construct()
setNextDefaultAction()
setNext()
getNextURL()
createURL()
setParameterForNextPage()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$nextClass
$nextIsDefault
$type
$arguments
N/A

Properties

$nextClass

$nextClass : 

Type

$nextIsDefault

$nextIsDefault : 

Type

$type

$type : 

Type

$arguments

$arguments : 

Type

Methods

__construct()

__construct() 

Constructor

setNextDefaultAction()

setNextDefaultAction() 

Set the next Action as the given default Action

setNext()

setNext(\Class  $class, boolean  $menu = false) 

Set next Action or View

Parameters

\Class $class

The class of the next action or view

boolean $menu

true if the action should be called as "menu". Only used if $class is an Action. Default: false

Throws

\myMVC_MVCException

On Problems

getNextURL()

getNextURL() : string

Create the URL for the next page, using the given class (Action or View) and the given parameters

Returns

string —

The next URL

createURL()

createURL(string  $type, string  $token, array  $args = NULL) : string

Create the URL for a given Action or View, using the given parameters

Parameters

string $type

Type of the next page (Action or View)

string $token

Token of the next page (for the actions returned from getActionToken, for the views, from getViewToken)

array $args

The optional arguments

Returns

string —

The next URL

setParameterForNextPage()

setParameterForNextPage(string  $key, string  $value) 

Save a variable to be passed as parameter for the next page (Action or View)

Parameters

string $key

The name of the parameter

string $value

The value