BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
JsonSchema\Uri\Retrievers\FileGetContents Class Reference
Inheritance diagram for JsonSchema\Uri\Retrievers\FileGetContents:
Collaboration diagram for JsonSchema\Uri\Retrievers\FileGetContents:

Public Member Functions

 retrieve ($uri)
 
- Public Member Functions inherited from JsonSchema\Uri\Retrievers\AbstractRetriever
 getContentType ()
 

Static Protected Member Functions

static getContentTypeMatchInHeader ($header)
 

Protected Attributes

 $messageBody
 
- Protected Attributes inherited from JsonSchema\Uri\Retrievers\AbstractRetriever
 $contentType
 

Detailed Description

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

Author
Sander Coolen sande.nosp@m.r@ji.nosp@m.bber..nosp@m.nl

Member Function Documentation

static JsonSchema\Uri\Retrievers\FileGetContents::getContentTypeMatchInHeader (   $header)
staticprotected
Parameters
string$header
Returns
string|null
JsonSchema\Uri\Retrievers\FileGetContents::retrieve (   $uri)

Retrieve a schema from the specified URI

Parameters
string$uriURI that resolves to a JSON schema
Exceptions
\JsonSchema\Exception\ResourceNotFoundException
Returns
mixed string|null

See Also
::retrieve()

Implements JsonSchema\Uri\Retrievers\UriRetrieverInterface.


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