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

Public Member Functions

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

Protected Member Functions

 fetchContentType ($response)
 

Protected Attributes

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

Detailed Description

Tries to retrieve JSON schemas from a URI using cURL library

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

Member Function Documentation

JsonSchema\Uri\Retrievers\Curl::fetchContentType (   $response)
protected
Parameters
string$responsecURL HTTP response
Returns
boolean Whether the Content-Type header was found or not
JsonSchema\Uri\Retrievers\Curl::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: