PHP 트레잇 Josegonzalez\Upload\Validation\Traits\UploadValidationTrait

파일 보기 프로젝트 열기: josegonzalez/cakephp-upload

공개 메소드들

메소드 설명
isAboveMinSize ( mixed $check, integer $size ) : boolean Check that the file is above the minimum file upload size
isBelowMaxSize ( mixed $check, integer $size ) : boolean Check that the file is below the maximum file upload size
isCompletedUpload ( mixed $check ) : boolean Check that the file was completely uploaded
isFileUpload ( mixed $check ) : boolean Check that a file was uploaded
isSuccessfulWrite ( mixed $check ) : boolean Check that the file was successfully written to the server
isUnderFormSizeLimit ( mixed $check ) : boolean Check that the file does not exceed the max file size specified in the HTML Form
isUnderPhpSizeLimit ( mixed $check ) : boolean Check that the file does not exceed the max file size specified by PHP

메소드 상세

isAboveMinSize() 공개 정적인 메소드

Check that the file is above the minimum file upload size
public static isAboveMinSize ( mixed $check, integer $size ) : boolean
$check mixed Value to check
$size integer Minimum file size
리턴 boolean Success

isBelowMaxSize() 공개 정적인 메소드

Check that the file is below the maximum file upload size
public static isBelowMaxSize ( mixed $check, integer $size ) : boolean
$check mixed Value to check
$size integer Maximum file size
리턴 boolean Success

isCompletedUpload() 공개 정적인 메소드

Check that the file was completely uploaded
public static isCompletedUpload ( mixed $check ) : boolean
$check mixed Value to check
리턴 boolean Success

isFileUpload() 공개 정적인 메소드

Check that a file was uploaded
public static isFileUpload ( mixed $check ) : boolean
$check mixed Value to check
리턴 boolean Success

isSuccessfulWrite() 공개 정적인 메소드

Check that the file was successfully written to the server
public static isSuccessfulWrite ( mixed $check ) : boolean
$check mixed Value to check
리턴 boolean Success

isUnderFormSizeLimit() 공개 정적인 메소드

Check that the file does not exceed the max file size specified in the HTML Form
public static isUnderFormSizeLimit ( mixed $check ) : boolean
$check mixed Value to check
리턴 boolean Success

isUnderPhpSizeLimit() 공개 정적인 메소드

Check that the file does not exceed the max file size specified by PHP
public static isUnderPhpSizeLimit ( mixed $check ) : boolean
$check mixed Value to check
리턴 boolean Success