HumHub Documentation (unofficial)

FileGetContents extends AbstractRetriever
in package

Tries to retrieve JSON schemas from a URI using file_get_contents()

Tags
author

Sander Coolen sander@jibber.nl

Table of Contents

Properties

$contentType  : string
Media content type
$messageBody  : mixed

Methods

getContentType()  : string
Get media content type
retrieve()  : mixed
Retrieve a schema from the specified URI
getContentTypeMatchInHeader()  : string|null
fetchContentType()  : bool

Properties

Methods

getContentTypeMatchInHeader()

protected static getContentTypeMatchInHeader(string $header) : string|null
Parameters
$header : string
Return values
string|null

fetchContentType()

private fetchContentType(array<string|int, mixed> $headers) : bool
Parameters
$headers : array<string|int, mixed>

HTTP Response Headers

Return values
bool

Whether the Content-Type header was found or not


        
On this page

Search results