PHP 클래스 Devise\Media\Images\Manager

파일 보기 프로젝트 열기: devisephp/cms

보호된 프로퍼티들

프로퍼티 타입 설명
$CategoryPaths Devise\Media\Categories\CategoryPaths
$Filesystem Devise\Media\Files\Filesystem
$Images Images

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
getNewCroppedName ( $currentName, $width, $height ) : string This cropped name is generated for us

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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

extractImagesForCallback() 공개 메소드

..
public extractImagesForCallback ( $input ) : array
$input
리턴 array

getImageUrl() 공개 메소드

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

프로퍼티 상세

$CategoryPaths 보호되어 있는 프로퍼티

protected CategoryPaths,Devise\Media\Categories $CategoryPaths
리턴 Devise\Media\Categories\CategoryPaths

$Filesystem 보호되어 있는 프로퍼티

protected Filesystem,Devise\Media\Files $Filesystem
리턴 Devise\Media\Files\Filesystem

$Images 보호되어 있는 프로퍼티

protected Images,Devise\Media\Images $Images
리턴 Images