ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SimpleSAML\Utils\HttpAdapter Class Reference
+ Collaboration diagram for SimpleSAML\Utils\HttpAdapter:

Public Member Functions

 getServerHTTPS ()
 
 getServerPort ()
 
 addURLParameters ($url, $parameters)
 
 checkSessionCookie ($retryURL=null)
 
 checkURLAllowed ($url, array $trustedSites=null)
 
 fetch ($url, $context=array(), $getHeaders=false)
 
 getAcceptLanguage ()
 
 guessBasePath ()
 
 getBaseURL ()
 
 getFirstPathElement ($trailingslash=true)
 
 getPOSTRedirectURL ($destination, $data)
 
 getSelfHost ()
 
 getSelfHostWithNonStandardPort ()
 
 getSelfHostWithPath ()
 
 getSelfURL ()
 
 getSelfURLHost ()
 
 getSelfURLNoQuery ()
 
 isHTTPS ()
 
 normalizeURL ($url)
 
 parseQueryString ($query_string)
 
 redirectTrustedURL ($url, $parameters=array())
 
 redirectUntrustedURL ($url, $parameters=array())
 
 resolveURL ($url, $base=null)
 
 setCookie ($name, $value, $params=null, $throw=true)
 
 submitPOSTData ($destination, $data)
 

Detailed Description

Definition at line 10 of file HttpAdapter.php.

Member Function Documentation

◆ addURLParameters()

SimpleSAML\Utils\HttpAdapter::addURLParameters (   $url,
  $parameters 
)
See also
HTTP::addURLParameters()

Definition at line 31 of file HttpAdapter.php.

32 {
33 return HTTP::addURLParameters($url, $parameters);
34 }
$url

References $url.

◆ checkSessionCookie()

SimpleSAML\Utils\HttpAdapter::checkSessionCookie (   $retryURL = null)
See also
HTTP::checkSessionCookie()

Definition at line 39 of file HttpAdapter.php.

40 {
42 }
static checkSessionCookie($retryURL=null)
Check for session cookie, and show missing-cookie page if it is missing.
Definition: HTTP.php:286

References $retryURL, and SimpleSAML\Utils\HTTP\checkSessionCookie().

+ Here is the call graph for this function:

◆ checkURLAllowed()

SimpleSAML\Utils\HttpAdapter::checkURLAllowed (   $url,
array  $trustedSites = null 
)
See also
HTTP::checkURLAllowed()

Definition at line 47 of file HttpAdapter.php.

48 {
49 return HTTP::checkURLAllowed($url, $trustedSites);
50 }
static checkURLAllowed($url, array $trustedSites=null)
Check if a URL is valid and is in our list of allowed URLs.
Definition: HTTP.php:321

References $url, and SimpleSAML\Utils\HTTP\checkURLAllowed().

+ Here is the call graph for this function:

◆ fetch()

SimpleSAML\Utils\HttpAdapter::fetch (   $url,
  $context = array(),
  $getHeaders = false 
)
See also
HTTP::fetch()

Definition at line 55 of file HttpAdapter.php.

56 {
57 return HTTP::fetch($url, $context, $getHeaders);
58 }
static fetch($url, $context=array(), $getHeaders=false)
Helper function to retrieve a file or URL with proxy support, also supporting proxy basic authorizati...
Definition: HTTP.php:408
$context
Definition: webdav.php:25

References $context, $url, and SimpleSAML\Utils\HTTP\fetch().

+ Here is the call graph for this function:

◆ getAcceptLanguage()

SimpleSAML\Utils\HttpAdapter::getAcceptLanguage ( )
See also
HTTP::getAcceptLanguage()

Definition at line 63 of file HttpAdapter.php.

64 {
66 }
static getAcceptLanguage()
This function parses the Accept-Language HTTP header and returns an associative array with each langu...
Definition: HTTP.php:498

References SimpleSAML\Utils\HTTP\getAcceptLanguage().

+ Here is the call graph for this function:

◆ getBaseURL()

SimpleSAML\Utils\HttpAdapter::getBaseURL ( )
See also
HTTP::getBaseURL()

Definition at line 79 of file HttpAdapter.php.

80 {
81 return HTTP::getBaseURL();
82 }
static getBaseURL()
Retrieve the base URL of the SimpleSAMLphp installation.
Definition: HTTP.php:597

References SimpleSAML\Utils\HTTP\getBaseURL().

+ Here is the call graph for this function:

◆ getFirstPathElement()

