PHP Class Faster_Image_B52f1a8_Faster_Image, amp-wp

Based on the PHP stream implementation by Tom Moor (http://tommoor.com) which was based on the original Ruby Implementation by Steven Sykes (https://github.com/sdsykes/fastimage) MIT Licensed
Mostrar archivo Open project: Automattic/amp-wp Class Usage Examples

Protected Properties

Property Type Description
$timeout integer The default timeout

Public Methods

Method Description
__construct ( $user_agent )
batch ( array $urls ) : array Get the size of each of the urls in a list
setTimeout ( $seconds )

Protected Methods

Method Description
handle ( $url, &$result ) : resource Create the handle for the curl request

Method Details

__construct() public method

public __construct ( $user_agent )

batch() public method

Get the size of each of the urls in a list
public batch ( array $urls ) : array
$urls array
return array

handle() protected method

Create the handle for the curl request
protected handle ( $url, &$result ) : resource
$url
$result
return resource

setTimeout() public method

public setTimeout ( $seconds )
$seconds

Property Details

$timeout protected_oe property

The default timeout
protected int $timeout
return integer