storeImagesToLocalFile() public static method

Writes an image src http string to disk as a temporary file and returns the LocallyStoredImage object that has the info you should need on the image
public static storeImagesToLocalFile ( string[] $imageSrcs, boolean $returnAll, Configuration $config ) : Goose\Images\LocallyStoredImage[]
$imageSrcs string[]
$returnAll boolean
$config Goose\Configuration
return Goose\Images\LocallyStoredImage[]
Exemplo n.º 1
0
 /**
  * @param string[] $imageSrcs
  * @param bool $returnAll
  *
  * @return LocallyStoredImage[]
  */
 private function getLocallyStoredImages($imageSrcs, $returnAll = false)
 {
     return ImageUtils::storeImagesToLocalFile($imageSrcs, $returnAll, $this->config());
 }