User management for the world wide web

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

GenieGate_View_Ganged Class Reference

Special purpose view. More...

Inheritance diagram for GenieGate_View_Ganged:

Inheritance graph
[legend]
Collaboration diagram for GenieGate_View_Ganged:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GenieGate_View_Ganged ($v=array())
 Generic constructor.

 addView ($view)
 Adds a view to the list of views to be displayed.

 getViews ()
 Fetch a list array of all the views.

 display ()
 Display all the views, one after the other.

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

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


Detailed Description

Special purpose view.

It gangs one or more views together and calls them all in the display() method.

The reason for this is in the fact that the headers are sent during the ob_ stuff in the mail view, which isn't a problem until you want to use the Location view to direct a user to an alternative location.

It also has usefulness if you wanted to delayed execution or something like that.

Definition at line 17 of file Ganged.php.


Constructor & Destructor Documentation

GenieGate_View_Ganged v = array()  ) 
 

Generic constructor.

Parameters:
$v - Array of views to start with.

Definition at line 25 of file Ganged.php.


Member Function Documentation

addView view  ) 
 

Adds a view to the list of views to be displayed.

Parameters:
$view - A GenieGate_View compatible object.

Definition at line 33 of file Ganged.php.

display  ) 
 

Display all the views, one after the other.

Reimplemented from GenieGate_View.

Definition at line 49 of file Ganged.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.

getViews  ) 
 

Fetch a list array of all the views.

Returns:
Array of views.

Definition at line 42 of file Ganged.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