AMP_Image_Dimension_Extractor::fetch_images PHP Метод

fetch_images() приватный статический Метод

Fetch dimensions of remote images
private static fetch_images ( array $urls_to_fetch, array &$images, string $mode )
$urls_to_fetch array Image src urls to fetch.
$images array Array to populate with results of image/dimension inspection.
$mode string Whether image dimensions should be extracted concurrently or synchronously.
    private static function fetch_images($urls_to_fetch, &$images, $mode)
    {
        // Use FasterImage when able/PHP version supports it (it contains a closure that could not be ported to 5.2).
        if ('synchronous' === $mode || false === function_exists('curl_multi_exec') || strnatcmp(phpversion(), '5.3.0') < 0) {
            self::fetch_images_via_fast_image($urls_to_fetch, $images);
        } else {
            self::fetch_images_via_faster_image($urls_to_fetch, $images);
        }
    }