url.lib.php File Reference

handles url with different modes More...


Functions

 createWebAppPath ($path=wc_path)
 create path to web application
 decodeArguments ($urlArg)
 urlArg a list of argument separated by '/'
 decodePathInfoUrl ()
 try to decode url as a pathinfo url
 decodeQueryStringUrl ()
 try to decode url as a querystring url
 decodeUrl ()
 decode url depending on global configuration
 createURLRaw ($title, &$options, $amp)
 creates a "raw" url
 createURL ($title, $options=array())
 creates an url suitable for an html link
 createHeaderURL ($title, $options=array())
 creates an url suitable for header()
 createIconURL ($icon, $width=-1, $height=-1)
 creates an url to an icon depending of global configuration
 createIconPath ($icon)
 creates a path to an icon depending of global configuration
 createImageURL ($image, $width=-1, $height=-1)
 creates an url to an image depending of global configuration
 createImagePath ($image)
 creates a path to an image depending of global configuration


Detailed Description

handles url with different modes

mode is defined in wiki global configuration. It can be get, query_string or path_info urls get decoded so that the _GET global array is populated just as only 'get' url were used. This way all remaining code don't see urls.


Function Documentation

createHeaderURL ( title,
options = array() 
)

creates an url suitable for header()

Parameters:
title title of node
options map<key, value> options to encode in url depending on format
Returns:
header url

createIconPath ( icon  ) 

creates a path to an icon depending of global configuration

Parameters:
icon filename of icon
Returns:
full path to icon

createIconURL ( icon,
width = -1,
height = -1 
)

creates an url to an icon depending of global configuration

Parameters:
icon filename of icon
width optional desired width of icon
height optional desired height of icon
Returns:
full path to icon

createImagePath ( image  ) 

creates a path to an image depending of global configuration

Parameters:
image filename of image
Returns:
full path to image

createImageURL ( image,
width = -1,
height = -1 
)

creates an url to an image depending of global configuration

Parameters:
image filename of image
width optional desired width of image
height optional desired height of image
Returns:
full path to image

createURL ( title,
options = array() 
)

creates an url suitable for an html link

Parameters:
title title of node
options map<key, value> options to encode in url depending on format
Returns:
html url

createURLRaw ( title,
&$  options,
amp 
)

creates a "raw" url

depending if the url will be used in a header() or in a html link the amp separator will be called with '&' or just '&'

Parameters:
title title of node
options map<key, value> options to encode in url depending on format
amp the separator to use
Returns:
url

createWebAppPath ( path = wc_path  ) 

create path to web application

Parameters:
path path to application from web's root
Returns:
web url to application

decodeArguments ( urlArg  ) 

urlArg a list of argument separated by '/'

all arguments will be stored in global array _GET

decodePathInfoUrl (  ) 

try to decode url as a pathinfo url

decodeQueryStringUrl (  ) 

try to decode url as a querystring url

decodeUrl (  ) 

decode url depending on global configuration


Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7