PHP Класс Webiny\Component\Http\Request\Files

Наследование: use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ) Constructor.
get ( string $name, null | integer $arrayOffset = null ) : File Get the File object for the given $name.

Приватные методы

Метод Описание
createFileObject ( array $file, null $arrayOffset = null ) : File Create the File object.
getFileObject ( string $name, null $arrayOffset = null ) : boolean | File Check if we have already create a File object of the given $name.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

get() публичный Метод

If you have a multi-dimensional upload field name, than you should pass the optional $arrayOffset param to get the right File object.
public get ( string $name, null | integer $arrayOffset = null ) : File
$name string Name of the upload field.
$arrayOffset null | integer Optional array offset for multi-dimensional upload fields.
Результат Webiny\Component\Http\Request\Files\File