Class Address
Object
|
--Address
Classes extended from Address:
Location: Program_Root/http/Address.php
Note: This is like the URL or URI class in Java
It will soon be replaced by a tighter port of the latter
Class address. This is an abstract data type for an internet address.
The format on the address can be any that is supported by the web: ex// ftp, http, https, etc.
- Package:
http
- Version:
$Revision: 0.1 $ $Date: 2003/03/26 $
- Since:
Japha 1.0
@
- Author:
Ryan Gantt
@
Class Variable Summary
Inherited Class Variable Summary
Method Summary
Inherited Method Summary
Inherited From Class Object
Variable Detail
Method Detail
- String buildAddress()
Usage: buildAddress ( )
Return a string representation of the current address
Parameters
Info
- Return:
current address
@
- Access:
public
- String getAddressType()
Usage: getAddressType ( )
Checks if we are in secure mode
Parameters
Info
- Return:
http or https
@
- Access:
public
- String getQueryString()
Usage: getQueryString ( )
Returns every part of the address after the initial ?
Parameters
Info
- Return:
string representation of the $_GET array
@
- Access:
public
- String getServerName()
Usage: getServerName ( )
Return the address uri of the current server
Parameters
Info
- Return:
the current server uri
@
- Access:
public
- int getServerPort()
Usage: getServerPort ( )
Return the port (unless 80 || 8080) of the current server
Parameters
Info
- Return:
port of the current server
@
- Access:
public
- void __construct()
Usage: __construct ( [$address = 'localhost'] )
Does nothing except set the given parameter to the current address
Parameters
- address $address - the hostname to connect through
@
Info