PHP 클래스 Devise\Pages\Fields\Handlers\ImageFieldUpdated

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Images $Images, MediaPaths $MediaPaths, Caption $Caption, Framework $Framework ) Constructs a new Image field updated event handler
handle ( Field $field, array $input, $beforeChanges ) : array This is called anytime after we update an image field in devise

보호된 메소드들

메소드 설명
createThumbnailOfImage ( Field $field, $input ) : string Create a version of this thumbnail, crops too when $crop is set to true
createVersionOfImage ( Field $field, $input ) : string Create a version of this image, crops too when $crop is set to true
croppedImagePath ( Field $field, $type = 'image' ) : string Creates a cropped versioned copy of this image
resizedImagePath ( Field $field, $width, $height ) : string Create a version of this thumbnail, crops too when $crop is set to true
saveCaption ( $imagePath, array $input ) : string Save or overwrite caption file for image
versionedImagePath ( Field $field ) : string Creates a versioned copy of this image

메소드 상세

__construct() 공개 메소드

Constructs a new Image field updated event handler
public __construct ( Images $Images, MediaPaths $MediaPaths, Caption $Caption, Framework $Framework )
$Images Devise\Media\Images\Images
$MediaPaths Devise\Media\MediaPaths
$Caption Devise\Media\Helpers\Caption
$Framework Devise\Support\Framework

createThumbnailOfImage() 보호된 메소드

Create a version of this thumbnail, crops too when $crop is set to true
protected createThumbnailOfImage ( Field $field, $input ) : string
$field Field
리턴 string

createVersionOfImage() 보호된 메소드

Create a version of this image, crops too when $crop is set to true
protected createVersionOfImage ( Field $field, $input ) : string
$field Field
리턴 string

croppedImagePath() 보호된 메소드

Creates a cropped versioned copy of this image
protected croppedImagePath ( Field $field, $type = 'image' ) : string
$field Field
리턴 string

handle() 공개 메소드

This is called anytime after we update an image field in devise
public handle ( Field $field, array $input, $beforeChanges ) : array
$field Field
$input array
리턴 array

resizedImagePath() 보호된 메소드

Create a version of this thumbnail, crops too when $crop is set to true
protected resizedImagePath ( Field $field, $width, $height ) : string
$field Field
리턴 string

saveCaption() 보호된 메소드

Save or overwrite caption file for image
protected saveCaption ( $imagePath, array $input ) : string
$input array
리턴 string

versionedImagePath() 보호된 메소드

Creates a versioned copy of this image
protected versionedImagePath ( Field $field ) : string
$field Field
리턴 string