pluf/src/Pluf/HTTP/URL.php File Reference


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())

Function Documentation

Pluf_HTTP_URL_buildReverseUrl ( url_regex,
params = array() 
)

Build the reverse URL without the path base.

Credits to Django, again...

Parameters:
string Regex for the URL.
array Parameters
Returns:
string URL filled with the parameters.

Pluf_HTTP_URL_find ( views,
vdef,
regbase 
)

Go in the list of views to find the matching one.

Parameters:
array Views
array View definition array(model, method, name)
array Regex of the view up to now and base
Returns:
mixed Regex of the view or false

Pluf_HTTP_URL_reverse ( view,
params = array() 
)

Reverse an URL.

Parameters:
string View in the form 'classmethod' or string of the name.
array Possible parameters for the view (array()).
Returns:
string URL.

Pluf_HTTP_URL_urlForView ( view,
params = array(),
get_params = array(),
encoded = true 
)

Provide the full URL (without domain) to a view.

Parameters:
string View.
array Parameters for the view (array()).
array Extra GET parameters for the view (array()).
bool Should the URL be encoded (true).
Returns:
string URL.


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