PdfDocumentFetcher
in package
Table of Contents
- WHITELIST_HEADERS = ['content-length', 'content-type']
- $_pApiClientAction : APIClientActionGeneric
- __construct() : mixed
- fetchUrl() : string
- proxyResult() : mixed
- HTTP tunnel meant to transport big files with low RAM usage
- getParameters() : array<string|int, mixed>
- setHeaders() : int
Constants
WHITELIST_HEADERS
public
array<string|int, mixed>
WHITELIST_HEADERS
= ['content-length', 'content-type']
Properties
$_pApiClientAction
private
APIClientActionGeneric
$_pApiClientAction
Methods
__construct()
public
__construct(APIClientActionGeneric $pApiClientAction) : mixed
Parameters
- $pApiClientAction : APIClientActionGeneric
Return values
mixed —fetchUrl()
public
fetchUrl(PdfDocumentModel $pModel) : string
Parameters
- $pModel : PdfDocumentModel
Tags
Return values
string —proxyResult()
HTTP tunnel meant to transport big files with low RAM usage
public
proxyResult(PdfDocumentModel $pModel, string $url) : mixed
Parameters
- $pModel : PdfDocumentModel
- $url : string
Tags
Return values
mixed —getParameters()
private
getParameters(PdfDocumentModel $pModel) : array<string|int, mixed>
Parameters
- $pModel : PdfDocumentModel
Return values
array<string|int, mixed> —setHeaders()
private
setHeaders(string $inputString) : int
Parameters
- $inputString : string