|
Previous Class |
Solar_Uri_Public |
Next Page |
Solar_Uri_Public
Manipulates generates public URI strings.
This class is functionally identical to Solar_Uri, except that it automatically adds a prefix to the "path" portion of all URIs. This makes it easy to work with URIs for public Solar resources.
Use the Solar_Uri_Public::$_config key for 'path' to specify the path prefix leading to the public resource directory, if any.
Catalog
This class is part of the Solar_Uri package.
Inheritance:
- Solar_Base
- Solar_Uri
- Solar_Uri_Public
- Solar_Uri
Constants
None.
Public Properties
These are all the public properties in the Solar_Uri_Public class.
You can also view the list of all public, protected, and private properties.
$format- The dot-format extension of the last path element (for example, the "rss" in "feed.rss").
$fragment- The fragment portion (for example, the "foo" in "#foo").
$host- The host specification (for example, 'example.com').
$pass- The password, if any.
$path- The path portion (for example, 'path/to/index.php').
$port- The port number (for example, '80').
$query- Query string elements split apart into an array.
$scheme- The scheme (for example 'http' or 'https').
$user- The username, if any.
Public Methods
These are all the public methods in the Solar_Uri_Public class.
You can also view the list of all public, protected, and private methods.
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
get()- Returns a URI based on the object properties.
locale()- Looks up class-specific locale strings based on a key.
quick()- Returns a URI based on the specified string.
set()- Sets properties from a specified URI.
setPath()- Sets the Solar_Uri::$path array from a string.
setQuery()- Sets the Solar_Uri::$query array from a string.