ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Util.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\HTTP;
4 
14 class Util {
15 
24  static function negotiateContentType($acceptHeaderValue, array $availableOptions) {
25 
26  return negotiateContentType($acceptHeaderValue, $availableOptions);
27 
28  }
29 
38  static function negotiate($acceptHeaderValue, array $availableOptions) {
39 
40  return negotiateContentType($acceptHeaderValue, $availableOptions);
41 
42  }
43 
53  static function parseHTTPDate($dateHeader) {
54 
55  return parseDate($dateHeader);
56 
57  }
58 
69  static function toHTTPDate(\DateTime $dateTime) {
70 
71  return toDate($dateTime);
72 
73  }
74 }
toDate(DateTime $dateTime)
Transforms a DateTime object to a valid HTTP/1.1 Date header value.
Definition: functions.php:77
static negotiate($acceptHeaderValue, array $availableOptions)
Deprecated! Use negotiateContentType.
Definition: Util.php:38
static toHTTPDate(\DateTime $dateTime)
Transforms a DateTime object to HTTP&#39;s most common date format.
Definition: Util.php:69
static parseHTTPDate($dateHeader)
Parses a RFC2616-compatible date string.
Definition: Util.php:53
static negotiateContentType($acceptHeaderValue, array $availableOptions)
Content negotiation.
Definition: Util.php:24
parseDate($dateString)
A collection of useful helpers for parsing or generating various HTTP headers.
Definition: functions.php:32
HTTP utility methods.
Definition: Util.php:14