PHP Трейт Josegonzalez\Upload\Validation\Traits\UploadValidationTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
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