Class myMVC_HttpResponse

Description

Manager for the responses (next page)

Located in /myMVC/HttpResponse.php (line 26)


	
			
Method Summary
 static string createURL (string $type, string $token, [array $args = NULL])
 myMVC_HttpResponse __construct ()
 string getNextURL ()
 void setNext (Class $class, [boolean $menu = false])
 void setParameterForNextPage (string $key, string $value)
Methods
static createURL (line 127)

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

  • return: The next URL
  • access: public
string createURL (string $type, string $token, [array $args = NULL])
  • 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
Constructor __construct (line 36)

Constructor

  • access: public
myMVC_HttpResponse __construct ()
getNextURL (line 104)

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

  • return: The next URL
  • access: public
string getNextURL ()
setNext (line 64)

Set next Action or View

  • throws: myMVC_MVCException On Problems
  • access: public
void setNext (Class $class, [boolean $menu = false])
  • 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
setNextDefaultAction (line 48)

Set the next Action as the given

default Action

  • access: public
void setNextDefaultAction ()
setParameterForNextPage (line 150)

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

  • access: public
void setParameterForNextPage (string $key, string $value)
  • string $key: The name of the parameter
  • string $value: The value

Documentation generated on Sat, 20 Oct 2012 18:18:52 +0200 by phpDocumentor 1.4.4