PHP Trait Josegonzalez\Upload\Validation\Traits\ImageValidationTrait

Datei anzeigen Open project: josegonzalez/cakephp-upload

Public Methods

Method 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 method

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
return boolean Success

isAboveMinWidth() public static method

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
return boolean Success

isBelowMaxHeight() public static method

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
return boolean Success

isBelowMaxWidth() public static method

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
return boolean Success