SimpleSAML\Utils\HttpAdapter::getFirstPathElement (   $trailingslash = true)
See also
HTTP::getFirstPathElement()

Definition at line 87 of file HttpAdapter.php.

88 {
89 return HTTP::getFirstPathElement($trailingslash);
90 }
static getFirstPathElement($trailingslash=true)
Retrieve the first element of the URL path.
Definition: HTTP.php:645

References SimpleSAML\Utils\HTTP\getFirstPathElement().

+ Here is the call graph for this function:

◆ getPOSTRedirectURL()

SimpleSAML\Utils\HttpAdapter::getPOSTRedirectURL (   $destination,
  $data 
)
See also
HTTP::getPOSTRedirectURL()

Definition at line 95 of file HttpAdapter.php.

96 {
98 }
static getPOSTRedirectURL($destination, $data)
Create a link which will POST data.
Definition: HTTP.php:666
$destination
$data
Definition: bench.php:6

References $data, $destination, and SimpleSAML\Utils\HTTP\getPOSTRedirectURL().

+ Here is the call graph for this function:

◆ getSelfHost()

SimpleSAML\Utils\HttpAdapter::getSelfHost ( )
See also
HTTP::getSelfHost()

Definition at line 103 of file HttpAdapter.php.

104 {
105 return HTTP::getSelfHost();
106 }
static getSelfHost()
Retrieve our own host.
Definition: HTTP.php:697

References SimpleSAML\Utils\HTTP\getSelfHost().

+ Here is the call graph for this function:

◆ getSelfHostWithNonStandardPort()

SimpleSAML\Utils\HttpAdapter::getSelfHostWithNonStandardPort ( )
See also
HTTP::getSelfHostWithNonStandardPort()

Definition at line 111 of file HttpAdapter.php.

112 {
113 return HTTP::getSelfHostWithNonStandardPort();
114 }

◆ getSelfHostWithPath()

SimpleSAML\Utils\HttpAdapter::getSelfHostWithPath ( )
See also
HTTP::getSelfHostWithPath()

Definition at line 119 of file HttpAdapter.php.

120 {
122 }
static getSelfHostWithPath()
Retrieve our own host together with the URL path.
Definition: HTTP.php:736

References SimpleSAML\Utils\HTTP\getSelfHostWithPath().

+ Here is the call graph for this function:

◆ getSelfURL()

SimpleSAML\Utils\HttpAdapter::getSelfURL ( )
See also
HTTP::getSelfURL()

Definition at line 127 of file HttpAdapter.php.

128 {
129 return HTTP::getSelfURL();
130 }

◆ getSelfURLHost()

SimpleSAML\Utils\HttpAdapter::getSelfURLHost ( )
See also
HTTP::getSelfURLHost()

Definition at line 135 of file HttpAdapter.php.

136 {
137 return HTTP::getSelfURLHost();
138 }

◆ getSelfURLNoQuery()

SimpleSAML\Utils\HttpAdapter::getSelfURLNoQuery ( )
See also
HTTP::getSelfURLNoQuery()

Definition at line 143 of file HttpAdapter.php.

144 {
146 }
static getSelfURLNoQuery()
Retrieve the current URL using the base URL in the configuration, without the query parameters.
Definition: HTTP.php:843

References SimpleSAML\Utils\HTTP\getSelfURLNoQuery().

+ Here is the call graph for this function:

◆ getServerHTTPS()

SimpleSAML\Utils\HttpAdapter::getServerHTTPS ( )
See also
HTTP::getServerHTTPS()

Definition at line 15 of file HttpAdapter.php.

16 {
17 return HTTP::getServerHTTPS();
18 }
static getServerHTTPS()
Retrieve HTTPS status from $_SERVER environment variables.
Definition: HTTP.php:84

References SimpleSAML\Utils\HTTP\getServerHTTPS().

+ Here is the call graph for this function:

◆ getServerPort()

SimpleSAML\Utils\HttpAdapter::getServerPort ( )
See also
HTTP::getServerPort()

Definition at line 23 of file HttpAdapter.php.

24 {
25 return HTTP::getServerPort();
26 }
static getServerPort()
Retrieve the port number from $_SERVER environment variables.
Definition: HTTP.php:109

References SimpleSAML\Utils\HTTP\getServerPort().

+ Here is the call graph for this function:

◆ guessBasePath()

SimpleSAML\Utils\HttpAdapter::guessBasePath ( )
See also
HTTP::guessBasePath()

Definition at line 71 of file HttpAdapter.php.

72 {
73 return HTTP::guessBasePath();
74 }
static guessBasePath()
Try to guess the base SimpleSAMLphp path from the current request.
Definition: HTTP.php:562

References SimpleSAML\Utils\HTTP\guessBasePath().

+ Here is the call graph for this function:

◆ isHTTPS()

SimpleSAML\Utils\HttpAdapter::isHTTPS ( )
See also
HTTP::isHTTPS()

Definition at line 151 of file HttpAdapter.php.

152 {
153 return HTTP::isHTTPS();
154 }
static isHTTPS()
This function checks if we are using HTTPS as protocol.
Definition: HTTP.php:862

References SimpleSAML\Utils\HTTP\isHTTPS().

+ Here is the call graph for this function:

◆ normalizeURL()

SimpleSAML\Utils\HttpAdapter::normalizeURL (   $url)
See also
HTTP::normalizeURL()

Definition at line 159 of file HttpAdapter.php.

160 {
161 return HTTP::normalizeURL($url);
162 }
static normalizeURL($url)
Normalizes a URL to an absolute URL and validate it.
Definition: HTTP.php:880

References $url, and SimpleSAML\Utils\HTTP\normalizeURL().

+ Here is the call graph for this function:

◆ parseQueryString()

SimpleSAML\Utils\HttpAdapter::parseQueryString (   $query_string)
See also
HTTP::parseQueryString()

Definition at line 167 of file HttpAdapter.php.

168 {
169 return HTTP::parseQueryString($query_string);
170 }
static parseQueryString($query_string)
Parse a query string into an array.
Definition: HTTP.php:912

References SimpleSAML\Utils\HTTP\parseQueryString().

+ Here is the call graph for this function:

◆ redirectTrustedURL()

SimpleSAML\Utils\HttpAdapter::redirectTrustedURL (   $url,
  $parameters = array() 
)
See also
HTTP::redirectTrustedURL()

Definition at line 175 of file HttpAdapter.php.

176 {
177 HTTP::redirectTrustedURL($url, $parameters);
178 }
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:959

References $url, and SimpleSAML\Utils\HTTP\redirectTrustedURL().

+ Here is the call graph for this function:

◆ redirectUntrustedURL()

SimpleSAML\Utils\HttpAdapter::redirectUntrustedURL (   $url,
  $parameters = array() 
)
See also
HTTP::redirectUntrustedURL()

Definition at line 183 of file HttpAdapter.php.

184 {
185 HTTP::redirectUntrustedURL($url, $parameters);
186 }
static redirectUntrustedURL($url, $parameters=array())
This function redirects to the specified URL after performing the appropriate security checks on it.
Definition: HTTP.php:991

References $url, and SimpleSAML\Utils\HTTP\redirectUntrustedURL().

+ Here is the call graph for this function:

◆ resolveURL()

SimpleSAML\Utils\HttpAdapter::resolveURL (   $url,
  $base = null 
)
See also
HTTP::resolveURL()

Definition at line 191 of file HttpAdapter.php.

192 {
193 return HTTP::resolveURL($url, $base);
194 }
static resolveURL($url, $base=null)
Resolve a (possibly relative) URL relative to a given base URL.
Definition: HTTP.php:1023
$base
Definition: index.php:4

References $base, $url, and SimpleSAML\Utils\HTTP\resolveURL().

+ Here is the call graph for this function:

◆ setCookie()

SimpleSAML\Utils\HttpAdapter::setCookie (   $name,
  $value,
  $params = null,
  $throw = true 
)
See also
HTTP::setCookie()

Definition at line 199 of file HttpAdapter.php.

200 {
201 HTTP::setCookie($name, $value, $params, $throw);
202 }
static setCookie($name, $value, $params=null, $throw=true)
Set a cookie.
Definition: HTTP.php:1104

References $name, PHPMailer\PHPMailer\$params, and SimpleSAML\Utils\HTTP\setCookie().

+ Here is the call graph for this function:

◆ submitPOSTData()

SimpleSAML\Utils\HttpAdapter::submitPOSTData (   $destination,
  $data 
)
See also
HTTP::submitPOSTData()

Definition at line 207 of file HttpAdapter.php.

208 {
210 }
static submitPOSTData($destination, $data)
Submit a POST form to a specific destination.
Definition: HTTP.php:1202

References $data, $destination, and SimpleSAML\Utils\HTTP\submitPOSTData().

+ Here is the call graph for this function:

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