PHP Class Craft\Imager_ImagePathsModel

Inheritance: extends craft\BaseModel
Datei anzeigen Open project: aelvan/Imager-Craft

Public Methods

Method Description
__construct ( $image ) Constructor

Protected Methods

Method Description
defineAttributes ( ) : array

Private Methods

Method Description
_downloadFile ( $destinationPath, $imageUrl ) Downloads remote file. Uses cURL if available, then tries with file_get_contents() if allow_url_fopen.
_getPathsForLocalAsset ( craft\AssetFileModel $image ) Get paths for a local asset
_getPathsForLocaleFile ( $image ) Get paths for a local file that's not in the imager path
_getPathsForUrl ( $image ) Get paths for an external file (really external, or on an external source type)
getPathsForLocalImagerFile ( $image ) Get paths for a local file that's in the imager path

Method Details

__construct() public method

Constructor
public __construct ( $image )
$image

defineAttributes() protected method

protected defineAttributes ( ) : array
return array