Méthode | Description | |
---|---|---|
afterDelete ( Model $model ) | ||
afterSave ( Model $model, $create, $options = [] ) | ||
attachmentContentType ( Model $model, $value, $contentTypes, $options = [] ) | ||
attachmentMaxSize ( Model $model, $value, $max, $options = [] ) | ||
attachmentMinSize ( Model $model, $value, $min, $options = [] ) | ||
attachmentPresence ( Model $model, $value, $options = [] ) | ||
beforeDelete ( Model $model, $cascade = true ) | ||
beforeSave ( Model $model, $options = [] ) | ||
beforeValidate ( Model $model, $options = [] ) | ||
interpolate ( $modelName, $modelId, $field, $filename, $style = 'original', $defaults = [] ) | ||
maxHeight ( Model $model, $value, $maxHeight, $options = [] ) | ||
maxWidth ( Model $model, $value, $maxWidth, $options = [] ) | ||
minHeight ( Model $model, $value, $minHeight, $options = [] ) | ||
minWidth ( Model $model, $value, $minWidth, $options = [] ) | ||
phpUploadError ( Model $model, $value, $uploadErrors = ['UPLOAD_ERR_INI_SIZE', 'UPLOAD_ERR_FORM_SIZE', 'UPLOAD_ERR_PARTIAL', 'UPLOAD_ERR_NO_FILE', 'UPLOAD_ERR_NO_TMP_DIR', 'UPLOAD_ERR_CANT_WRITE', 'UPLOAD_ERR_EXTENSION'], $options = [] ) | ||
setup ( Model $model, $settings = [] ) |
Méthode | Description | |
---|---|---|
afterMove ( $file ) |
Méthode | Description | |
---|---|---|
_deleteFiles ( &$model ) | ||
_fetchFromUrl ( $url ) | ||
_interpolate ( &$model, $field, $filename, $style ) | ||
_pathinfo ( $filename ) | ||
_prepareToDeleteFiles ( &$model, $field = null, $forceRead = false ) | ||
_prepareToWriteFiles ( &$model, $field ) | ||
_reset ( ) | ||
_resize ( $srcFile, $destFile, $geometry, $quality = 75, $alpha = false ) | ||
_validateDimension ( $upload, $mode, $axis, $value, $options ) | ||
_writeFiles ( &$model ) |
public attachmentContentType ( Model $model, $value, $contentTypes, $options = [] ) | ||
$model | Model |
public attachmentMaxSize ( Model $model, $value, $max, $options = [] ) | ||
$model | Model |
public attachmentMinSize ( Model $model, $value, $min, $options = [] ) | ||
$model | Model |
public attachmentPresence ( Model $model, $value, $options = [] ) | ||
$model | Model |
public static interpolate ( $modelName, $modelId, $field, $filename, $style = 'original', $defaults = [] ) |
public maxHeight ( Model $model, $value, $maxHeight, $options = [] ) | ||
$model | Model |
public maxWidth ( Model $model, $value, $maxWidth, $options = [] ) | ||
$model | Model |
public minHeight ( Model $model, $value, $minHeight, $options = [] ) | ||
$model | Model |
public minWidth ( Model $model, $value, $minWidth, $options = [] ) | ||
$model | Model |
public phpUploadError ( Model $model, $value, $uploadErrors = ['UPLOAD_ERR_INI_SIZE', 'UPLOAD_ERR_FORM_SIZE', 'UPLOAD_ERR_PARTIAL', 'UPLOAD_ERR_NO_FILE', 'UPLOAD_ERR_NO_TMP_DIR', 'UPLOAD_ERR_CANT_WRITE', 'UPLOAD_ERR_EXTENSION'], $options = [] ) | ||
$model | Model |