Url Class Reference
[Internet standarts implementations]

URL is either absolute URI with authority part or relative one without authority part. More...

Inheritance diagram for Url:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 getKnownSubSchemes ()
 isValid ()
 fixAuthorityFromPath ()
 If scheme is present but authority is empty, authority part is taken from fisrt non-empty segment, i.e: http:////anything/.
 fixMistakenPath ()
 see: rfc3986, sec.
 toSmallString ()
 normalize ()
 
See also:
http://tools.ietf.org/html/rfc3986#section-6


Static Public Member Functions

static create ()
 
Returns:
Url


Protected Attributes

 $knownSubSchemes


Detailed Description

URL is either absolute URI with authority part or relative one without authority part.

Definition at line 19 of file Url.class.php.


Member Function Documentation

static Url::create (  )  [static]

Returns:
Url

Reimplemented from GenericUri.

Reimplemented in HttpUrl.

Definition at line 36 of file Url.class.php.

Referenced by fixMistakenPath(), and GenericUri::getKnownSubSchemes().

Url::getKnownSubSchemes (  ) 

Reimplemented from GenericUri.

Definition at line 41 of file Url.class.php.

Url::isValid (  ) 

Reimplemented from GenericUri.

Definition at line 46 of file Url.class.php.

References GenericUri::getAuthority(), GenericUri::isAbsolute(), and GenericUri::isRelative().

Here is the call graph for this function:

Url::fixAuthorityFromPath (  ) 

If scheme is present but authority is empty, authority part is taken from fisrt non-empty segment, i.e: http:////anything/.

.. becomes http://anything/...

Definition at line 61 of file Url.class.php.

References GenericUri::getAuthority(), GenericUri::setAuthority(), and GenericUri::setPath().

Referenced by HttpUrl::ensureAbsolute(), and fixMistakenPath().

Here is the call graph for this function:

Url::fixMistakenPath (  ) 

see: rfc3986, sec.

4.2, paragraph 4; rfc 2396, sec 3.1

Definition at line 81 of file Url.class.php.

References create(), fixAuthorityFromPath(), GenericUri::getAuthority(), GenericUri::setPath(), and GenericUri::setScheme().

Referenced by HttpUrl::ensureAbsolute().

Here is the call graph for this function:

Url::toSmallString (  ) 

Definition at line 109 of file Url.class.php.

References GenericUri::getAuthority().

Here is the call graph for this function:

Url::normalize (  ) 

See also:
http://tools.ietf.org/html/rfc3986#section-6

Reimplemented from GenericUri.

Reimplemented in HttpUrl.

Definition at line 129 of file Url.class.php.

References GenericUri::getPort(), and GenericUri::setPort().

Here is the call graph for this function:


Member Data Documentation

Url::$knownSubSchemes [protected]

Initial value:

 array(
            'http'      => 'HttpUrl',
            'https'     => 'HttpUrl',
            'ftp'       => 'Url',
            'nntp'      => 'Url',
            'telnet'    => 'Url',
            'gopher'    => 'Url',
            'wais'      => 'Url',
            'file'      => 'Url',
            'prospero'  => 'Url'
        )

Reimplemented in HttpUrl.

Definition at line 21 of file Url.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:42 2007 for onPHP by  doxygen 1.5.4