CurlDownloader
in package
Tags
Table of Contents
- $exceptions : mixed
- $jobs : mixed
- $multiHandle : mixed
- $options : mixed
- $shareHandle : mixed
- $timeInfo : mixed
- __construct() : mixed
- get() : mixed
- finishProgress() : mixed
- onProgress() : mixed
Properties
$exceptions
private
mixed
$exceptions
= []
$jobs
private
mixed
$jobs
= []
$multiHandle
private
mixed
$multiHandle
$options
private
static mixed
$options
= ['http' => ['method' => CURLOPT_CUSTOMREQUEST, 'content' => CURLOPT_POSTFIELDS], 'ssl' => ['cafile' => CURLOPT_CAINFO, 'capath' => CURLOPT_CAPATH]]
$shareHandle
private
mixed
$shareHandle
$timeInfo
private
static mixed
$timeInfo
= ['total_time' => true, 'namelookup_time' => true, 'connect_time' => true, 'pretransfer_time' => true, 'starttransfer_time' => true, 'redirect_time' => true]
Methods
__construct()
public
__construct() : mixed
Return values
mixed —get()
public
get(mixed $origin, mixed $url, mixed $context, mixed $file) : mixed
Parameters
- $origin : mixed
- $url : mixed
- $context : mixed
- $file : mixed
Return values
mixed —finishProgress()
private
finishProgress(mixed $ch, callable $notify, array<string|int, mixed> $progress) : mixed
Parameters
- $ch : mixed
- $notify : callable
- $progress : array<string|int, mixed>
Return values
mixed —onProgress()
private
onProgress(mixed $ch, callable $notify, array<string|int, mixed> $progress, array<string|int, mixed> $previousProgress) : mixed
Parameters
- $ch : mixed
- $notify : callable
- $progress : array<string|int, mixed>
- $previousProgress : array<string|int, mixed>