Package DE_EPAGES::Object::API::Domain
Implements concatenation of urls
Functions
- GetUrlInfo
- PoolDBEntries
- ProtocolAndServer
- ProtocolAndServerSSL
- Server
- ServerSSL
- TestWebServerScriptNamePart
- Urls
- WebServerScriptNameAdmin
- WebServerScriptNameAdminSSL
- WebServerScriptNamePreview
- WebServerScriptNameStorefront
- WebServerScriptNameStorefrontSSL
- WebServerScriptNameWithOutExtension
- WebServerScriptNameWithOutExtensionSSL
GetUrlInfo
return all informations to build urls of this site. See Urls and PoolDBEntries
Syntax |
($hSite, $hSystem) = GetUrlInfo($Site); |
Input |
|
Return |
|
PoolDBEntries
collects pooldb entries for given site.
Syntax |
$aEntries = PoolDBEntries($hSite, $hSystem); |
Example |
$aEntries = PoolDBEntries(GetUrlInfo($Site)); |
Input |
|
Return |
|
Hook |
|
ProtocolAndServer
build protocol, http server and port
Syntax |
$Server = ProtocolAndServer(($hSite, $hSystem)); |
Example |
$Server = ProtocolAndServer(GetUrlInfo($Site)); # http://www.epages.de:8080 |
Input |
|
Return |
|
ProtocolAndServerSSL
build protocol, https server and port
Syntax |
$ProtocolAndServerSSL = ProtocolAndServerSSL($hSite, $hSystem); |
Example |
$Server = ProtocolAndServerSSL(GetUrlInfo($Site)); # https://www.epages.de |
Input |
|
Server
build http server and port
Syntax |
$Server = Server($hSite, $hSystem, $AddPort); |
Example |
$Server = Server(GetUrlInfo($Site), 1); # www.epages.de:80 or www.epages.de:8080 $Server = Server(GetUrlInfo($Site), 0); # www.epages.de or www.epages.de:8080 |
Input |
|
ServerSSL
build https server and port
Syntax |
$Server = ServerSSL($hSite, $hSystem, $AddPort); |
Example |
$Server = ServerSSL(GetUrlInfo($Site), 1); # www.epages.de:443 or www.epages.de:4444 $Server = ServerSSL(GetUrlInfo($Site), 0); # www.epages.de or www.epages.de:4444 |
Input |
|
TestWebServerScriptNamePart
returns true if web server script name part does not contain illegal characters
Syntax |
if ( TestWebServerScriptNamePart($part) ) { ... } |
Input |
|
Return |
|
Urls
return the effective URLs of this site by merging system and site settings.
Syntax |
$hUrls = Urls($hSite, $hSystem); |
Example |
$hUrls = Urls(GetUrlInfo($Site)); |
Input |
|
Return |
|
WebServerScriptNameAdmin
build url without hostname
Syntax |
$ScriptNamePart = WebServerScriptNameAdmin($hSite, $hSystem); |
Example |
$Server = WebServerScriptNameAdmin(GetUrlInfo($Site)); # /epages/Store.admin |
Input |
|
WebServerScriptNameAdminSSL
build url without hostname, ssl connection preferred.
Syntax |
$ScriptNamePart = WebServerScriptNameAdminSSL($hSite, $hSystem); |
Example |
$Server = WebServerScriptNameAdminSSL(GetUrlInfo($Site)); # /epages/Store.admin |
Input |
|
WebServerScriptNamePreview
build url without hostname.
Syntax |
$ScriptNamePart = WebServerScriptNamePreview($hSite, $hSystem); |
Example |
$Server = WebServerScriptNamePreview(GetUrlInfo($Site)); # /epages/Store.preview |
Input |
|
WebServerScriptNameStorefront
build url without hostname.
Syntax |
$ScriptNamePart = WebServerScriptNameStorefront($hSite, $hSystem); |
Example |
$Server = WebServerScriptNameStorefront(GetUrlInfo($Site)); # /epages/Store.sf |
Input |
|
WebServerScriptNameStorefrontSSL
build url without hostname, ssl connection preferred.
Syntax |
$ScriptNamePart = WebServerScriptNameStorefrontSSL($hSite, $hSystem); |
Example |
$Server = WebServerScriptNameStorefrontSSL(GetUrlInfo($Site)); # /epages/Store.sf |
Input |
|
WebServerScriptNameWithOutExtension
build url without hostname and extension
Syntax |
$ScriptName = WebServerScriptNameWithOutExtension($hSite, $hSystem); |
Example |
$ScriptName = WebServerScriptNameWithOutExtension(GetUrlInfo($Site)); # /epages/Store. |
Input |
|
WebServerScriptNameWithOutExtensionSSL
build url without hostname and extension, for ssl connection
Syntax |
$ScriptNamePart = WebServerScriptNameWithOutExtensionSSL($hSite, $hSystem); |
Example |
$Server = WebServerScriptNameWithOutExtension(GetUrlInfo($Site)); # /epages/Store. |
Input |
|