PHP Trait Josegonzalez\Upload\Validation\Traits\ImageValidationTrait

Afficher le fichier Open project: josegonzalez/cakephp-upload

Méthodes publiques

Méthode Description
isAboveMinHeight ( mixed $check, integer $height ) : boolean Check that the file is above the minimum height requirement
isAboveMinWidth ( mixed $check, integer $width ) : boolean Check that the file is above the minimum width requirement
isBelowMaxHeight ( mixed $check, integer $height ) : boolean Check that the file is below the maximum height requirement
isBelowMaxWidth ( mixed $check, integer $width ) : boolean Check that the file is below the maximum width requirement

Method Details

isAboveMinHeight() public static méthode

Check that the file is above the minimum height requirement
public static isAboveMinHeight ( mixed $check, integer $height ) : boolean
$check mixed Value to check
$height integer Height of Image
Résultat boolean Success

isAboveMinWidth() public static méthode

Check that the file is above the minimum width requirement
public static isAboveMinWidth ( mixed $check, integer $width ) : boolean
$check mixed Value to check
$width integer Width of Image
Résultat boolean Success

isBelowMaxHeight() public static méthode

Check that the file is below the maximum height requirement
public static isBelowMaxHeight ( mixed $check, integer $height ) : boolean
$check mixed Value to check
$height integer Height of Image
Résultat boolean Success

isBelowMaxWidth() public static méthode

Check that the file is below the maximum width requirement
public static isBelowMaxWidth ( mixed $check, integer $width ) : boolean
$check mixed Value to check
$width integer Width of Image
Résultat boolean Success