SPath Class Reference

Builds all the URLs commonly needed by web apps. More...

Inheritance diagram for SPath:

Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static getFullPath ($type)
 Build a complete URL (includes protocol/host).
static getRelPath ($type)
 Build a relative URL (does not include protocol/host).


Detailed Description

Builds all the URLs commonly needed by web apps.

SPath generates a number of commonly used URLs, such as those to the server, project home, public and UI directories, etc.

Author:
Jonathan (jwsm@shodor.org)
Date:
Updated 11/21/08

Member Function Documentation

static SPath::getFullPath ( type  )  [static]

Build a complete URL (includes protocol/host).

Parameters:
$type [string]: The type of URL to construct (see documentation for getRelPath)
Returns:
[string]: The URL string
Calls getRelPath() to build the URL, then prepends the protocol and server name from SConfig.

static SPath::getRelPath ( type  )  [static]

Build a relative URL (does not include protocol/host).

Parameters:
$type [string]: The type of URL to construct (see list below)
Returns:
[string]: The URL string
Allowed URL types:
  • BaseURL - The base URL after which common and projects are added
  • Project - URL for the current site/web app
  • UI - URL for the UI directory
  • DefaultSkin - The URL (including UI) for the default skin
  • CustomSkin - The URL (including UI) for the custom skin
  • ProjectCSS - The CSS directory inside the project/public directory
  • ProjectJS - The JS directory inside the project/public directory
  • ProjectImage - The image directory inside the project
  • Common - The base URL for the common directory
  • Self - The URL for the currently running script
The values to construct these URLs come from SConfig


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:03:25 2010 for Common by  doxygen 1.5.6