PHP Class Devise\Media\Images\Manager

Mostrar archivo Open project: devisephp/cms

Protected Properties

Property Type Description
$CategoryPaths Devise\Media\Categories\CategoryPaths
$Filesystem Devise\Media\Files\Filesystem
$Images Images

Public Methods

Method Description
__construct ( Filesystem $Filesystem, CategoryPaths $CategoryPaths, Images $Images, Illuminate\Config\Repository $Config = null ) Construct a new image manager
cropAndSaveFile ( $input ) : string Crop and save an image
extractImagesForCallback ( $input ) : array Not sure what this is for. Looks like it extracts images from a category path.
getImageUrl ( $input ) : string Image url for a given category and image

Private Methods

Method Description
getNewCroppedName ( $currentName, $width, $height ) : string This cropped name is generated for us

Method Details

__construct() public method

Construct a new image manager
public __construct ( Filesystem $Filesystem, CategoryPaths $CategoryPaths, Images $Images, Illuminate\Config\Repository $Config = null )
$Filesystem Devise\Media\Files\Filesystem
$CategoryPaths Devise\Media\Categories\CategoryPaths
$Images Images
$Config Illuminate\Config\Repository

cropAndSaveFile() public method

Crop and save an image
public cropAndSaveFile ( $input ) : string
$input
return string

extractImagesForCallback() public method

..
public extractImagesForCallback ( $input ) : array
$input
return array

getImageUrl() public method

Image url for a given category and image
public getImageUrl ( $input ) : string
$input
return string

Property Details

$CategoryPaths protected_oe property

protected CategoryPaths,Devise\Media\Categories $CategoryPaths
return Devise\Media\Categories\CategoryPaths

$Filesystem protected_oe property

protected Filesystem,Devise\Media\Files $Filesystem
return Devise\Media\Files\Filesystem

$Images protected_oe property

protected Images,Devise\Media\Images $Images
return Images