Documentation

UploadingFile extends AbstractValidator

Class Size

Tags
subpackage

FileValidators

author

Dodonov A.A.

version

v.1.0 (2021/11/13)

copyright

Copyright (c) 2021, aeon.org

Table of Contents

$file  : string
Index in the $_FILES array
getKey()  : string
Getter for the field $this->file
setValidatingData()  : void
{@inheritdoc}
validateFilesFieldExists()  : void
Method validates that $_FILES[$field] exists.

Properties

Methods

getKey()

Getter for the field $this->file

public getKey() : string
Return values
string

field $this->file

validateFilesFieldExists()

Method validates that $_FILES[$field] exists.

public validateFilesFieldExists(string $field) : void

If it does not then exception will be thrown

Parameters
$field : string

field name

Return values
void

Search results