User management for the world wide web

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

GenieGate_View_Location Class Reference

A "view" based on location. More...

Inheritance diagram for GenieGate_View_Location:

Inheritance graph
[legend]
Collaboration diagram for GenieGate_View_Location:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GenieGate_View_Location ($url)
 Constructor.

 display ()
 Display the view.

 param ($param=FALSE, $value=FALSE)
 Get/Set a named parameter.

 getLink ($qry=array())
 Returns a link to this page.


Detailed Description

A "view" based on location.

This takes a URL in the constructor. It sets a Location header via the header() function. The param() method tacks form variables on to the URL.

Note:
The param() method only works for scalar variables.

It is important that no output is sent prior to using this view.

Definition at line 15 of file Location.php.


Constructor & Destructor Documentation

GenieGate_View_Location url  ) 
 

Constructor.

Parameters:
$url - the URL to "display".

Definition at line 22 of file Location.php.


Member Function Documentation

display  ) 
 

Display the view.

In this case, does nothing. (a "blank" view for Controller methods that "cheat" by sending output themselves.)

Reimplemented from GenieGate_View.

Definition at line 26 of file Location.php.

getLink qry = array()  )  [inherited]
 

Returns a link to this page.

Parameters:
$qry - An array of Key => Value pairs to be urlencoded.
Returns:
a string with a link to this page.

Definition at line 66 of file View.php.

param param = FALSE,
value = FALSE
[inherited]
 

Get/Set a named parameter.

With no parameters, returns an associative array of all the available parameters. (Same as $view->PARAM, but encapsulated)

With 1 parameter, ($param) just returns the value of the named parameter.

With 2 parameters, assigns $param a new value (returns old value).

Parameters:
$param - The parameter name.
$value - The value to assign it to.

Definition at line 36 of file View.php.

Referenced by GenieGate_View_XMLExport::display().


The documentation for this class was generated from the following file:
DoxyGen Documentation generated by DoxyGen