\UploadFileDisableThumbnailBehavior

Class UploadFileDesableThumbnailBehavior

Summary

Methods
Properties
Constants
beforeSave()
No public properties found
No constants found
_isImageFile()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

beforeSave()

beforeSave(\Model  $model, array  $options = array()) : mixed

beforeSave is called before a model is saved. Returning false from a beforeSave callback will abort the save operation.

Parameters

\Model $model

Model using this behavior

array $options

Options passed from Model::save().

Returns

mixed —

False if the operation should abort. Any other result will continue.

_isImageFile()

_isImageFile(string  $file) : boolean

MimeTypeをみてimageか判定する

Parameters

string $file

ファイルへのパス

Returns

boolean