Pluf_HTTP_URL Class Reference

List of all members.

Static Public Member Functions

static generate ($action, $params=array(), $encode=true)
static getAction ()


Detailed Description

Generate a ready to use URL to be used in location/redirect or forms.

When redirecting a user, depending of the format of the url with mod_rewrite or not, the parameters must all go in the GET or everything but the action. This class provide a convinient way to generate those url and parse the results for the dispatcher.


Member Function Documentation

static Pluf_HTTP_URL::generate ( action,
params = array(),
encode = true 
) [static]

Generate the URL.

The & is encoded as & in the url.

Parameters:
string Action url
array Associative array of the parameters (array())
bool Encode the & in the url (true)
Returns:
string Ready to use URL.

static Pluf_HTTP_URL::getAction (  )  [static]

Get the action of the request.

We directly get the PATH_INFO variable or return '/'

Returns:
string Action


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

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen