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.

References $url.

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

◆ checkSessionCookie()

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

Definition at line 39 of file HttpAdapter.php.

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

40  {
42  }
static checkSessionCookie($retryURL=null)
Check for session cookie, and show missing-cookie page if it is missing.
Definition: HTTP.php:286
+ 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.

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

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
$url
+ 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.

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

56  {
57  return HTTP::fetch($url, $context, $getHeaders);
58  }
$context
Definition: webdav.php:25
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
$url
+ 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.

References SimpleSAML\Utils\HTTP\getAcceptLanguage().

64  {
65  return HTTP::getAcceptLanguage();
66  }
static getAcceptLanguage()
This function parses the Accept-Language HTTP header and returns an associative array with each langu...
Definition: HTTP.php:498
+ 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.

References SimpleSAML\Utils\HTTP\getBaseURL().

80  {
81  return HTTP::getBaseURL();
82  }
static getBaseURL()
Retrieve the base URL of the SimpleSAMLphp installation.
Definition: HTTP.php:597
+ 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.

References SimpleSAML\Utils\HTTP\getFirstPathElement().

88  {
89  return HTTP::getFirstPathElement($trailingslash);
90  }
static getFirstPathElement($trailingslash=true)
Retrieve the first element of the URL path.
Definition: HTTP.php:645
+ 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.

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

96  {
98  }
$destination
static getPOSTRedirectURL($destination, $data)
Create a link which will POST data.
Definition: HTTP.php:666
$data
Definition: bench.php:6
+ 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.

References SimpleSAML\Utils\HTTP\getSelfHost().

104  {
105  return HTTP::getSelfHost();
106  }
static getSelfHost()
Retrieve our own host.
Definition: HTTP.php:697
+ 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.

References SimpleSAML\Utils\HTTP\getSelfHostWithPath().

120  {
121  return HTTP::getSelfHostWithPath();
122  }
static getSelfHostWithPath()
Retrieve our own host together with the URL path.
Definition: HTTP.php:736
+ 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.

References SimpleSAML\Utils\HTTP\getSelfURLNoQuery().

144  {
145  return HTTP::getSelfURLNoQuery();
146  }
static getSelfURLNoQuery()
Retrieve the current URL using the base URL in the configuration, without the query parameters...
Definition: HTTP.php:843
+ 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.

References SimpleSAML\Utils\HTTP\getServerHTTPS().

16  {
17  return HTTP::getServerHTTPS();
18  }
static getServerHTTPS()
Retrieve HTTPS status from $_SERVER environment variables.
Definition: HTTP.php:84
+ 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.

References SimpleSAML\Utils\HTTP\getServerPort().

24  {
25  return HTTP::getServerPort();
26  }
static getServerPort()
Retrieve the port number from $_SERVER environment variables.
Definition: HTTP.php:109
+ 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.

References SimpleSAML\Utils\HTTP\guessBasePath().

72  {
73  return HTTP::guessBasePath();
74  }
static guessBasePath()
Try to guess the base SimpleSAMLphp path from the current request.
Definition: HTTP.php:562
+ 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.

References SimpleSAML\Utils\HTTP\isHTTPS().

152  {
153  return HTTP::isHTTPS();
154  }
static isHTTPS()
This function checks if we are using HTTPS as protocol.
Definition: HTTP.php:862
+ 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.

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

160  {
161  return HTTP::normalizeURL($url);
162  }
static normalizeURL($url)
Normalizes a URL to an absolute URL and validate it.
Definition: HTTP.php:880
$url
+ 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.

References SimpleSAML\Utils\HTTP\parseQueryString().

168  {
169  return HTTP::parseQueryString($query_string);
170  }
static parseQueryString($query_string)
Parse a query string into an array.
Definition: HTTP.php:912
+ 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.

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

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
$url
+ 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.

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

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
$url
+ 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.

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

192  {
193  return HTTP::resolveURL($url, $base);
194  }
$base
Definition: index.php:4
static resolveURL($url, $base=null)
Resolve a (possibly relative) URL relative to a given base URL.
Definition: HTTP.php:1023
$url
+ 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.

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

200  {
201  HTTP::setCookie($name, $value, $params, $throw);
202  }
static setCookie($name, $value, $params=null, $throw=true)
Set a cookie.
Definition: HTTP.php:1104
+ 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.

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

208  {
210  }
$destination
static submitPOSTData($destination, $data)
Submit a POST form to a specific destination.
Definition: HTTP.php:1202
$data
Definition: bench.php:6
+ Here is the call graph for this function:

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