Static Public Member Functions | |
| static | generate ($action, $params=array(), $encode=true) |
| static | getAction () |
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.
| static Pluf_HTTP_URL::generate | ( | $ | action, | |
| $ | params = array(), |
|||
| $ | encode = true | |||
| ) | [static] |
Generate the URL.
The & is encoded as & in the url.
| string | Action url | |
| array | Associative array of the parameters (array()) | |
| bool | Encode the & in the url (true) |
| static Pluf_HTTP_URL::getAction | ( | ) | [static] |
Get the action of the request.
We directly get the PATH_INFO variable or return '/'