ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | negotiateContentType ($acceptHeaderValue, array $availableOptions) |
Content negotiation. More... | |
static | negotiate ($acceptHeaderValue, array $availableOptions) |
Deprecated! Use negotiateContentType. More... | |
static | parseHTTPDate ($dateHeader) |
Parses a RFC2616-compatible date string. More... | |
static | toHTTPDate (\DateTime $dateTime) |
Transforms a DateTime object to HTTP's most common date format. More... | |
HTTP utility methods.
|
static |
Deprecated! Use negotiateContentType.
string | null | $acceptHeaderValue | |
array | $availableOptions |
Definition at line 38 of file Util.php.
References Sabre\HTTP\Util\negotiateContentType().
Referenced by Sabre\CalDAV\Plugin\httpAfterGet(), Sabre\CardDAV\Plugin\negotiateVCard(), and Sabre\HTTP\UtilTest\testNegotiate().
|
static |
Content negotiation.
string | null | $acceptHeaderValue | |
array | $availableOptions |
Definition at line 24 of file Util.php.
Referenced by Sabre\HTTP\Util\negotiate().
|
static |
Parses a RFC2616-compatible date string.
This method returns false if the date is invalid
string | $dateHeader |
Definition at line 53 of file Util.php.
References Sabre\HTTP\parseDate().
Referenced by Sabre\DAV\Server\checkPreconditions(), Sabre\HTTP\UtilTest\testParseHTTPDate(), Sabre\HTTP\UtilTest\testParseHTTPDateFail(), and Sabre\HTTP\Auth\AWS\validateRFC2616Date().
|
static |
Transforms a DateTime object to HTTP's most common date format.
We're serializing it as the RFC 1123 date, which, for HTTP must be specified as GMT.
\DateTime | $dateTime |
Definition at line 69 of file Util.php.
References Sabre\HTTP\toDate().
Referenced by Sabre\DAV\Server\checkPreconditions(), Sabre\DAV\Server\getHTTPHeaders(), Sabre\DAV\ServerRangeTest\setUp(), Sabre\DAV\ServerSimpleTest\testBaseUri(), Sabre\DAV\FSExt\ServerTest\testGet(), Sabre\DAV\FSExt\ServerTest\testHEAD(), Sabre\HTTP\UtilTest\testToHTTPDate(), and Sabre\DAV\Xml\Property\GetLastModified\xmlSerialize().