[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/ -> url.php (summary)

Functions, which deal with URLs: manipulation, generation

File Size: 117 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 14 functions

  gp_url_path()
  gp_url_join()
  gp_url()
  gp_url_base()
  gp_url_add_path_and_query()
  gp_url_ssl()
  gp_url_base_root()
  gp_url_public_root()
  gp_url_project_locale()
  gp_url_img()
  gp_url_current()
  gp_url_project()
  gp_url_login()
  gp_url_logout()

Functions
Functions that are not part of a class:

gp_url_path( $url = null )   X-Ref
Gives the path of an URL

param: string $url Optional. The default is the GlotPress URL

gp_url_join()   X-Ref
Joins paths, and takes care of slashes between them

Example: gp_url_join( '/project', array( 'wp', 'dev) ) -> '/project/wp/dev'

The function will keep leading and trailing slashes of the whole URL, but won't
allow more than consecutive slash inside.

param: mixed components... arbitrary number of string or path components
return: string URL, built of all the components, separated with /

gp_url( $path = '/', $query = null )   X-Ref
Builds a URL relative to the GlotPress' domain root

param: mixed $path string path or array of path components
param: array $query associative array of query arguments (optional)

gp_url_base( $path = '/', $query = null )   X-Ref
No description

gp_url_add_path_and_query( $base, $path, $query )   X-Ref
No description

gp_url_ssl( $url )   X-Ref
Converts an absolute URL to the corresponding SSL URL if the GlotPress
settings allow SSL


gp_url_base_root()   X-Ref
No description

gp_url_public_root()   X-Ref
No description

gp_url_project_locale( $project_or_path, $locale, $path = '', $query = null )   X-Ref
Constructs URL for a project and locale.
/<project-path>/<locale>/<path>/<page>


gp_url_img( $file )   X-Ref
No description

gp_url_current()   X-Ref
The URL of the current page


gp_url_project( $project_or_path = '', $path = '', $query = null )   X-Ref
No description

gp_url_login( $redirect_to = null )   X-Ref
No description

gp_url_logout()   X-Ref
No description



Generated: Thu May 24 03:59:35 2012 Hosted by follow the white rabbit.