Classes | |
| class | Pluf_HTTP_URL |
Functions | |
| Pluf_HTTP_URL_urlForView ($view, $params=array(), $get_params=array(), $encoded=true) | |
| Pluf_HTTP_URL_reverse ($view, $params=array()) | |
| Pluf_HTTP_URL_find ($views, $vdef, $regbase) | |
| Pluf_HTTP_URL_buildReverseUrl ($url_regex, $params=array()) | |
| Pluf_HTTP_URL_buildReverseUrl | ( | $ | url_regex, | |
| $ | params = array() | |||
| ) |
Build the reverse URL without the path base.
Credits to Django, again...
| string | Regex for the URL. | |
| array | Parameters |
| Pluf_HTTP_URL_find | ( | $ | views, | |
| $ | vdef, | |||
| $ | regbase | |||
| ) |
Go in the list of views to find the matching one.
| array | Views | |
| array | View definition array(model, method, name) | |
| array | Regex of the view up to now and base |
| Pluf_HTTP_URL_reverse | ( | $ | view, | |
| $ | params = array() | |||
| ) |
Reverse an URL.
| string | View in the form 'classmethod' or string of the name. | |
| array | Possible parameters for the view (array()). |
| Pluf_HTTP_URL_urlForView | ( | $ | view, | |
| $ | params = array(), |
|||
| $ | get_params = array(), |
|||
| $ | encoded = true | |||
| ) |
Provide the full URL (without domain) to a view.
| string | View. | |
| array | Parameters for the view (array()). | |
| array | Extra GET parameters for the view (array()). | |
| bool | Should the URL be encoded (true). |